Received: from eggs.gnu.org ([2001:4830:134:3::10]:55031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0l0R-0007VO-DA for qemu-devel@nongnu.org; Tue, 07 Jan 2014 23:44:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0l0L-0003bG-QG for qemu-devel@nongnu.org; Tue, 07 Jan 2014 23:44:39 -0500 Date: Wed, 8 Jan 2014 12:44:07 +0800 From: Stefan Hajnoczi Message-ID: <20140108044407.GG30570@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [Qemu-devel] qemu vm big network latency when met heavy io List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?B?5Y+257uN55Cb?= Cc: josh.durgin@inktank.com, qemu-devel , qemu-discuss 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: > > > > > > > > > >
> > > > > > 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