I wanna ask about RAM in VPS [message #9401] |
Sun, 31 December 2006 04:18 |
tamtam
Messages: 1 Registered: December 2006
|
Junior Member |
|
|
I am using OpenVZ. Can anybody tell me the way to recognise how many physical RAM a specific VPS can be allocate to use maximum and how many physical RAM a specific VPS used
Regards,
Thanx
|
|
|
Re: I wanna ask about RAM in VPS [message #9402 is a reply to message #9401] |
Sun, 31 December 2006 04:47 |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Hello, and welcome to the forum.
In the VE, there is no accurate concept of physical ram vs. swap ram. Its just "memory"; the HN takes care of keeping rapidly accessed memory in RAM and other in swap. I'll add a bit more to this at the end. Knowing that basic fact, here are the answers to your question.
Quote: | how much physical RAM a specific VPS can allocate
|
privvmpages barrier
Quote: | how much physical RAM a specific VPS is using
|
physpages held
Both metrics are rated in pages, which is 4K bytes on 32bit and 16k bytes on 64bit architectures.
privvmpages, vmguarpages, oomguarpages are memory metrics which you set per VE. Suprisingly to most new admins, this can be set to an arbitrary value. If your HN has 1GB of ram and 1GB of swap, you can still set the above metrics to 10GB for example. This isn't a "healthy" configuration, but its worth pointing out that nothing will stop you.
Hope this helps!
Rick Blundell
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|