From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWwYz-00083h-Ij for qemu-devel@nongnu.org; Tue, 22 May 2012 17:24:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWwYx-00058U-O6 for qemu-devel@nongnu.org; Tue, 22 May 2012 17:24:17 -0400 Received: from gate.crashing.org ([63.228.1.57]:34589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWwYx-000584-FY for qemu-devel@nongnu.org; Tue, 22 May 2012 17:24:15 -0400 Message-ID: <1337721841.3038.15.camel@pasglop> From: Benjamin Herrenschmidt Date: Wed, 23 May 2012 07:24:01 +1000 In-Reply-To: <20120522120358.GA3504@redhat.com> References: <4FB9F89A.90702@redhat.com> <20120521083132.GI4674@redhat.com> <4FBABF2D.2020200@codemonkey.ws> <1337639166.2779.117.camel@pasglop> <4FBAC22A.5010708@codemonkey.ws> <20120521224436.GL17031@redhat.com> <1337661278.2779.166.camel@pasglop> <1337671059.2779.188.camel@pasglop> <20120522111441.GC3032@redhat.com> <1337686901.3038.12.camel@pasglop> <20120522120358.GA3504@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Add a memory barrier to DMA functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Paolo Bonzini , Rusty Russell , qemu-devel@nongnu.org, Anthony Liguori , David Gibson On Tue, 2012-05-22 at 15:03 +0300, Michael S. Tsirkin wrote: > I have a deja vu. Amos sent perf results when you argued about > exactly the same issue in guest virtio. Delta was small but > measureable. At the moment I have no free time or free hardware > to redo the same work all over again. It's a well known fact that > actual memory barrier is slow on x86 CPUs. You can't see > it with network on your laptop? Write a microbenchmark. Or just screw it, it's small enough, for emulated devices we can swallow it, and move on with life, since virtio is unaffected, and we can always fine tune e1000 if performance of that one is critical. Ben.