Received: from eggs.gnu.org ([2001:4830:134:3::10]:37031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9LiG-0005nJ-4N for qemu-devel@nongnu.org; Mon, 21 Jul 2014 18:05:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9Li9-0004CY-Vi for qemu-devel@nongnu.org; Mon, 21 Jul 2014 18:05:40 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:39827 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Li9-0004CP-Oa for qemu-devel@nongnu.org; Mon, 21 Jul 2014 18:05:33 -0400 Date: Tue, 22 Jul 2014 00:04:51 +0200 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20140721220451.GB22745@irqsave.net> References: <53C9A440.7020306@windriver.com> <53CA06ED.1090102@redhat.com> <53CA0FC4.8080802@windriver.com> <53CA1D06.9090601@redhat.com> <20140719084537.GA3058@irqsave.net> <53CD2AE1.6080803@windriver.com> <20140721151540.GA22161@irqsave.net> <53CD3341.60705@windriver.com> <20140721194711.GA22745@irqsave.net> <53CD823F.7090402@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <53CD823F.7090402@windriver.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Friesen Cc: =?iso-8859-1?Q?Beno=EEt?= Canet , Paolo Bonzini , qemu-devel@nongnu.org The Monday 21 Jul 2014 =E0 15:12:31 (-0600), Chris Friesen wrote : > On 07/21/2014 01:47 PM, Beno=EEt Canet wrote: > >The Monday 21 Jul 2014 =E0 09:35:29 (-0600), Chris Friesen wrote : > >>On 07/21/2014 09:15 AM, Beno=EEt Canet wrote: > >>>The Monday 21 Jul 2014 =E0 08:59:45 (-0600), Chris Friesen wrote : > >>>>On 07/19/2014 02:45 AM, Beno=EEt Canet wrote: > >>>> > >>>>>I think in the throttling case the number of in flight operation i= s limited by > >>>>>the emulated hardware queue. Else request would pile up and thrott= ling would be > >>>>>inefective. > >>>>> > >>>>>So this number should be around: #define VIRTIO_PCI_QUEUE_MAX 64 o= r something like than that. > >>>> > >>>>Okay, that makes sense. Do you know how much data can be written a= s part of > >>>>a single operation? We're using 2MB hugepages for the guest memory= , and we > >>>>saw the qemu RSS numbers jump from 25-30MB during normal operation = up to > >>>>120-180MB when running dbench. I'd like to know what the worst-cas= e would > >>>>be. > > > >At first start QEMU start only a bunch of IO threads. > >When IOs activity kick some other IO threads will be started and can s= how up in > >memory measurement because the same physical memory will be referenced= by multiple threads. > > > >Are you sure this is not the case you are seeing ? > > > >The H option of ps on the host could help. >=20 > I'm pretty sure that this wouldn't change the RES (aka RSS) value, sinc= e all > those threads are sharing the same address space. >=20 > If we create IO threads on activity though, we could end up causing som= e > overhead due to the per-thread stack (8MB by default). Do we have a li= mit > on how many IO threads could get created? >=20 > Chris >=20 thread-pool.c: pool->max_threads =3D 64;