eatmemory
eatmemory copied to clipboard
Simple C program to allocate memory from the command line. Useful to test programs or systems under high memory usage conditions
Just a quick question: how do you ensure that the memory is actually allocated in main RAM? What stops the OS from swapping the memory out? Or pushing it to...
https://github.com/julman99/eatmemory/blob/master/eatmemory.c#L85 Even if compiled with `-maix64` `size` always contains 32bit integer which means one cannot allocate more than 2147483647 bytes. Replacing with `atol` solves the issue. With `atoi` (original): ```shell...
This is what happens if compiled (gcc8 or xlC) on AIX: ```shell # ./eatmemory 55M Currently total memory: -4096 Currently avail memory: -4096 .. ``` This also means that memory...
Free memory malloc'ed by ap_get_args & eat methods
launched `eatmemory 10G` on m1 mac with 16G ram, while monitoring via `htop`, memory graph barely changed at all and MEM column says it ate only 5%