On 12/01/2010 02:41 PM, Richard W.M. Jones wrote: > On Wed, Dec 01, 2010 at 02:11:34PM +0100, Henry Pepper wrote: >> Hi >> >> I'm trying to find out how I can pin the host OS to a cpu set, e.g. >> cpu0 on RHEL6. >> >> On Xen I simply pin the Domain-0 to a cpu set. >> >> But I don't seem to be able to identify the host OS in RHEL6/KVM. > > Unlike Xen, the host isn't a special sort of guest. The host is the > host, and so you just use standard Linux techniques. > > The way I know to do this is to add "isolcpus=..." on the Linux boot > command line, although I've not used this for quite a long time and I > haven't tried it on RHEL 6. > > isolcpus works in reverse: it's the CPUs that you want Linux *not* to > run on, so you probably want something like isolcpus=1-3
libvirt also has an XML notation for cpu pinning; it is part of the <vcpu> element, documented http://libvirt.org/formatdomain.html#elementsResources (although admittedly the libvirt documentation could use more examples). -- Eric Blake [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
_______________________________________________ virt mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/virt
