public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Question about limiting KVM cpu usage
@ 2008-09-11 16:27 Steve Lorimer
  2008-09-11 17:18 ` FinnTux
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Lorimer @ 2008-09-11 16:27 UTC (permalink / raw)
  To: kvm

Hello, all,
    I have what should be a simple question concerning KVM.  Is there a 
way 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 access to full computing power if no other guest needs it.  
Thanks for any advice.


Steve Lorimer <slorimer  a t   kmbc.edu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about limiting KVM cpu usage
  2008-09-11 16:27 Question about limiting KVM cpu usage Steve Lorimer
@ 2008-09-11 17:18 ` FinnTux
  2008-09-11 21:15   ` Cristi Magherusan
  0 siblings, 1 reply; 3+ messages in thread
From: FinnTux @ 2008-09-11 17:18 UTC (permalink / raw)
  To: Steve Lorimer; +Cc: kvm

2008/9/11 Steve Lorimer <slorimer@kmbc.edu>:
> Hello, all,
>   I have what should be a simple question concerning KVM.  Is there a way 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 access to
> full computing power if no other guest needs it.  Thanks for any advice.

You can use standard linux process utilities. Check out nice, ionice
and taskset.

nice to set process priority
ionice to set I/O priority
taskset to set CPU affinity

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about limiting KVM cpu usage
  2008-09-11 17:18 ` FinnTux
@ 2008-09-11 21:15   ` Cristi Magherusan
  0 siblings, 0 replies; 3+ messages in thread
From: Cristi Magherusan @ 2008-09-11 21:15 UTC (permalink / raw)
  To: FinnTux; +Cc: Steve Lorimer, kvm

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

On Thu, 2008-09-11 at 20:18 +0300, FinnTux wrote:
> 2008/9/11 Steve Lorimer <slorimer@kmbc.edu>:
> > Hello, all,
> >   I have what should be a simple question concerning KVM.  Is there a way 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 access to
> > full computing power if no other guest needs it.  Thanks for any advice.
> 
> You can use standard linux process utilities. Check out nice, ionice
> and taskset.

I think 'cpulimit' is what you really need.

Cristi
-- 
Ing. Cristi Măgherușan,
Universitatea Tehnică din Cluj-Napoca
Centrul de Comunicații "Pusztai Kalman"
Tel. 0264/401247  http://cc.utcluj.ro

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-11 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 16:27 Question about limiting KVM cpu usage Steve Lorimer
2008-09-11 17:18 ` FinnTux
2008-09-11 21:15   ` Cristi Magherusan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox