Hey Steffan,<div><br></div><div>OpenVZ allows you to control separately both allocated and consumed memory. Not all allocated memory will be used.</div><div><br></div><div>So OpenVZ will allow you to allocate more memory than you host has: RAM + SWAP but the user land apps of your VEs will not be able to use it.</div>
<div><br></div><div>On my setups...</div><div><br></div><div>I set vmguarpages barrier to minimum amount of RAM that I want that the VE is able to allocate. OpenVZ guarantees this.</div><div><br></div><div>I set privvmpages barrier to the maximum amount of RAM that I want that the VE is able to allocate. I set privvmpages limit to a value higher than barrier, like 5%~25% more. OpenVZ does not guarantees that the extra amount of RAM will be allocable.</div>
<div><br></div><div>Then I set oomguarpages to same value of privvmpages limit. This isn&#39;t the best scenario for RAM utilization but ensures low incidence of processes being killed by kernel due out of memory condition.</div>
<div><br></div><div>Hope that it helps,</div><div><br></div><div>Peter</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br><div class="gmail_quote">
On Thu, Dec 9, 2010 at 11:35 AM, Steffan <span dir="ltr">&lt;<a href="mailto:general@ziggo.nl">general@ziggo.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello All,<br>
New to the list, loving openvz<br>
But having trouble finding out the right settings for the containers<br>
<br>
Can someone tell me if im in trouble or everything looks fine<br>
<br>
vzcpucheck -v<br>
VEID            CPUUNITS<br>
-------------------------<br>
0               1000<br>
1               10000<br>
7               10000<br>
8               10000<br>
13              10000<br>
15              10000<br>
23              10000<br>
3               10000<br>
5               10000<br>
2               10000<br>
9               10000<br>
Current CPU utilization: 101000<br>
Power of the node: 1809010<br>
<br>
vzmemcheck -v<br>
Output values in %<br>
veid        LowMem  LowMem     RAM MemSwap MemSwap   Alloc   Alloc   Alloc<br>
              util  commit    util    util  commit    util  commit   limit<br>
9             1.44   45.79    1.13    0.97   10.77    2.16    3.42   20.15<br>
5             3.14   45.79    3.06    2.62   10.77    5.30   10.77   20.15<br>
3             3.96   45.79    3.08    2.64   10.77    5.06   10.77   20.15<br>
23            2.04   45.79    2.31    1.98   10.77    3.60   10.77   20.15<br>
15            2.69   45.79    3.45    2.95   10.77    5.25   10.77   20.15<br>
13            2.68   45.79    2.18    1.87   10.77    4.47   10.77   20.15<br>
8             3.33   45.79    4.21    3.60   10.77    5.91   10.77   20.15<br>
7             2.29   45.79    1.90    1.62   10.77    3.55   10.77   20.15<br>
2             2.41   45.79    3.39    2.90   10.77    4.72   10.99   20.15<br>
1             1.98   45.79    1.64    1.40   10.77    2.78   10.77   20.15<br>
-------------------------------------------------------------------------<br>
Summary:     25.96  457.95   26.34   22.55  107.69   42.80  100.57  201.49<br>
<br>
<br>
The hw node hs 24 Gb memory, expendable to 96G<br>
2 E5520 @ 2.27GHz quadcore processes<br>
<br>
How do i read this:<br>
25.96 % in use<br>
But overclocked for 457.95 % ?<br>
<br>
<br>
With regards<br>
<br>
Steffan<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://openvz.org/mailman/listinfo/users" target="_blank">https://openvz.org/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Peter Senna Tschudin<br><a href="mailto:peter.senna@gmail.com">peter.senna@gmail.com</a><br>gpg id: 48274C36<br>
</div>