From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751452AbdALKMv (ORCPT ); Thu, 12 Jan 2017 05:12:51 -0500 Received: from foss.arm.com ([217.140.101.70]:40544 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbdALKMt (ORCPT ); Thu, 12 Jan 2017 05:12:49 -0500 Date: Thu, 12 Jan 2017 10:11:37 +0000 From: Mark Rutland To: "Liang, Kan" Cc: David Carrillo-Cisneros , Peter Zijlstra , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Ingo Molnar , Thomas Gleixner , Andi Kleen , Borislav Petkov , Srinivas Pandruvada , Dave Hansen , Vikas Shivappa , Arnaldo Carvalho de Melo , Vince Weaver , Paul Turner , Stephane Eranian Subject: Re: [RFC 3/6] perf/core: use rb-tree to sched in event groups Message-ID: <20170112101104.GA10615@leverpostej> References: <20170110102502.106187-1-davidcc@google.com> <20170110102502.106187-4-davidcc@google.com> <20170110163850.GA24036@leverpostej> <37D7C6CF3E00A74B8858931C1DB2F07753698272@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37D7C6CF3E00A74B8858931C1DB2F07753698272@SHSMSX103.ccr.corp.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 11, 2017 at 08:31:11PM +0000, Liang, Kan wrote: > > Kan, in your per-cpu event list patch you mentioned that you saw a large > > overhead in perf_iterate_ctx() when skipping events for other CPUs. > > Which callers of perf_iterate_ctx() specifically was that problematic for? Do > > those callers only care about the *active* events, for example? > > Based on my test, the large overhead was observed in perf_iterate_sb. > Yes, it only cares about the *active* events. Great! That should mean the first patch of this series (adding the active events lists) should give us sufficient infrastructure to solve that particular issue. Thanks, Mark.