Received: from eggs.gnu.org ([2001:4830:134:3::10]:43797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2bAl-000494-Be for qemu-devel@nongnu.org; Fri, 04 Nov 2016 05:52:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2bAg-00056F-Cy for qemu-devel@nongnu.org; Fri, 04 Nov 2016 05:52:31 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:38482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2bAg-00055L-5v for qemu-devel@nongnu.org; Fri, 04 Nov 2016 05:52:26 -0400 Received: by mail-wm0-x231.google.com with SMTP id n67so38360803wme.1 for ; Fri, 04 Nov 2016 02:52:25 -0700 (PDT) Date: Fri, 4 Nov 2016 09:52:23 +0000 From: Stefan Hajnoczi Message-ID: <20161104095223.GC9817@stefanha-x1.localdomain> References: <1475035789-685-1-git-send-email-ashish.mittal@veritas.com> <20160930083606.GA5411@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nmemrqcdn5VTmUEE" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v7 RFC] block/vxhs: Initial commit to add Veritas HyperScale VxHS block device support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ketan Nilangekar Cc: Ashish Mittal , "qemu-devel@nongnu.org" , "pbonzini@redhat.com" , "kwolf@redhat.com" , "armbru@redhat.com" , "berrange@redhat.com" , "jcody@redhat.com" , "famz@redhat.com" , Ashish Mittal , Abhijit Dey --nmemrqcdn5VTmUEE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 20, 2016 at 01:31:15AM +0000, Ketan Nilangekar wrote: > 2. The idea of having multi-threaded epoll based network client was to dr= ive more throughput by using multiplexed epoll implementation and (fairly) = distributing IOs from several vdisks (typical VM assumed to have atleast 2)= across 8 connections.=20 > Each connection is serviced by single epoll and does not share its contex= t with other connections/epoll. All memory pools/queues are in the context = of a connection/epoll. > The qemu thread enqueues IO request in one of the 8 epoll queues using a = round-robin. Responses are also handled in the context of an epoll loop and= do not share context with other epolls. Any synchronization code that you = see today in the driver callback is code that handles the split IOs which w= e plan to address by a) implementing readv in libqnio and b) removing the 4= MB limit on write IO size. > The number of client epoll threads (8) is a #define in qnio and can easil= y be changed. However our tests indicate that we are able to drive a good n= umber of IOs using 8 threads/epolls. > I am sure there are ways to simplify the library implementation, but for = now the performance of the epoll threads is more than satisfactory. By the way, when you benchmark with 8 epoll threads, are there any other guests with vxhs running on the machine? In a real-life situation where multiple VMs are running on a single host it may turn out that giving each VM 8 epoll threads doesn't help at all because the host CPUs are busy with other tasks. Stefan --nmemrqcdn5VTmUEE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJYHFpXAAoJEJykq7OBq3PI018IAJLX3dSjpqILFrSz9cBNkIL0 iM6u4wtJ2yRC09XHOHbS9VF+moP1Co1urOo18JhoK/JVoADU60dkQQfRynYkZC+d uZ7IiuVVM9yPYiBhuP5Bm3emYFLBWQya+SksCiljdPk2FdFl4q62Dp089xBOL3Xx blM7iuoCVP26kNxiqmB1jVsgOZ61Pfw7u1snWn8eXgOGNb4xE/AHpU0MTn4lmHBA IZld27ZNE/8q5NSHH/YmMLzuMC3nBC0iBYarHSDHsxR0G0rSWip4G9lWR1xl9pio 5auKi2WVzzo2czeKwhCu+DJUgxJ1C7M0NQX1oXTl117s3lxoLwA5K4cRmIKgiT0= =zHzf -----END PGP SIGNATURE----- --nmemrqcdn5VTmUEE--