OpenVZ Forum


Home » General » Discussions » Swap Usage
Re: Swap Usage [message #3874 is a reply to message #3873] Thu, 22 June 2006 09:56 Go to previous messageGo to previous message
hello-world is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: openvz toolkit - free download
Next Topic: How fine virtualization could openvz do?
Goto Forum:
  


Current Time: Sun Aug 18 04:21:25 GMT 2024

Total time taken to generate the page: 0.02829 seconds