sysconf

  1. mathiasp

    Alternative to sysconf(_SC_AVPHYS_PAGES) to get available memory?

    Hi all, I'm just trying to compile osm2rdf (osm map data to GeoSPARQL), and found that they use sysconf(_SC_AVPHYS_PAGES) to get available memory: int64_t available() { return sysconf(_SC_AVPHYS_PAGES) * sysconf(_SC_PAGE_SIZE); } Looking at sysconf(3) I can see that we do not have...
Back
Top