From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9FKI-0000Fe-9t for qemu-devel@nongnu.org; Mon, 21 Jul 2014 11:16:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9FKA-00041W-NM for qemu-devel@nongnu.org; Mon, 21 Jul 2014 11:16:30 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:34297 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9FKA-00041P-H8 for qemu-devel@nongnu.org; Mon, 21 Jul 2014 11:16:22 -0400 Date: Mon, 21 Jul 2014 17:15:40 +0200 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20140721151540.GA22161@irqsave.net> References: <53C9362C.8040507@windriver.com> <53C93C34.7030403@redhat.com> <53C949BA.9040204@windriver.com> <53C97FEB.9060208@redhat.com> <53C9A440.7020306@windriver.com> <53CA06ED.1090102@redhat.com> <53CA0FC4.8080802@windriver.com> <53CA1D06.9090601@redhat.com> <20140719084537.GA3058@irqsave.net> <53CD2AE1.6080803@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <53CD2AE1.6080803@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 08:59:45 (-0600), Chris Friesen wrote : > On 07/19/2014 02:45 AM, Beno=EEt Canet wrote: >=20 > >I think in the throttling case the number of in flight operation is li= mited by > >the emulated hardware queue. Else request would pile up and throttling= would be > >inefective. > > > >So this number should be around: #define VIRTIO_PCI_QUEUE_MAX 64 or so= mething like than that. >=20 > Okay, that makes sense. Do you know how much data can be written as pa= rt of > a single operation? We're using 2MB hugepages for the guest memory, an= d we > saw the qemu RSS numbers jump from 25-30MB during normal operation up t= o > 120-180MB when running dbench. I'd like to know what the worst-case wo= uld > be. I think Linux as a limit of 512Kb for io size or something like that. So the guest would have VIRTIO_PCI_QUEUE_MAX * 512Kb of in flight buffers= at max. >=20 > Thanks, > Chris