OpenVZ Forum


Home » General » Support » Is privvmpages's MAX limited to the amount of RAM on a computer
Is privvmpages's MAX limited to the amount of RAM on a computer [message #35014] Fri, 20 February 2009 00:02 Go to previous message
CatDaaaady is currently offline  CatDaaaady
Messages: 7
Registered: September 2008
Location: 94555
Junior Member
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." Smile
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Accessing host directory/parition from VPS
Next Topic: two NICs in openvz
Goto Forum:
  


Current Time: Mon Jul 14 19:52:11 GMT 2025

Total time taken to generate the page: 0.01638 seconds