available memory

  1. G

    Process memory goes on increasing in FreeBSD 13

    Hello Team, I am facing one issue in which process memory goes on increasing day by day. It starts with 150MB and reaches to 1.7GB with 2-3 days.There is no leak in code as same code works on Linux platform smoothly without any memory issue. I am freeing up all memory which is allocated by mmap...
  2. 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