Being a fairly long term Xen user, I am trying to now learn KVM.
On my old CentOS 5.6 server, after having been stung in the past by a runaway guest consuming host CPU time to the point of making the entire group unresponsive, I made some changes as advised at http://wiki.xensource.com/xenwiki/XenBestPractices - namely the following:
/etc/xen/xend-config.sxp:
(dom0-min-mem 512)
(auto-balloon-dom0 no)
Grub menu.lst:
kernel /xen.gz-2.6.18-238.19.1.el5 dom0_mem=512M loglvl=all guest_loglvl=all
And finally edit /etc/rc.local:
xm sched-credit -d Domain-0 -w 512
Those settings have on a couple of occasions now saved my host's CPU time, allowing me to kill a badly behaving guest.
So - my question is, are similar techniques required under KVM to protect the host's CPU time? My new server will not be oversubscribed for guest RAM, so I am planning on disabling swap as per comments here http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/ch24s06.html. That will prevent the host from swapping guest processes to disk, thus helping maintain responsiveness, but the interwebs seems pretty thin on detail about CPU scheduling for a KVM host... anyone shed any light / recommendations?
KVM Protecting host
Issues related to applications and software problems
-
- Posts: 112
- Joined: 2009/04/18 04:48:27
Return to “CentOS 6 - Software Support”
Jump to
- CentOS General Purpose
- ↳ CentOS - FAQ & Readme First
- ↳ Announcements
- ↳ CentOS Social
- ↳ User Comments
- ↳ Website Problems
- CentOS 8 / 8-Stream / 9-Stream
- ↳ 8 /8-Stream / 9-Stream - General Support
- ↳ 8 /8-Stream / 9-Stream - Hardware Support
- ↳ 8 /8-Stream / 9-Stream - Networking Support
- ↳ 8 /8-Stream / 9-Stream - Security Support
- CentOS 7
- ↳ CentOS 7 - General Support
- ↳ CentOS 7 - Software Support
- ↳ CentOS 7 - Hardware Support
- ↳ CentOS 7 - Networking Support
- ↳ CentOS 7 - Security Support
- CentOS Legacy Versions
- ↳ CentOS 5
- ↳ CentOS 5 - General Support
- ↳ CentOS 5 - Software Support
- ↳ CentOS 5 - Hardware Support
- ↳ CentOS 5 - Networking Support
- ↳ CentOS 5 - Server Support
- ↳ CentOS 5 - Security Support
- ↳ CentOS 5 - Oracle Installation and Support
- ↳ CentOS 5 - Miscellaneous Questions
- ↳ CentOS 6
- ↳ CentOS 6 - General Support
- ↳ CentOS 6 - Software Support
- ↳ CentOS 6 - Hardware Support
- ↳ CentOS 6 - Networking Support
- ↳ CentOS 6 - Security Support