From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754438AbYIHNzP (ORCPT ); Mon, 8 Sep 2008 09:55:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752980AbYIHNzA (ORCPT ); Mon, 8 Sep 2008 09:55:00 -0400 Received: from one.firstfloor.org ([213.235.205.2]:45462 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752008AbYIHNzA (ORCPT ); Mon, 8 Sep 2008 09:55:00 -0400 Date: Mon, 8 Sep 2008 15:58:34 +0200 From: Andi Kleen To: Peter Zijlstra , Linux Kernel , Suresh B Siddha , Venkatesh Pallipadi , Ingo Molnar , Dipankar Sarma , Balbir Singh , Vatsa , Gautham R Shenoy , Andi Kleen , David Collier-Brown , Tim Connors , Max Krasnyansky Subject: Re: [RFC PATCH v2 0/7] Tunable sched_mc_power_savings=n Message-ID: <20080908135834.GH26079@one.firstfloor.org> References: <20080908131334.3221.61302.stgit@drishya.in.ibm.com> <1220880346.12278.17.camel@twins.programming.kicks-ass.net> <20080908134843.GA4053@dirshya.in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080908134843.GA4053@dirshya.in.ibm.com> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 1. Detailed documentation Messy code cannot be really made good with documentation. It's not that your patches are that messy, it's more that it makes something already overcomplicated even worse. > 2. Cleanup the group_min and group_leader stuff in > find_busiest_group() I think one issue is that there are general too many special cases that completely change the algorithm especially for power saving. Perhaps it would make sense to refactor the code a bit and then use different high level code paths for those? I assume that would make it all simpler and easier to understand. The other alternative would be to dynamically change the domains so that a generic graph walker without knowledge of power savings could DTRT in all cases. But I assume that would be much harder. -Andi