eatmemory icon indicating copy to clipboard operation
eatmemory copied to clipboard

sysconf not working on AIX - reporting incorrect memory size/free

Open jose1711 opened this issue 4 years ago • 0 comments

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

jose1711 avatar Feb 08 '21 09:02 jose1711