OpenVZ and vSwap
So we know openvz doesn't have real swap and it uses vswap instead. My understanding of vswap is that it's just ram but slowed down ram to make it feel like swap.
So my question is that if a host node have 16GB of ram, and have created 2 openvz containers each with 4GB of ram and 4GB of vswap. And say if both of these containers use all 4GB of ram and all 4GB of vswap, then does it mean that the host node will use all 16GB of ram? Or will the host node start swapping as well? If it's the latter, then will the host node swap the content of vswap or ram of the openvz containers? Would WHMCS or whatever provisioning program consider such a host node have free space or at its full capacity? (Aka will it provision more containers on that node or will it provision on a new one?) I'm assuming it would be considered as have extra space since total ram is 16GB with lots of swap and total used is only 12GB with 12GB of swap.
And at this time, if an additional container is created on the same node with again 4GB of ram and 4GB of vswap, will the third container's 4GB "guaranteed" ram be using host node's ram or vswap?