From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvx3M-0001Rp-Lw for qemu-devel@nongnu.org; Sun, 16 Oct 2016 21:49:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvx3I-0006I2-PS for qemu-devel@nongnu.org; Sun, 16 Oct 2016 21:49:24 -0400 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:33849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bvx3I-0006Hn-LZ for qemu-devel@nongnu.org; Sun, 16 Oct 2016 21:49:20 -0400 Received: by mail-qt0-x241.google.com with SMTP id f6so5734437qtd.1 for ; Sun, 16 Oct 2016 18:49:20 -0700 (PDT) Sender: Richard Henderson References: <1476214861-31658-1-git-send-email-rth@twiddle.net> <1476214861-31658-27-git-send-email-rth@twiddle.net> <20161014211936.GA23123@flamenco> From: Richard Henderson Message-ID: <16d62650-7c85-3e05-9792-b7a2982d536e@twiddle.net> Date: Sun, 16 Oct 2016 18:49:17 -0700 MIME-Version: 1.0 In-Reply-To: <20161014211936.GA23123@flamenco> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v6 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, alex.bennee@linaro.org On 10/14/2016 02:19 PM, Emilio G. Cota wrote: > On Tue, Oct 11, 2016 at 14:40:52 -0500, 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 ] >> > >> > Signed-off-by: Emilio G. Cota >> > Signed-off-by: Richard Henderson >> > Message-Id: <1467054136-10430-20-git-send-email-cota@braap.org> > Can you please fix up this patch with the below? It does the > same as we're doing in qht-bench: > http://lists.nongnu.org/archive/html/qemu-devel/2016-10/msg03034.html Done. r~