OpenVZ Forum


Home » General » Discussions » Memory & SWAP
Memory & SWAP [message #9791] Mon, 22 January 2007 21:08 Go to previous message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
All right,

After reading a few discussions on these forums, I think I'm getting a partial hang of it...but I still want some clarification.

free -m, when --meminfo privvmpages:1 is set returns the "physpages", right? So why is there such a gap between my physpages and whats actually being used in privvmpages?

vzmemcheck -vA returns this:

Output values in Mbytes
veid        LowMem  LowMem     RAM MemSwap MemSwap   Alloc   Alloc   Alloc
              util  commit    util    util  commit    util  commit   limit
1             6.15   13.61   90.50   90.50   37.61  250.94 1037.61 1037.61
-------------------------------------------------------------------------
Summary:      6.15   13.61   90.50   90.50   37.61  250.94 1037.61 1037.61
        1579.00 1579.00 3949.00 10093.00 10093.00 10093.00 10093.00 10093.00


I realize the kernel memory isn't included, but free -m returns 84MB being used and in privvmpages, it says I'm using ~250MB.


Also where does SWAP come into play? I have 4GB of RAM and 6GB swap partition but it seems that the SWAP is never used even when a VPS is maxed out on RAM usage. I started getting fork errors but I still had 0/6GB Swap usage.

Is there a setting I should set for how much SWAP a VPS can use? Or do I set privvmpages for SWAP + RAM and then maybe vmguarpages for just RAM?

Any help would be greatly appreciated!

Thanks,
Devon

[EDIT]
Maybe someone can give me some exact values...

I want a VPS with 1024MB RAM and 1024MB SWAP available, right now I have privvmpages and vmguarpages to 262144.


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President

[Updated on: Mon, 22 January 2007 21:11]

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
Previous Topic: disk space usage
Next Topic: Any news on a new kernel branch?
Goto Forum:
  


Current Time: Wed Aug 07 10:10:08 GMT 2024

Total time taken to generate the page: 0.02891 seconds