From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dor Laor Subject: Re: Reserving CPU resources for a KVM guest Date: Sun, 24 Aug 2008 00:58:43 +0300 Message-ID: <48B08813.2000709@il.qumranet.com> References: <00e001c90494$a459a8a0$6600a8c0@YukselsLaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Yuksel Gunal Return-path: Received: from il.qumranet.com ([212.179.150.194]:31037 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752951AbYHWV6a (ORCPT ); Sat, 23 Aug 2008 17:58:30 -0400 In-Reply-To: <00e001c90494$a459a8a0$6600a8c0@YukselsLaptop> Sender: kvm-owner@vger.kernel.org List-ID: Yuksel Gunal wrote: > Hi, > > I have been playing with KVM and was wondering about the following > question: is there a resource configuration setting that would enforce > a fraction of CPU to be guaranteed for a KVM guest? What I have on > mind is something similar to the "reservation" setting on VMware (used > to be called minimum CPU), which guarantees a number of CPU cycles to > a VM. Also, any configuration setting similar to CPU/Memory Shares > setting in VMware, which will kick in under contention for resources? > VM is like any other process in Linux, you can use cpu controller, cgroups or any other scheduling option for your VMs.