eatmemory
eatmemory copied to clipboard
sysconf not working on AIX - reporting incorrect memory size/free
This is what happens if compiled (gcc8 or xlC) on AIX:
# ./eatmemory 55M
Currently total memory: -4096
Currently avail memory: -4096
..
This also means that memory size cannot be specified as percentage:
# ./eatmemory 30%
Currently total memory: -4096
Currently avail memory: -4096
Eating -1228 bytes in chunks of 1024...
Done, press any key to free the memory
AIX version: 7200-04