OpenVZ Forum


Home » General » Support » Meminfo again
Meminfo again [message #9174] Wed, 20 December 2006 21:25 Go to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
Is there any way to show privvmpages held instead of oomguarpages held when we execute 'free -m' inside a VE?

For example a VE using 300MB RAM (Privvmpages) will appear as only 60MB (OOmguarpages).

Since we can set meminfo as privvmpages:1 it should show privvmpages Neutral



http://static.openvz.org/userbars/openvz-user.png
Re: Meminfo again [message #9179 is a reply to message #9174] Thu, 21 December 2006 08:14 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
The only way I see - you can patch the kernel a little.
But I don't think, that is what you need...
The choice to use oomguarpages is rather logical, while
privvmpages is not.
Re: Meminfo again [message #9196 is a reply to message #9179] Thu, 21 December 2006 19:39 Go to previous messageGo to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
Why privvmpages are not logical?


Eg.
The user is hitting his limits:
            privvmpages                254314               262145               256000               262144                115157


But he and his control panel think the VE still have RAM:
root@server [/var/log]# free -m
             total       used       free     shared    buffers     cached
Mem:          1000        758        241          0          0          0
-/+ buffers/cache:        758        241
Swap:            0          0          0


http://static.openvz.org/userbars/openvz-user.png
Re: Meminfo again [message #9229 is a reply to message #9196] Fri, 22 December 2006 09:15 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

The point is that privvmpages held is how much memory applications in VE have allocated. But they don't use all the this memory in fact! Expirience says, that most of the programms use only 10-30% of memmory they've allocated. Thus, privvmpages limit is a limit for allocation, while oomguarpages is a limit for real physical memory used by VE.

Please, read wiki.openvz.org/UBC for additional information.
Previous Topic: APF
Next Topic: *SOLVED* Problem init vz
Goto Forum:
  


Current Time: Fri Oct 04 07:28:30 GMT 2024

Total time taken to generate the page: 0.04958 seconds