From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bl40M-0004nt-Rn for qemu-devel@nongnu.org; Fri, 16 Sep 2016 21:01:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bl40J-0008AB-OB for qemu-devel@nongnu.org; Fri, 16 Sep 2016 21:01:18 -0400 Received: from mail-yw0-x22d.google.com ([2607:f8b0:4002:c05::22d]:35591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bl40J-00089v-Jz for qemu-devel@nongnu.org; Fri, 16 Sep 2016 21:01:15 -0400 Received: by mail-yw0-x22d.google.com with SMTP id u82so94243902ywc.2 for ; Fri, 16 Sep 2016 18:01:15 -0700 (PDT) Sender: Richard Henderson References: <1474048017-26696-1-git-send-email-rth@twiddle.net> <1474048017-26696-27-git-send-email-rth@twiddle.net> <20160916235421.GA18670@flamenco> From: Richard Henderson Message-ID: Date: Fri, 16 Sep 2016 18:01:12 -0700 MIME-Version: 1.0 In-Reply-To: <20160916235421.GA18670@flamenco> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: "Emilio G. Cota" Cc: qemu-devel@nongnu.org On 09/16/2016 04:54 PM, Emilio G. Cota wrote: > 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, applied. r~