From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a98TM-0000B4-SH for qemu-devel@nongnu.org; Wed, 16 Dec 2015 04:34:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a98TI-00016K-Rx for qemu-devel@nongnu.org; Wed, 16 Dec 2015 04:34:12 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:34301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a98TI-00016A-LR for qemu-devel@nongnu.org; Wed, 16 Dec 2015 04:34:08 -0500 Received: by mail-wm0-x229.google.com with SMTP id l126so30841394wml.1 for ; Wed, 16 Dec 2015 01:34:08 -0800 (PST) Sender: Paolo Bonzini References: <5671230C.70102@redhat.com> From: Paolo Bonzini Message-ID: <5671300E.5060109@redhat.com> Date: Wed, 16 Dec 2015 10:34:06 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 0/3] virtio: proposal to optimize accesses to VQs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vincenzo Maffione Cc: "Michael S. Tsirkin" , Jason Wang , qemu-devel , Markus Armbruster , Giuseppe Lettieri , Luigi Rizzo On 16/12/2015 10:28, Vincenzo Maffione wrote: > Assuming my TX experiments with disconnected backend (and I disable > CPU dynamic scaling of performance, etc.): > 1) after patch 1 and 2, virtio bottleneck jumps from ~1Mpps to 1.910 Mpps. > 2) after patch 1,2 and 3, virtio bottleneck jumps to 2.039 Mpps. > > So I see an improvement for patch 3, and I guess it's because we avoid > an additional memory translation and related overhead. I believe that > avoiding the memory translation is more beneficial than avoiding the > variable-sized memcpy. > I'm not surprised of that, because taking a brief look at what happens > under the hood when you call an access_memory() function - it looks > like a lot of operations. Great, thanks for confirming! Paolo