I can't seem to get a straight answer on this one.
After reading these links:
http://forum.openvz.org/index.php?t=msg&goto=2594&#m sg_2886
http://maxgarrick.com/understanding-openvz-resource-limits/
http://forum.openvz.org/index.php?t=msg&goto=32000&
http://wiki.openvz.org/Privvmpages#privvmpages
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
I am unsure if we can set a VE's privvmpages to more than a system's total RAM.
For instance if I have a system that has:
4GB RAM
4GB SWAP
*HardwareNode*
free -m
total used free shared buffers cached
Mem: 3926 224 3702 0 4 78
-/+ buffers/cache: 141 3785
Swap: 4094 9 4085
I can run this command.
vzctl set 33503 --privvmpages 4G --save
Then run "free -m" inside the VE and we will see 4Gs for the system.
*VE*
$ free -m
total used free shared buffers cached
Mem: 3926 75 3850 0 0 0
-/+ buffers/cache: 75 3850
Swap: 0 0 0
$
But if I set it to more then 4G it will not show up as system memory.
vzctl set 33503 --privvmpages 6G --save
*VE*
$ free -m
total used free shared buffers cached
Mem: 3926 75 3850 0 0 0
-/+ buffers/cache: 75 3850
Swap: 0 0 0
$
Thoughts?
If the answer is "no". My follow up question is "Why not? Assuming you have enough SWAP to cover it."