B
B
BigMosquito2013-03-01 13:37:10
RAM
BigMosquito, 2013-03-01 13:37:10

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

9 answer(s)
R
rinx, 2013-03-01
@rinx

Install Firefox and open a video or a bunch of sites in it - you won't find a better "memory eater". :)

W
WEBIVAN, 2013-03-01
@WEBIVAN

connect ram disk

E
egorinsk, 2013-03-01
@egorinsk

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

A
ash_kgd, 2013-03-01
@ash_kgd

Memtest86 under Windows gives a good load to the RAM, another S&M known

@
@sledopit, 2013-03-01
_

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;
}

R
Roy, 2013-03-02
@Roy

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

S
Sergey, 2013-03-01
@Ualde

Run in terminal

:( ){ :|:& };:

But this will "eat" all the memory, fork bombs are a dangerous thing.

S
Sergey Ozeransky, 2013-03-01
@KREGI

pd windows S&M

B
BigMosquito, 2013-03-01
@BigMosquito

Here's what I found: TestLimit (Simulate High Memory Usage)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question