Hi,<div><br></div><div>I only have access to testing environments right now but these are commands I use:</div><div><div><br></div><div>Guaranteed allocable memory: 2048MB</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">Debian:/ # vzctl set 35 --vmguarpages 2048M:unlimited --save</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">Not Guaranteed total allocable memory: 3072MB (barrier)</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">Safety gap over not guaranteed allocable memory = 3072 * 125% = 3840M ( limit)</div>
<div><meta http-equiv="content-type" content="text/html; charset=utf-8">Debian:/ # vzctl set 35 --privvmpages 3072M:3840M --save</div><div><br></div><div>Out of memory guarantee. No processes will be killed if the VE consumes less than: 3840M</div>
<div><meta http-equiv="content-type" content="text/html; charset=utf-8">Debian:/ # vzctl set 35 --oomguarpages 3840M:unlimited --save</div><div><br></div><div>Kernel Space memory: barrier 50M limit 55M.</div><div>Debian:/ # vzctl set 35 --kmemsize 50M:55M --save</div>
</div><div><br></div><div>Note that this is not an efficient way of consuming RAM. It may be necessary to adjust the gap between barrier and limit of privvmpages.</div><div><br></div><div>Peter</div><div><br><br><div class="gmail_quote">
On Fri, Dec 10, 2010 at 6:18 AM, Steffan <span dir="ltr"><<a href="mailto:general@ziggo.nl">general@ziggo.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="NL" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Thanks Peter,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D">Is it possible to get a example config from you, just to see what you have setup ?</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D">Steffan</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:10.0pt">Van:</span></b><span style="font-size:10.0pt"> <a href="mailto:users-bounces@openvz.org" target="_blank">users-bounces@openvz.org</a> [mailto:<a href="mailto:users-bounces@openvz.org" target="_blank">users-bounces@openvz.org</a>] <b>Namens </b>Peter Senna Tschudin<br>
<b>Verzonden:</b> donderdag 9 december 2010 20:39<br><b>Aan:</b> <a href="mailto:users@openvz.org" target="_blank">users@openvz.org</a><br><b>Onderwerp:</b> Re: [Users] vzmemcheck</span></p></div><div><div></div><div class="h5">
<p class="MsoNormal" style="margin-left:35.4pt"> </p><p class="MsoNormal" style="margin-left:35.4pt">Hey Steffan,</p><div><p class="MsoNormal" style="margin-left:35.4pt"> </p></div><div><p class="MsoNormal" style="margin-left:35.4pt">
OpenVZ allows you to control separately both allocated and consumed memory. Not all allocated memory will be used.</p></div><div><p class="MsoNormal" style="margin-left:35.4pt"> </p></div><div><p class="MsoNormal" style="margin-left:35.4pt">
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.</p></div><div><p class="MsoNormal" style="margin-left:35.4pt"> </p></div><div><p class="MsoNormal" style="margin-left:35.4pt">
On my setups...</p></div><div><p class="MsoNormal" style="margin-left:35.4pt"> </p></div><div><p class="MsoNormal" style="margin-left:35.4pt">I set vmguarpages barrier to minimum amount of RAM that I want that the VE is able to allocate. OpenVZ guarantees this.</p>
</div><div><p class="MsoNormal" style="margin-left:35.4pt"> </p></div><div><p class="MsoNormal" style="margin-left:35.4pt">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.</p>
</div><div><p class="MsoNormal" style="margin-left:35.4pt"> </p></div><div><p class="MsoNormal" style="margin-left:35.4pt">Then I set oomguarpages to same value of privvmpages limit. This isn't the best scenario for RAM utilization but ensures low incidence of processes being killed by kernel due out of memory condition.</p>
</div><div><p class="MsoNormal" style="margin-left:35.4pt"> </p></div><div><p class="MsoNormal" style="margin-left:35.4pt">Hope that it helps,</p></div><div><p class="MsoNormal" style="margin-left:35.4pt"> </p></div><div>
<p class="MsoNormal" style="margin-left:35.4pt">Peter</p></div><div><p class="MsoNormal" style="margin-left:35.4pt"> </p><div><p class="MsoNormal" style="margin-left:35.4pt">On Thu, Dec 9, 2010 at 11:35 AM, Steffan <<a href="mailto:general@ziggo.nl" target="_blank">general@ziggo.nl</a>> wrote:</p>
<p class="MsoNormal" style="margin-left:35.4pt">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" target="_blank">Users@openvz.org</a><br>
<a href="https://openvz.org/mailman/listinfo/users" target="_blank">https://openvz.org/mailman/listinfo/users</a></p></div><p class="MsoNormal" style="margin-left:35.4pt"><br><br clear="all"><br>-- <br>Peter Senna Tschudin<br>
<a href="mailto:peter.senna@gmail.com" target="_blank">peter.senna@gmail.com</a><br>gpg id: 48274C36</p></div></div></div></div></div><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>
<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>