<div dir="ltr"><div dir="ltr">On Tue, 10 Dec 2019 at 11:30, Arjit Chaudhary &lt;<a href="mailto:arjit.c@gmail.com">arjit.c@gmail.com</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>Aha so they&#39;re the same thing, was just curious as I&#39;ve been noticing a bit of odd behavior on OpenVZ 7 host-nodes where the node has 128G RAM, around 30G used and it&#39;s swapping out 12G still instead of using the RAM as vSwap. Swappiness is set to 10 as well.</div></div></blockquote><div><br></div><div>Is it for containers or the host? You can use vzubc to check it.<br><br>In general, it&#39;s normal for some swappiness to occur even in case there&#39;s enough free RAM, but I agree that the figure of 12G looks a bit too big.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I&#39;m using the following commands to build the container if that help,</div><div><br></div><div>/usr/sbin/vzctl create $VMID --ostemplate $DISTRO<br>/usr/sbin/vzctl set $VMID --ipadd $VPS_IP --save<br>/usr/sbin/vzctl set $VMID --hostname <a href="http://vps.server.com" target="_blank">vps.server.com</a> --save<br>/usr/sbin/vzctl set $VMID --nameserver 8.8.8.8 --save<br>/usr/sbin/vzctl set $VMID --diskspace $DISK_SPACE$DISK_VARIABLE:$DISK_SPACE$DISK_VARIABLE --save<br>/usr/sbin/vzctl set $VMID --ram $RAM$RAM_VARIABLE --swappages $SWAP$SWAP_VARIABLE --save<br></div><div><br></div></div></blockquote><div><br></div><div>Again, please read the man page and use --swap not --swappages. If you&#39;re so inclined to use --swappages, please do it in a correct manner (barrier should be set to 0 as described).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 11, 2019 at 12:51 AM Kirill Kolyshkin &lt;<a href="mailto:kolyshkin@gmail.com" target="_blank">kolyshkin@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Tue, 10 Dec 2019 at 10:42, Arjit Chaudhary &lt;<a href="mailto:arjit.c@gmail.com" target="_blank">arjit.c@gmail.com</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>Is there any difference between setting vSwap on the OpenVZ 7 based virtual machine?</div><div><br></div><div><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px 14px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis">vzctl set $VMID --ram $RAM --swap $SWAP --save</p><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px 14px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis">vs</p><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis">vzctl set $VMID --ram $RAM --swappages $SWAP --save</p><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis"><br></p><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis">does --swap end up using real swap on the host-node </p><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis">and</p><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis"> --swappages use the RAM as swap (ie, vswap) ? </p><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis"><br></p><p style="color:rgb(42,45,49);font-family:&quot;Open Sans&quot;,&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Raleway,Arial,sans-serif;font-size:14px;word-break:break-word;line-height:inherit;box-sizing:inherit;margin:10px 0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;text-overflow:ellipsis">or are both the same ?</p></div></div></blockquote><div><br>Please take a look at vzctl man page, it&#39;s all described in there. In short, you should use --swap;</div><div>--swappages is working but obsolete.<br><br> </div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Thanks,<br>Arjit Chaudhary<br><div><div></div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</blockquote></div></div>