physpages vs oomguarpages [message #46268] |
Tue, 08 May 2012 04:09 ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
nethubonline
Messages: 26 Registered: October 2007
|
Junior Member |
|
|
Hi all,
In my limited knowledge, for vSwap-enabled kernels, physpages can limit total size of physical RAM used by a container, for old kernels physpages is just for accounting purpose.
oomguarpages is to limit current amount of RAM + swap + kernel memory (kmemsize) + socket buffers used by container, if container exceeds this limit, its process may be killed.
Hence, for old kernels, if there is no memory being swapped, physpages will be equal or similar to oomguarpages.
However for vSwap-enabled kernels, oomguarpages seems are always less than physpages, sometimes oomguarpages is just 10% of physpages......
Anyone can let me know why?
Secondly, while physpages reachs 1G, but oomguarpages is still 400MB, how can we limit the container 1G RAM, so that this container's process being killed while exceed 1G RAM?
https://www.nethub.com.hk (VPS Hosting Provider in Hong Kong)
|
|
|