From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brkeC-0004eR-Db for qemu-devel@nongnu.org; Wed, 05 Oct 2016 07:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brkeB-0008WA-GL for qemu-devel@nongnu.org; Wed, 05 Oct 2016 07:46:04 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:33168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brkeB-0008Vz-8l for qemu-devel@nongnu.org; Wed, 05 Oct 2016 07:46:03 -0400 Received: by mail-wm0-x229.google.com with SMTP id f193so33346889wmg.0 for ; Wed, 05 Oct 2016 04:46:03 -0700 (PDT) References: <1474048017-26696-1-git-send-email-rth@twiddle.net> <1474048017-26696-26-git-send-email-rth@twiddle.net> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <1474048017-26696-26-git-send-email-rth@twiddle.net> Date: Wed, 05 Oct 2016 12:46:00 +0100 Message-ID: <87fuobrpc7.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 25/35] target-i386: remove helper_lock() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org, "Emilio G. Cota" Richard Henderson writes: > From: "Emilio G. Cota" > > It's been superseded by the atomic helpers. > > The use of the atomic helpers provides a significant performance and scalability > improvement. Below is the result of running the atomic_add-test microbenchmark with: > $ x86_64-linux-user/qemu-x86_64 tests/atomic_add-bench -o 5000000 -r $r -n $n > , where $n is the number of threads and $r is the allowed range for the additions. > > > For master I stopped measuring master after 8 threads, because there is little > point in measuring the well-known performance collapse of a contended lock. > > Signed-off-by: Emilio G. Cota > Message-Id: <1467054136-10430-21-git-send-email-cota@braap.org> > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée -- Alex Bennée