Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932254AbdIRQVw convert rfc822-to-8bit (ORCPT ); Mon, 18 Sep 2017 12:21:52 -0400 Received: from mga07.intel.com ([134.134.136.100]:6002 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932170AbdIRQVu (ORCPT ); Mon, 18 Sep 2017 12:21:50 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,413,1500966000"; d="scan'208";a="150479078" From: "Liang, Kan" To: Arnaldo Carvalho de Melo , Jiri Olsa CC: "peterz@infradead.org" , "mingo@redhat.com" , "linux-kernel@vger.kernel.org" , "jolsa@kernel.org" , "namhyung@kernel.org" , "Hunter, Adrian" , "Odzioba, Lukasz" , "ak@linux.intel.com" Subject: RE: [PATCH RFC V2 00/10] perf top optimization Thread-Topic: [PATCH RFC V2 00/10] perf top optimization Thread-Index: AQHTKqUGKqa3XFGJ30eMjpDMlJ7smaK53NAAgABEIwCAAL2ZEA== Date: Mon, 18 Sep 2017 16:21:47 +0000 Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077537C38AF@SHSMSX103.ccr.corp.intel.com> References: <1505096603-215017-1-git-send-email-kan.liang@intel.com> <20170918085708.GC17203@krava> <20170918130100.GF14469@kernel.org> In-Reply-To: <20170918130100.GF14469@kernel.org> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzdmNzJjZjYtM2Q1NC00ZjE1LTllYjEtMjJjZmZjMWZjMDY2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkdDdWRFZkIyVHJJcWxNdmhYTkYzN29xVm1IZGYwUFl2WDhrR3ZveFROakU9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1327 Lines: 38 > Em Mon, Sep 18, 2017 at 10:57:08AM +0200, Jiri Olsa escreveu: > > On Sun, Sep 10, 2017 at 07:23:13PM -0700, kan.liang@intel.com wrote: > > > From: Kan Liang > > > > > > The patch series intends to fix the severe performance issue in > > > Knights Landing/Mill, when monitoring in heavy load system. > > > perf top costs a few minutes to show the result, which is > > > unacceptable. > > > With the patch series applied, the latency will reduces to several > > > seconds. > > > > > > machine__synthesize_threads and perf_top__mmap_read costs most of > > > the perf top time (> 99%). > > > > looks like this patchset adds locking into code paths used by other > > single threaded tools and that might be bad for them as noted by Andi > > in here: > > > > https://marc.info/?l=linux-kernel&m=149031672928989&w=2 > > > > he proposed solution and it was changed&posted by Arnaldo in here: > > > > https://marc.info/?l=linux-kernel&m=149132267410294&w=2 > > > > but looks like it never got merged > > > > could you please add this or similar code before you add the locking > > code/overhead in? > > I'm rehashing that patch and adding it on top of what is in my perf/core > branch, will push soon, for now you can take a look at tmp.perf/core. Thanks. I will make the V3 based on tmp.perf/core. Kan