OpenVZ Forum


Home » Mailing lists » Users » fake swap != 0 in VE?
Re: fake swap != 0 in VE? (solved) [message #27275 is a reply to message #27274] Wed, 13 February 2008 14:52 Go to previous message
Dariush Pietrzak is currently offline  Dariush Pietrzak
Messages: 40
Registered: November 2007
Member
> Would not the same effect be achived using OpenVZ builtin --meminfo
> parameter to vzctl?
 oooh, this is good, 
 however I can't find any info/docs about this option, the only thing I
found is:
"Recently Vasily Averin very clearly explained the reason but it was in
Russian part of OpenVZ forum. Smile
I'll try to reproduce his idea very precisely.
The fact is that you can restrict the userspace memory via privmpages but
inside VE we cannot divide it among the SWAP and RAM. In theory all VE's
userspace memory can be swapped that is why
we have to represent the swap size inside VE like privmpages.
But also VE's userspace can stay in RAM so we have to take into account
privmpages in RAM accounting. So we have take into account privvmpages in
RAM and in SWAP accounting. That is why inside VE swap is shown like zero.
But if your application uses the top/free output you can switch off
/proc/meminfo virtualization by using vzctl's --meminfo parameter. And get
the same /proc/meminfo like on host system."
-- 
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
 Total Existance Failure
 
Read Message
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 in domu (xen)
Next Topic: Network configuration
Goto Forum:
  


Current Time: Wed Aug 20 04:41:38 GMT 2025

Total time taken to generate the page: 0.09605 seconds