Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752732AbdHVUVW (ORCPT ); Tue, 22 Aug 2017 16:21:22 -0400 Received: from merlin.infradead.org ([205.233.59.134]:59938 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbdHVUVV (ORCPT ); Tue, 22 Aug 2017 16:21:21 -0400 Date: Tue, 22 Aug 2017 22:21:06 +0200 From: Peter Zijlstra To: Alexey Budankov 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 Subject: Re: [PATCH v7 0/2] perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi Message-ID: <20170822202106.GP32112@worktop.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 22 On Fri, Aug 18, 2017 at 08:17:15AM +0300, Alexey Budankov wrote: > Hi, Please don't post new versions in reply to old versions, that gets them lost in thread sorted views. > This patch set v7 moves event groups into rb trees and implements > skipping to the current CPU's list on hrtimer interrupt. Does this depend on your timekeeping rework posted in that v6 thread? If so, I would have expected to see that as part of these patches, if not, I'm confused, because part of the problem was that we currently need to update times for events we don't want to schedule etc.. > Events allocated for the same CPU are still kept in a linked list > of the event directly attached to the tree because it is unclear > how to implement fast iteration thru events allocated for > the same CPU when they are all attached to a tree employing > additional 64bit index as a secondary treee key. Finding the CPU subtree and rb_next() wasn't good?