0

I wish to allocate vSwap memory to my OpenVZ containers. Where does OpenVz get the vSwap memory from? If the host were to run out of physical RAM, would the host start to use its own normal swap memory?

I ask this as I am using SSDs in our host server, which while not as fast as proper RAM, are still loads faster than spindle disks, so using normal swap space from these SSDs wouldn't be the worst thing in the world.

Many Thanks

0

This a standard host swap area exactly where you have configured it. vSwap - is just an option to set limits separately for RAM/SWAP on per-container basis. This option was not available in the past and one had to set joint limit RAM+SWAP called VMGARPAGES (that is amount of virtual memory).

PS. I would warn you against active using of SSD-based swap due to restricted number of write cycles for flash memory. Especially in RAID setup where trim option expected to be not available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.