Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jose1711 opened this issue Feb 8, 2021 · 0 comments
Open

Comments

@jose1711
Copy link
Contributor

jose1711 commented Feb 8, 2021

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 added a commit to jose1711/eatmemory that referenced this issue Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant