Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753206AbYLRUUa (ORCPT ); Thu, 18 Dec 2008 15:20:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751942AbYLRUUU (ORCPT ); Thu, 18 Dec 2008 15:20:20 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:54326 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751511AbYLRUUT (ORCPT ); Thu, 18 Dec 2008 15:20:19 -0500 Date: Thu, 18 Dec 2008 21:19:38 +0100 From: Ingo Molnar To: Vaidyanathan Srinivasan Cc: Linux Kernel , Suresh B Siddha , Venkatesh Pallipadi , Peter Zijlstra , Dipankar Sarma , Balbir Singh , Vatsa , Gautham R Shenoy , Andi Kleen , David Collier-Brown , Tim Connors , Max Krasnyansky , Gregory Haskins , Pavel Machek , Andrew Morton Subject: Re: [PATCH v7 0/8] Tunable sched_mc_power_savings=n Message-ID: <20081218201938.GB12376@elte.hu> References: <20081218175313.29812.4781.stgit@drishya.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081218175313.29812.4781.stgit@drishya.in.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Vaidyanathan Srinivasan wrote: > Hi, > > The existing power saving loadbalancer CONFIG_SCHED_MC attempts to run > the workload in the system on minimum number of CPU packages and tries > to keep rest of the CPU packages idle for longer duration. Thus > consolidating workloads to fewer packages help other packages to be in > idle state and save power. The current implementation is very > conservative and does not work effectively across different workloads. > Initial idea of tunable sched_mc_power_savings=n was proposed to enable > tuning of the power saving load balancer based on the system > configuration, workload characteristics and end user requirements. > > The power savings and performance of the given workload in an under > utilised system can be controlled by setting values of 0, 1 or 2 to > /sys/devices/system/cpu/sched_mc_power_savings with 0 being highest > performance and least power savings and level 2 indicating maximum power > savings even at the cost of slight performance degradation. > > Please refer to the following discussions and article for details. > > [1]Making power policy just work > http://lwn.net/Articles/287924/ > > [2][RFC v1] Tunable sched_mc_power_savings=n > http://lwn.net/Articles/287882/ > > v2: http://lwn.net/Articles/297306/ > v3: http://lkml.org/lkml/2008/11/10/260 > v4: http://lkml.org/lkml/2008/11/21/47 > v5: http://lkml.org/lkml/2008/12/11/178 > v6: http://lwn.net/Articles/311830/ > > The following series of patch demonstrates the basic framework for > tunable sched_mc_power_savings. > > This version of the patch incorporates comments and feedback received > on the previous post from Andrew Morton. > > Changes form v6: > ---------------- > * Convert BALANCE_FOR_xx_POWER and related macros to inline functions > based on comments from Andrew and Ingo. > * Ran basic kernelbench test and did not see any performance variation > due to the changes. > > Changes form v5: > --------------- > * Fixed the sscanf bug and checking for (p->flags & PF_KTHREAD) > * Dropped the RFC prefix to indicate that the patch is ready for > testing and inclusion > * Patch series against 2.6.28-rc8 kernel thanks, applied - and i started testing them. It needed some help here and there to resolve conflicts with pending cpumask changes. Could you please double-check the merged up end result in the latest scheduler devel tree: http://people.redhat.com/mingo/tip.git/README thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/