From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Fjellstrom Subject: Re: Reserve CPU cores for specific guests? Date: Sun, 8 Nov 2009 20:14:05 -0700 Message-ID: <200911082014.05845.tfjellstrom@shaw.ca> References: <4AF761C9.5000506@gmail.com> <64B8A9B90F804CDF998387C037871E50@neilhp> Reply-To: tfjellstrom@shaw.ca Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from idcmail-mo1so.shaw.ca ([24.71.223.10]:27940 "EHLO idcmail-mo1so.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753583AbZKIDOB (ORCPT ); Sun, 8 Nov 2009 22:14:01 -0500 In-Reply-To: <64B8A9B90F804CDF998387C037871E50@neilhp> Sender: kvm-owner@vger.kernel.org List-ID: On Sun November 8 2009, Neil Aggarwal wrote: > > I think you can achieve that on some simple level DIY with > > taskset from > > util-linux(-ng). > > That is a good utility to know. I did not know about that > earlier. Thanks for the info. > > I am wondering one thing though: > > I will either need to call taskset when executing the > process or run taskset on a PID after it starts up. > > Unless there is a way to tell KVM to call taskset when starting > a guest, I think that is going to be hard to automate since the > guests will get different PID each time they are started. > > Any suggestions? > None directly related, but libvirt's kvm support supports pinning a vm to a physical cpu. At least it has the option in virt-manager. > Thanks, > Neil > > -- > Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com > CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU > 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW, Zero downtime > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Thomas Fjellstrom tfjellstrom@shaw.ca