On Mar 27, 2016, at 12:21 PM, D'Arcy J.M. Cain wrote:

[...]

PS="`ps -ax -orss | awk '{ sum += $1} END {print sum}'`"
I think you're counting some memory more than once here.
If it's shared it can still be resident.  It's just mapped
into multiple processes.

PROC="`grep '^Mem:' /proc/meminfo | awk '{print $3/1024}'`"
[...]

The other thing I see is that swap never gets used. The system appears
to crash when real memory gets used up and swap used is always 0.
What happens if you force swap to be used, like mounting a mfs file system
larger than free memory, and filling it?

Reply via email to