Skip to content

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

@jose1711

Description

@jose1711

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions