OpenVZ Forum


Home » General » Support » Swap with non-VSwap kernel (cannot make swap working in OpenVZ containers)
Swap with non-VSwap kernel [message #44715] Fri, 23 December 2011 23:28 Go to previous message
Artem is currently offline  Artem
Messages: 9
Registered: December 2011
Location: Belarus, Minsk
Junior Member
Hi,

OpenVZ is great, it saves me much time maintaining a bunch of similar VMs. Migration from VirtualBox to OpenVZ seems to be a great idea, and I now have 7 VMs instead of 4 on the same hardware!

Recently got that enabling swap on containers can increase performance (it's application-specific). After changing swappages to a value for 4GB, I was able to see 4GB swap inside a container. But it remains 100% free all the time, even when container runs out of memory.

Unfortunately I'm stuck to 2.6.18 kernel and CentOS 5.7. Is there any way to force containers to make use of swap?

Thanks!

-Artem

HN Hardware: 16 GB RAM, Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
HN OS: CentOS 5.7 (Final)
Kernel: Linux 2.6.18-274.3.1.el5.028stab094.3ent (it's not yet VSwap, right?)

# rpm -qa | grep vz
vzctl-3.0.29.3-1
vzkernel-firmware-2.6.32-042stab036.6
vzquota-3.0.12-1
vzctl-lib-3.0.29.3-1
ovzkernel-ent-2.6.18-274.3.1.el5.028stab094.3
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Heartbeat+openvz
Next Topic: SSH, putty closes
Goto Forum:
  


Current Time: Sun Jul 14 21:16:59 GMT 2024

Total time taken to generate the page: 0.03434 seconds