qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: 叶绍琛 <yeshaochen@foxmail.com>
Cc: josh.durgin@inktank.com, qemu-devel <qemu-devel@nongnu.org>,
	qemu-discuss <qemu-discuss@nongnu.org>
Subject: Re: [Qemu-devel] qemu vm big network latency when met heavy io
Date: Wed, 8 Jan 2014 12:44:07 +0800	[thread overview]
Message-ID: <20140108044407.GG30570@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <tencent_2B73F8D91117D5F534D25607@qq.com>

On Mon, Jan 06, 2014 at 02:55:54PM +0800, 叶绍琛 wrote:
> hi, all:
> 
> 
> There is a problem when I use ceph rbd for qemu storage. I launch 4 virtual machines, and start 5G random write test at the same time. Under such heavy I/O, the network to 
> virtual machine almost unusable, the network latency is extremely big.
> 
> 
> I had test another situation, when I use 'virsh attach-device' command to attach rbd which mapped in my host machine(which run virtual machines), the problem was not show again.

Does this mean you are comparing QEMU's rbd block driver against the
Linux kernel rbd driver?

> So, I think this must be qemu-rbd 's problem.

Please try running jitterd to confirm that the guest vCPU is getting
sufficient execution time:
http://codemonkey.ws/cgit/jitterd.git/tree/jitterd.c

This test will confirm that network I/O is performing poorly, not a
starved guest CPU.

> Here is my testing environment:
> 
> 
> # virsh version
> Compiled against library: libvirt 1.2.0
> Using library: libvirt 1.2.0
> Using API: QEMU 1.2.0
> Running hypervisor: QEMU 1.7.0
> 
> 
> In vm's xml, I define the rbd like this:
>     <disk type='network' device='disk'>
>       <driver name='qemu' type='raw' cache='none'/>
>       <source protocol='rbd' name='qemu/rbd-vm4'>
>         <host name='10.120.111.111' port='6789'/>
>       </source>
>       <auth username='libvirt'>
>         <secret type='ceph' uuid='38b66185-4117-47a6-90bd-64111c3fc5d2'/>
>       </auth>
>       <target dev='vdb' bus='virtio'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
>     </disk>
> 
> 
> 
> 
> testing tool is : fio
> io depth is : 32
> io engine is : libaio
> io direct is open
> 
> 
> 
> 
> Is there anyone met such a problem? 
> 
> 
> 
> 
> regards
> 
> 
> Alan Ye 
> 
> 
> ------------------
> Alan Ye

  reply	other threads:[~2014-01-08  4:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-06  6:55 [Qemu-devel] qemu vm big network latency when met heavy io =?gb18030?B?0rbJ3Oih?=
2014-01-08  4:44 ` Stefan Hajnoczi [this message]
     [not found]   ` <CANzgAZnvTmKc1NKoJPRLTT-L-ppYWoUko6JKHfpMzOGboLh8YA@mail.gmail.com>
2014-01-09  2:47     ` [Qemu-devel] [Qemu-discuss] " Stefan Hajnoczi
     [not found]   ` <tencent_1499A979046903942D656C7F@qq.com>
     [not found]     ` <CAJSP0QV0G=reFHP4N=njGUcZxP-x-Ef=L0U3zj5DHfRGjrgvrw@mail.gmail.com>
     [not found]       ` <tencent_2A1DD90F3E8281BD36D67A63@qq.com>
     [not found]         ` <CAJSP0QW1m7UL27_CROjXsG2sBse+Md9fSWMgXzTZWVaxvhaz7Q@mail.gmail.com>
     [not found]           ` <tencent_74BAFF5462FB3EA25C557F97@qq.com>
     [not found]             ` <CAJSP0QXgjkHf3mFzSOm5rLjd5+uHpHDPTcKPFruZ0naTiN5yHg@mail.gmail.com>
2014-01-14  6:24               ` [Qemu-devel] 回复: 回复: 回复: " Josh Durgin
     [not found]                 ` <tencent_35E422F81535374D5992C5AB@qq.com>
2014-01-14  7:58                   ` [Qemu-devel] =?gb18030?b?u9i4tKO6ILvYuLSjuiC72Li0o7ogu9i4tKO6ICBx?= =?gb18030?q?emu_vm_big_network_latency_when_met_heavy_io?= Josh Durgin
     [not found]                     ` <tencent_043538FC1C65245E76ED4CB0@qq.com>
2014-01-16  2:25                       ` [Qemu-devel] =?gb18030?b?u9i4tKO6ILvYuLSjuiC72Li0o7ogu9i4tKO6ILvY?= =?gb18030?q?=B8=B4=A3=BA__qemu_vm_big_network_latency_when_met_heavy_io?= Josh Durgin
     [not found]                         ` <tencent_0C119822426FB8B81E60F6EB@qq.com>
2014-01-17  6:57                           ` [Qemu-devel] =?gb18030?b?u9i4tKO6ILvYuLSjuiC72Li0o7ogu9i4tKO6ILvYuLSjuiC72Li0o7ogIHFlbXUgdm0gYmlnIG5ldHdvcmsgbGF0ZW5jeSB3aGVu?= =?gb18030?q?_met_heavy_io?= Josh Durgin

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=20140108044407.GG30570@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=josh.durgin@inktank.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    --cc=yeshaochen@foxmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).