Answer the question
In order to leave comments, you need to log in
Utility to "load" RAM?
You just need to do it in such a way as to fill the RAM by 50%, for example, for 1 minute.
Answer the question
In order to leave comments, you need to log in
Install Firefox and open a video or a bunch of sites in it - you won't find a better "memory eater". :)
Take advantage of the rich features of the PHP language:
<?php
ini_set('memory_limit', 1e12);
$data = str_repeat(" ", 100000000); // how much to hang in bytes
echo "OK, wait now\n";
sleep(60); // how many seconds to wait
Memtest86 under Windows gives a good load to the RAM, another S&M known
simply on Syakh (it is consumed by a megabyte, because 2Gigabytes may not be allowed to bite off at once).
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
int main(int argc, char** argv) {
int max = 2048; // сколько МБ занимать
int wait = 60 ; // сколько времени ждать
int mb = 0 ;
char* buffer;
while((buffer=malloc(1024*1024)) != NULL && mb != max) {
memset(buffer, 0, 1024*1024);
mb++;
}
printf("Allocated %d MB\n", mb);
while ( wait > 0 ) {
printf("\rHold memory for %d seconds", wait);
fflush( stdout );
sleep(1);
wait-- ;
}
printf("\nMemory is freed\n");
return 0;
}
MS has a native utility in the
consume.exe SDK:
Universal Resource Consumer - Just an innocent stress program, v 0.1.0
Copyright © 1998, 1999, Microsoft Corporation
consume RESOURCE [-time SECONDS]
RESOURCE can be one of the following:
-physical -memory
-page-file
-disk-space
-cpu-time
-kernel-pool
Run in terminal
:( ){ :|:& };:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question