Editing VSwap

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 35: Line 35:
  
 
Since vzctl 4.6, if some optional beancounters are not set, vzctl sets them implicitly,
 
Since vzctl 4.6, if some optional beancounters are not set, vzctl sets them implicitly,
based on '''ram''' and '''swap''' settings.
+
using ram and swap and, in case of privvmpages, a new parameter called '''VM overcommit'''.
  
 
The following formulae are used:
 
The following formulae are used:
Line 45: Line 45:
 
<math>vmguarpages_{bar} = vmguarpages_{lim} = ram + swap</math>
 
<math>vmguarpages_{bar} = vmguarpages_{lim} = ram + swap</math>
  
==== VM overcommit and privvmpages ====
+
Also, if <math>vm\_overcommit</math> is set to non-zero:
 
 
vzctl 4.6 adds a new parameter, <code>--vm_overcommit</code>.
 
Its only purpose is to be used in privvmpages calculation,
 
in case VSwap is used and there is no explicit setting
 
for privvmpages.
 
 
 
If <math>vm\_overcommit</math> is set:
 
  
 
: <math>privvmpages_{bar} = privvmpages_{lim} = (ram + swap) \times vm\_overcommit</math>
 
: <math>privvmpages_{bar} = privvmpages_{lim} = (ram + swap) \times vm\_overcommit</math>
  
If it is not set:
+
otherwise:
  
 
: <math>privvmpages_{bar} = privvmpages_{lim} = \infty</math>
 
: <math>privvmpages_{bar} = privvmpages_{lim} = \infty</math>

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: