OpenVZ Forum


Home » General » Support » I wanna ask about RAM in VPS
Re: I wanna ask about RAM in VPS [message #9402 is a reply to message #9401] Sun, 31 December 2006 04:47 Go to previous message
rickb is currently offline  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
 
Read Message
Read Message
Previous Topic: question and problem (about QoS)
Next Topic: *SOLVED* "reboot" doesn't reboot VPS
Goto Forum:
  


Current Time: Fri Aug 15 20:18:20 GMT 2025

Total time taken to generate the page: 0.40797 seconds