Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752241AbcC0PUZ (ORCPT ); Sun, 27 Mar 2016 11:20:25 -0400 Received: from casper.infradead.org ([85.118.1.10]:40463 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408AbcC0PUY (ORCPT ); Sun, 27 Mar 2016 11:20:24 -0400 Date: Sun, 27 Mar 2016 17:20:05 +0200 From: Peter Zijlstra To: "Wangnan (F)" Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, He Kuang , Alexei Starovoitov , Arnaldo Carvalho de Melo , Brendan Gregg , Jiri Olsa , Masami Hiramatsu , Namhyung Kim , Zefan Li , pi3orama@163.com Subject: Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end Message-ID: <20160327152005.GU6356@twins.programming.kicks-ass.net> References: <1457949585-191064-1-git-send-email-wangnan0@huawei.com> <1457949585-191064-4-git-send-email-wangnan0@huawei.com> <20160323095007.GW6344@twins.programming.kicks-ass.net> <56F52E83.70409@huawei.com> <56F530C1.9010106@huawei.com> <56F547CC.5000408@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56F547CC.5000408@huawei.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 778 Lines: 25 On Fri, Mar 25, 2016 at 10:14:36PM +0800, Wangnan (F) wrote: > >>I think you enabled some unusual config options? x86_64-defconfig > >You must enabled CONFIG_OPTIMIZE_INLINING. Now I get similar result: It has that indeed. > After enabling CONFIG_OPTIMIZE_INLINING: > > Test its performance by calling 'close(-1)' for 3000000 times and > use 'perf record -o /dev/null -e raw_syscalls:* test-ring-buffer' to > capture system calls: > > MEAN STDVAR > BASE 800077.1 23448.13 > RAWPERF.PRE 2465858.0 603473.70 > RAWPERF.POST 2471925.0 609437.60 > > Considering the high stdvar, after applying this patch the performance > is not change. Why is your variance so immense? And doesn't that render the measurements pointless?