Received: from eggs.gnu.org ([2001:4830:134:3::10]:50000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmFfc-00027Y-2p for qemu-devel@nongnu.org; Tue, 20 Sep 2016 03:40:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmFfW-0005S9-Sq for qemu-devel@nongnu.org; Tue, 20 Sep 2016 03:40:47 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmFfW-0005Qj-9q for qemu-devel@nongnu.org; Tue, 20 Sep 2016 03:40:42 -0400 Received: by mail-wm0-f68.google.com with SMTP id w84so1849319wmg.0 for ; Tue, 20 Sep 2016 00:40:41 -0700 (PDT) Sender: Paolo Bonzini References: <20160919155139.28371-1-alex.bennee@linaro.org> <20160919155139.28371-8-alex.bennee@linaro.org> <20160919180614.GA8713@flamenco> <704acb80-5680-c375-7437-25b3230af599@redhat.com> <20160919190604.GA11819@flamenco> From: Paolo Bonzini Message-ID: <94f52b22-3167-27d3-da60-7765b34d7c51@redhat.com> Date: Tue, 20 Sep 2016 09:39:39 +0200 MIME-Version: 1.0 In-Reply-To: <20160919190604.GA11819@flamenco> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 7/8] util/qht: atomically set b->hashes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" Cc: kwolf@redhat.com, mttcg@greensocs.com, claudio.fontana@huawei.com, nikunj@linux.vnet.ibm.com, peter.maydell@linaro.org, jan.kiszka@siemens.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, a.rigo@virtualopensystems.com, stefanha@redhat.com, serge.fdrv@gmail.com, bobby.prani@gmail.com, rth@twiddle.net, =?UTF-8?Q?Alex_Benn=c3=a9e?= , fred.konrad@greensocs.com On 19/09/2016 21:06, Emilio G. Cota wrote: > Let me then just point out that this comes at a small perf loss. > > Running 'taskset -c 0 tests/qht-bench -n 1 -d 10' (i.e. all lookups) 10 times, > we get: > > before the patch: > $ ./mean.pl 34.04 34.24 34.38 34.25 34.18 34.51 34.46 34.44 34.29 34.08 > 34.287 +- 0.160072900059109 > after: > $ ./mean.pl 33.94 34.00 33.52 33.46 33.55 33.71 34.27 34.06 34.28 34.58 > 33.937 +- 0.374731014640279 > > But hey we can live with that. Hmm it shouldn't. I'll take a look at the generated assembly... Paolo