The name asks: "How to calculate the used memory for free?"
Answer: he requests the OS, which must track this in order to do this work.
, . sheepsimulator , ββLinux OS- /proc, , API free.
: " VmSize ?"
: , , .
- Linux .
char *p=new(1024*1024*1024*sizeof(char));, ββ , . "", , . , OOM. - , .
, proc .
, free .