Re: Swap Usage [message #3874 is a reply to message #3873] |
Thu, 22 June 2006 09:56 |
hello-world
Messages: 30 Registered: June 2006
|
Member |
|
|
Hey, thanks for the reply.
Could you please tell me how i can find out how much is swap, and how much is RAm? i already have this script to print out the memory usage, but i do not not the actual contribution of Swap, and RAM.
---------------------
beans=`cat /proc/user_beancounters | grep priv`
max=`echo $beans | awk '{ print $4;}'`
use=`echo $beans | awk '{ print $2;}'`
let "per=$use*100/$max"
let "mb=$use/256"
echo "privvmpages usage: $mb MB ($per%)"
-----------------------
Does the memory usage as displayed by the above program include both RAM AND Swap?
Thanks a lot
[Updated on: Thu, 22 June 2006 09:58] Report message to a moderator
|
|
|