From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zdenek Kaspar Subject: Re: Reserve CPU cores for specific guests? Date: Mon, 09 Nov 2009 01:26:49 +0100 Message-ID: <4AF761C9.5000506@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Neil Aggarwal Return-path: Received: from mail-bw0-f227.google.com ([209.85.218.227]:63680 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750965AbZKIA1C (ORCPT ); Sun, 8 Nov 2009 19:27:02 -0500 Received: by bwz27 with SMTP id 27so2955381bwz.21 for ; Sun, 08 Nov 2009 16:27:07 -0800 (PST) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Neil Aggarwal napsal(a): > Hello: > > I don't think there is a way to do this with KVM, but > I figured I would ask: > > I want to be able to offer virtual private servers (VPSs) > to clients. I am going to use KVM for it. > > I would like to offer clients the option to buy either: > 1. A VPS which allows CPUs to be overcommitted. > 2. A VPS with a dedicated CPU core. > > So, for example, if I have a six core opteron, I might > sell: > 2 VPSs with a dedicated CPU core > 6 VPSs which allow overcommitted CPUs > > Since I need one core for the hypervisor, there would > need to be a way to say that it gets a dedicated core > plus the other 2 VPSs get a dedicated core. That > leaves 3 pooled cores to serve the 6 VPSs that > are allowed to overcommit. > > Is there a way to set up a pooled set of cores > for a given list of VPSs? > > I think I may have to use separate physical machine > for the VPSs with dedicated cores and the ones with > overcommitted ones. > > 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 I think you can achieve that on some simple level DIY with taskset from util-linux(-ng). HTH, Z.