[Users] Difference between swap and swappages?

Kirill Kolyshkin kolyshkin at gmail.com
Tue Dec 10 22:18:45 MSK 2019


On Tue, 10 Dec 2019 at 10:42, Arjit Chaudhary <arjit.c at gmail.com> wrote:

> Hi,
> Is there any difference between setting vSwap on the OpenVZ 7 based
> virtual machine?
>
> vzctl set $VMID --ram $RAM --swap $SWAP --save
>
> vs
>
> vzctl set $VMID --ram $RAM --swappages $SWAP --save
>
>
> does --swap end up using real swap on the host-node
>
> and
>
>  --swappages use the RAM as swap (ie, vswap) ?
>
>
> or are both the same ?
>

Please take a look at vzctl man page, it's all described in there. In
short, you should use --swap;
--swappages is working but obsolete.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20191210/979e3853/attachment.html>


More information about the Users mailing list