OpenVZ Forum


Home » General » Support » Container with vswap shows whole server memory
Container with vswap shows whole server memory [message #44885] Wed, 11 January 2012 13:26 Go to next message
mgielissen is currently offline  mgielissen
Messages: 5
Registered: January 2012
Junior Member
On Centos 5.7 with the a recent vz 2.6.18 kernel, all the containers with VSWAP (created with vswap-256 for example) are showing the whole memory from de server. The vswap size is correct.

Example (memory server is 3GB):

Container

free
             total       used       free     shared    buffers     cached
Mem:       3079328     376840    2702488          0          0          0
-/+ buffers/cache:     376840    2702488
Swap:       524288          0     524288


conf:

PHYSPAGES="0:256M"
SWAPPAGES="0:512M"
KMEMSIZE="233M:256M"
DCACHESIZE="116M:128M"
LOCKEDPAGES="256M"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"
VMGUARPAGES="0:unlimited"
OOMGUARPAGES="0:unlimited"
NUMTCPSOCK="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
NUMOTHERSOCK="unlimited"
NUMFILE="unlimited"
NUMIPTENT="unlimited"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="10485760:11534336"
DISKINODES="200000:220000"
QUOTATIME="0"
Re: Container with vswap shows whole server memory [message #44893 is a reply to message #44885] Wed, 11 January 2012 15:39 Go to previous messageGo to next message
azagzin is currently offline  azagzin
Messages: 38
Registered: May 2008
Location: Vilnius
Member
from VSWAP Wiki page:
New RHEL6-based OpenVZ kernel has a new memory management model, which supersedes User beancounters. It is called VSwap.
Re: Container with vswap shows whole server memory [message #44898 is a reply to message #44885] Wed, 11 January 2012 17:54 Go to previous message
mustardman is currently offline  mustardman
Messages: 91
Registered: October 2009
Member
vswap is not backwards compatible with OVZ rhel 5 kernel.

So you cannot use those ovz rhel 6 vswap config file.
Previous Topic: vzquota : (error) can't lock quota
Next Topic: eth0 error fetching interface
Goto Forum:
  


Current Time: Tue May 21 20:33:15 GMT 2024

Total time taken to generate the page: 0.00428 seconds