From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanpeng Li Subject: Re: Query with respect to VCPU scheduling Date: Wed, 8 Oct 2014 09:10:58 +0800 Message-ID: <20141008011058.GA13262@kernel> References: Reply-To: Wanpeng Li Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Mohan Kumar Return-path: Received: from mga01.intel.com ([192.55.52.88]:42361 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755625AbaJHBbi (ORCPT ); Tue, 7 Oct 2014 21:31:38 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Oct 03, 2014 at 01:40:29PM -0400, Mohan Kumar wrote: >Hello all, > >I am new to KVM and look at a particular case in KVM. >I know that KVM uses CFS. > >The question I have is as follows: > >- I have two VMs with 2 VCPU each. And the actual > CPUs are also 2 and both the VMs use the 2 CPUs. > >I want one VM to use only 25 % of the actual CPU and the >remaining to be used by the other VM. > >Since KVM uses CFS, I am thinking that with CFS I can >provide these guarantee as mentioned above. I know >we can do these shares with cgroups. > >Is cgroups the only option?. Any pointers to this would help. How about CFS bandwidth control? Regards, Wanpeng Li > >Thanks, >Mohan >-- >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