There are many fields in /proc/mem: I know that I can't just take "MemFree", because lots of memory is actually cached. So the question is, how can I calculate the amount of free memory?
Assumptions:
- The system is configured with no swap space.
- My definition of "free memory" is that malloc starts failing when this hits zero.