From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bl2xq-0005AG-RW for qemu-devel@nongnu.org; Fri, 16 Sep 2016 19:54:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bl2xn-0000A4-7s for qemu-devel@nongnu.org; Fri, 16 Sep 2016 19:54:38 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:50847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bl2xk-00081b-N2 for qemu-devel@nongnu.org; Fri, 16 Sep 2016 19:54:35 -0400 Date: Fri, 16 Sep 2016 19:54:21 -0400 From: "Emilio G. Cota" Message-ID: <20160916235421.GA18670@flamenco> References: <1474048017-26696-1-git-send-email-rth@twiddle.net> <1474048017-26696-27-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1474048017-26696-27-git-send-email-rth@twiddle.net> Subject: Re: [Qemu-devel] [PATCH v4 26/35] tests: add atomic_add-bench List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Fri, Sep 16, 2016 at 10:46:48 -0700, Richard Henderson wrote: > From: "Emilio G. Cota" > > With this microbenchmark we can measure the overhead of emulating atomic > instructions with a configurable degree of contention. > > The benchmark spawns $n threads, each performing $o atomic ops (additions) > in a loop. Each atomic operation is performed on a different cache line > (assuming lines are 64b long) that is randomly selected from a range [0, $r). > > [ Note: each $foo corresponds to a -foo flag ] Hi Richard, As I mentioned yesterday I have an updated version of this patch: http://lists.gnu.org/archive/html/qemu-devel/2016-09/msg03450.html [ The major change is to run for a certain number of seconds, instead of a fixed number of operations. ] I'll send the full updated patch as a reply to this message to make it easier to pick up. Thanks, Emilio