I need it execute a certain kind of linux program from the terminal. The only thing the linux program needs to do is use more and more memory. Are there any programs like that?
feedback
|
|
From my previous answer on StackOverflow:
run
upon running, this code fills up ones RAM until killed by the kernel. Using calloc instead of malloc to prevent "lazy evaluation". Ideas taken from this thread: http://stackoverflow.com/questions/4383059/malloc-memory-questions This code quickly filled my RAM (4Gb) and then in about 2 minutes my 20Gb swap partition before it died. This works on 64bit Linux. If you use a 32bit OS, it will have a limit of 2 or 4GB before it dies. | |||
|
feedback
|
|
how about a fork bomb ? else something that creates a series of ever larger ram disks? You can create a ram disk with
to create a 256 mb ram disk. you could probably script a script that will make a series of ram disks, and fill them repeatedly up until whatever you need would happen | |||||
feedback
|
|
Save the following as
EDIT | ||||
|
feedback
|
|
There's a utility called | |||
|
feedback
|
|
You could use mprime, which is, IIRC, a linux port of Prime95 of overclocking fame. mprime (and Prime95) will allow you to stress test the memory and CPU of your computer system. In addition, you can specify exactly how much memory you want mprime to use (to overflow into swap space, if you like). Find mprime and prime95 here. I apologize in advance for the state of the website's navigation. | |||
|
feedback
|