qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@inktank.com>
To: =?gb18030?Q?=D2=B6=C9=DC=E8=A1?= <yeshaochen@foxmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] =?gb18030?b?u9i4tKO6ILvYuLSjuiC72Li0o7ogu9i4tKO6ILvY?= =?gb18030?q?=B8=B4=A3=BA__qemu_vm_big_network_latency_when_met_heavy_io?=
Date: Wed, 15 Jan 2014 18:25:58 -0800	[thread overview]
Message-ID: <52D74336.70708@inktank.com> (raw)
In-Reply-To: <tencent_043538FC1C65245E76ED4CB0@qq.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030; format=flowed, Size: 1460 bytes --]

On 01/15/2014 01:40 AM, Ò¶ÉÜè¡ wrote:
> Hi Josh
>
> there is some issues
>
> 1. use 'none' cache mode in xml, and unset 'rbd cache=true' in
> ceph.conf, the network latency issue not show.
>
> 2. use 'writethrough' cache mode in xml, and unset 'rbd cache=true' in
> ceph.conf, the network latency issue not show.
>
> 3. use 'writeback' cache mode in xml, and set 'rbd cache=true' in
> ceph.conf, the network latency issue was showed.
>
> 4. use 'writeback' cache mode in xml, and unset 'rbd cache=true' in
> ceph.conf, the network latency issue was showed.
>
> according to above info, there must something wrong in librbd 's write
> cache.
>
> This must be a BUG in librbd.

It could still be the rbd driver in QEMU, but it's certainly only 
happening when writeback
caching is used.

Could you verify that librbd's asynchronous flush is being used by 
making sure
rbd_aio_flush appears in 'strings /path/to/qemu/binary | grep rbd_aio'?

If qemu isn't using rbd_aio_flush, but the synchronous version, 
rbd_flush, that's the cause of
the problem, and you just need to recompile qemu.

Otherwise, it's a new bug, and we can try to figure out what is taking 
up time by looking at
a log from librbd. Can you add this to the [client.libvirt] section of 
ceph.conf and attach the logs generated to a new issue on 
http://tracker.ceph.com:

debug ms = 1
debug objectcacher = 20
debug rbd = 20
log file = /path/writeable/by/user/running/qemu.$pid.log

Thanks,
Josh

  parent reply	other threads:[~2014-01-16  2:27 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
     [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                       ` Josh Durgin [this message]
     [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=52D74336.70708@inktank.com \
    --to=josh.durgin@inktank.com \
    --cc=qemu-devel@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).