From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751116AbdE2LXY (ORCPT ); Mon, 29 May 2017 07:23:24 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37868 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885AbdE2LXX (ORCPT ); Mon, 29 May 2017 07:23:23 -0400 Date: Mon, 29 May 2017 13:23:11 +0200 From: Peter Zijlstra To: Alexey Budankov Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Andi Kleen , Kan Liang , Dmitri Prokhorov , Valery Cherepennikov , David Carrillo-Cisneros , Stephane Eranian , Mark Rutland , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2]: perf/core: addressing 4x slowdown during per-process, profiling of STREAM benchmark on Intel Xeon Phi Message-ID: <20170529112311.ht3pg2dd7pjm3m3a@hirez.programming.kicks-ass.net> References: <1e962b59-3e39-e0d6-515d-c4fd3502edae@linux.intel.com> <20170529074636.tjftcdtcg6op74i3@hirez.programming.kicks-ass.net> <75f031d8-68ec-4cd6-752f-1fbecaa86026@linux.intel.com> <20170529104304.vy47zhf6fdq6bki3@hirez.programming.kicks-ass.net> <0e8d266e-ea38-baea-765d-cab98df9b9bc@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0e8d266e-ea38-baea-765d-cab98df9b9bc@linux.intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 29, 2017 at 01:56:05PM +0300, Alexey Budankov wrote: > On 29.05.2017 13:43, Peter Zijlstra wrote: > > Why can't the tree do both? > > > > Well, indeed, the tree provides such capability too. However switching to > the full tree iteration in cases where we now go through _groups lists will > enlarge the patch, what is probably is not a big deal. Do you think it is > worth implementing the switch? Do it as a series of patches, where patch 1 introduces the tree, patches 2 through n convert the list users into tree users, and patch n+1 removes the list. I think its good to not have duplicate data structures if we can avoid it.