Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757330AbYFZURZ (ORCPT ); Thu, 26 Jun 2008 16:17:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752823AbYFZURH (ORCPT ); Thu, 26 Jun 2008 16:17:07 -0400 Received: from one.firstfloor.org ([213.235.205.2]:51848 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753063AbYFZURG (ORCPT ); Thu, 26 Jun 2008 16:17:06 -0400 Message-ID: <4863F93C.9040102@firstfloor.org> Date: Thu, 26 Jun 2008 22:17:00 +0200 From: Andi Kleen User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Andi Kleen , balbir@linux.vnet.ibm.com, Linux Kernel , Suresh B Siddha , Venkatesh Pallipadi , Ingo Molnar , Peter Zijlstra , Dipankar Sarma , Vatsa , Gautham R Shenoy Subject: Re: [RFC v1] Tunable sched_mc_power_savings=n References: <20080625191100.GI21892@dirshya.in.ibm.com> <87k5gcqpbm.fsf@basil.nowhere.org> <4863AF57.3040005@linux.vnet.ibm.com> <4863DB29.1020304@firstfloor.org> <20080626185254.GA12416@dirshya.in.ibm.com> In-Reply-To: <20080626185254.GA12416@dirshya.in.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2466 Lines: 64 Vaidyanathan Srinivasan wrote: Playing devil's advocate here. > * Andi Kleen [2008-06-26 20:08:41]: > >>> A user could be an application and certain applications can predict their >>> workload. >> So you expect the applications to run suid root and change a sysctl? >> And what happens when two applications run that do that and they have differing >> requirements? Will they fight over the sysctl? > > System management software and workload monitoring and managing > software can potentially control the tunable on behalf of the > applications for best overall power savings and performance. Does it have the needed information for that? e.g. real time information on what the system does? I don't think anybody is in a better position to control that than the kernel. > Applications with conflicting goals should resolve among themselves. That sounds wrong to me. Negotiating between conflicting requirements from different applications is something that kernels are supposed to do. > The application with highest performance requirement should win. That is right, but the kernel can do that based on nice levels and possibly other information, can't it? > The > power QoS framework set_acceptable_latency() ensures that the lowest > latency set across the system wins. But that only helps kernel drivers, not user space, doesn't it? > Power management settings affect the entire system. It may not be > based on per application priority or nice value. However if the > priority of all the applications currently running in the system > indicate power savings, then the kernel can goto more aggressive power > saving state. That's what I meant yes. So if only the file system indexer is running over night all niced it will run as power efficiently as possible. > In a small-scale datacenters, peak and off-peak hour settings can be > potentially done through simple cron jobs. Is there any real drawback from only controlling it through nice levels? Anyways I think the main thing I object to in your proposal is that your tunable is system global, not per process. I'm also not sure if a tunable is really a good idea and if the kernel couldn't do a better job. -Andi -- 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/