Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

VSwap

73 bytes added, 16:41, 17 January 2012
m
conver from old to new
If you have an existing container with usual UBC parameters set, and you want to convert this one into VSwap enabled config, here's what you need to do.
# Decide on how much RAM and swap you want this CT to have. FIXME how Generally, sum of your new RAM+swap should be more or less equal to convert from UBCsum of old PRIVVMPAGES and KMEMSIZE.
# Manually remove all UBC parameters from config. '''This is optional''', you can still have UBC limits applied if you want.
2. # Add PHYSPAGES and SWAPPAGES parameters to config. Easiest way is to use <code>vzctl set $CTID --ram N --swap M --save</code>
Now your config is vswap enabled, and when you (re)start it, vswap mechanism will be used by the kernel for this CT.