From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cristi Magherusan Subject: Re: Question about limiting KVM cpu usage Date: Fri, 12 Sep 2008 00:15:28 +0300 Message-ID: <1221167728.4812.1.camel@localhost> References: <48C946EE.3030207@kmbc.edu> <6e10be650809111018q265a20c5l827be6324202d5d9@mail.gmail.com> Reply-To: cristi.magherusan@net.utcluj.ro Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-/qSRAMFwLR9f+Bk5utBz" Cc: Steve Lorimer , kvm@vger.kernel.org To: FinnTux Return-path: Received: from bavaria.utcluj.ro ([193.226.5.35]:57310 "EHLO bavaria.utcluj.ro" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755546AbYIKVPl (ORCPT ); Thu, 11 Sep 2008 17:15:41 -0400 In-Reply-To: <6e10be650809111018q265a20c5l827be6324202d5d9@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: --=-/qSRAMFwLR9f+Bk5utBz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 2008-09-11 at 20:18 +0300, FinnTux wrote: > 2008/9/11 Steve Lorimer : > > Hello, all, > > I have what should be a simple question concerning KVM. Is there a w= ay to > > limit cpu usage for a KVM guest? In other words, if I am running four = guest > > servers and something on one of them begins to use a ton of cpu, I don'= t > > really want it to slow down all the others. Is the only way to do this= by > > limiting it to one cpu core? Granted, I would prefer that it have acce= ss to > > full computing power if no other guest needs it. Thanks for any advice= . >=20 > You can use standard linux process utilities. Check out nice, ionice > and taskset. I think 'cpulimit' is what you really need. Cristi --=20 Ing. Cristi M=C4=83gheru=C8=99an, Universitatea Tehnic=C4=83 din Cluj-Napoca Centrul de Comunica=C8=9Bii "Pusztai Kalman" Tel. 0264/401247 http://cc.utcluj.ro --=-/qSRAMFwLR9f+Bk5utBz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkjJinAACgkQfwrBISYVZFWgGQCffbSnmhTHadK4Tho4t2HJ1G14 C+sAn3i1/20xZ8LUMWn5IYMGKTn9c2aF =20OQ -----END PGP SIGNATURE----- --=-/qSRAMFwLR9f+Bk5utBz--