Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750999AbdIKGzq (ORCPT ); Mon, 11 Sep 2017 02:55:46 -0400 Received: from mga01.intel.com ([192.55.52.88]:62302 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbdIKGzo (ORCPT ); Mon, 11 Sep 2017 02:55:44 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,376,1500966000"; d="scan'208";a="1217114366" From: Alexey Budankov Subject: Re: [RFC][PATCH] perf: Rewrite enabled/running timekeeping To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Andi Kleen , Kan Liang , Dmitri Prokhorov , Valery Cherepennikov , Mark Rutland , Stephane Eranian , David Carrillo-Cisneros , linux-kernel , Vince Weaver , Thomas Gleixner References: <20170803150052.za2vofyqfgarukdr@hirez.programming.kicks-ass.net> <20170822204743.GR32112@worktop.programming.kicks-ass.net> <2a426aa2-42c8-e839-1cec-aa3971651f3e@linux.intel.com> <20170831171837.njnc6r6elsvkl7lt@hirez.programming.kicks-ass.net> <46f72a3f-f18b-0227-3d78-fb23c8a6e18e@linux.intel.com> <20170904120843.oazlv73phoxoinlj@hirez.programming.kicks-ass.net> <385005b6-51ea-383e-df81-43365f3f5152@linux.intel.com> <20170904154145.xl4fyg7vhgbnmhwi@hirez.programming.kicks-ass.net> <9c3c1fc7-5a2e-2745-dab1-390dc7d58d50@linux.intel.com> <20170905111943.v2twm3jgu3mct3ib@hirez.programming.kicks-ass.net> Organization: Intel Corp. Message-ID: <4afceb5f-91ba-12fc-415f-0be142f2a3d2@linux.intel.com> Date: Mon, 11 Sep 2017 09:55:39 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170905111943.v2twm3jgu3mct3ib@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 561 Lines: 21 Hi, On 05.09.2017 14:19, Peter Zijlstra wrote: > On Tue, Sep 05, 2017 at 01:17:39PM +0300, Alexey Budankov wrote: >> However we can't completely get rid of whole tree iterations because of >> inheritance code on forks in perf_event_init_context() here: > > Right, fork() / inherit needs to iterate the full thing, nothing to be > done about that. > > I'll go make proper patches for that timekeeping rewrite and then have a > look at your patches. > Is there any progress so far? The latest patch version is here: https://lkml.org/lkml/2017/9/8/118