All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Harald Dunkel <harald.dunkel@aixigo.de>
Cc: Harald Dunkel <harri@darkharri.de>,
	KVM Mailing List <kvm@vger.kernel.org>
Subject: Re: how to tweak kernel to get the best out of kvm?
Date: Sat, 13 Mar 2010 10:54:12 +0200	[thread overview]
Message-ID: <4B9B52B4.9040505@redhat.com> (raw)
In-Reply-To: <4B98EEFA.2090208@aixigo.de>

On 03/11/2010 03:24 PM, Harald Dunkel wrote:
> Hi Avi,
>
> I had missed to include some important syslog lines from the
> host system. See attachment.
>
> On 03/10/10 14:15, Avi Kivity wrote:
>    
>> You have tons of iowait time, indicating an I/O bottleneck.
>>
>>      
> Is this disk IO or network IO?

disk.

> The rsync session puts a
> high load on both, but actually I do not see how a high
> load on disk or block IO could make the virtual hosts
> unresponsive, as shown by the hosts syslog?
>
>    

qcow2 is still not fully asynchronous, so sometimes when it waits, a 
vcpu waits as well.

>> Here the problem is likely the host filesystem and/or I/O scheduler.
>>
>> The optimal layout is placing guest disks in LVM volumes, and accessing
>> them with -drive file=...,cache=none.  However, file-based access should
>> also work.
>>
>>      
> I will try LVM tomorrow, when the test with reiserfs is completed.
>
>    

If the slowdown is indeed due to I/O, LVM (with cache=off) should 
eliminate it completely.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


  reply	other threads:[~2010-03-13  8:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-05 15:20 how to tweak kernel to get the best out of kvm? Harald Dunkel
2010-03-08 11:02 ` Avi Kivity
     [not found]   ` <4B979776.1000701@aixigo.de>
2010-03-10 13:15     ` Avi Kivity
2010-03-10 15:57       ` Javier Guerra Giraldez
2010-03-10 16:00         ` Avi Kivity
2010-03-11 13:24       ` Harald Dunkel
2010-03-13  8:54         ` Avi Kivity [this message]
2010-03-15 13:54           ` Harald Dunkel
  -- strict thread matches above, loose matches on Subject: below --
2010-04-23  8:47 Alec Istomin

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=4B9B52B4.9040505@redhat.com \
    --to=avi@redhat.com \
    --cc=harald.dunkel@aixigo.de \
    --cc=harri@darkharri.de \
    --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.