All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Erik Brakkee <erik@brakkee.org>
Cc: KVM list <kvm@vger.kernel.org>
Subject: Re: Workload spikes on KVM host when doing IO on a guest...
Date: Sun, 20 May 2012 20:49:23 +0300	[thread overview]
Message-ID: <4FB92EA3.7070706@redhat.com> (raw)
In-Reply-To: <4FB929DE.8000500@brakkee.org>

On 05/20/2012 08:29 PM, Erik Brakkee wrote:
> Avi Kivity wrote:
>> On 05/20/2012 08:02 PM, Erik Brakkee wrote:
>>> [...]
>>> Thanks for this information. Unfortunately, io="native" in domain.xml
>>> is not supported by opensuse 11.3. It is supported in 12.1 so it
>>> appears that the version of KVM I have on the server is too old. I
>>> tried it on a system running the newer version and indeed, as you say
>>> the load disappears completely when using io="native".
>>>
>>> I am going to update the host now (probably to centos 6.2) to get rid
>>> of this problem.
>> To be clear: it's not a problem.  It's completely normal, and doesn't
>> affect anything.
> The only problem with it is that it leads to high workload spikes,
> which is normally a reason to have a good look at what is going on. In
> this case, the newer version of KVM should help eliminate these
> spikes, so that the next time I see a spike in the workload I know
> that I have to look into something.

Problem is, it doesn't mean anything important.  It's the count of
running threads plus the count of threads uninterruptibly waiting on a
mutex.  It's absolutely meaningless.

> I noticed the issue after I started monitoring the server and all VMs
> using zabbix (www.zabbix.com) and made a graph showing the workload of
> the hosts and that of all guests. See below. Falcon is the host and
> sparrow is a continuous integration server which is creating an
> updated RPM repository and writing a lot of files.
>
>
>
> Still the whole area of workload is a bit confusing to me. Is the
> effect of native IO simply that some of the IO work is not being
> counted anymore as part of the workload because the work is no longer
> done in user space?

No, it no longer holds a mutex. Yet it does exactly the same thing. 
That's an indication that the counter is meaningless.

(If the counter doesn't drop on an idle machine, that usually indicates
trouble; but that's not the case)

-- 
error compiling committee.c: too many arguments to function


  parent reply	other threads:[~2012-05-20 17:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-20  0:55 Workload spikes on KVM host when doing IO on a guest Erik Brakkee
2012-05-20 13:54 ` Avi Kivity
     [not found]   ` <4FB923BB.9070306@brakkee.org>
     [not found]     ` <4FB924D0.1020704@redhat.com>
     [not found]       ` <4FB929DE.8000500@brakkee.org>
2012-05-20 17:49         ` Avi Kivity [this message]
2013-04-03 20:19           ` Erik Brakkee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FB92EA3.7070706@redhat.com \
    --to=avi@redhat.com \
    --cc=erik@brakkee.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.