Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761328Ab2BNXUt (ORCPT ); Tue, 14 Feb 2012 18:20:49 -0500 Received: from wolverine01.qualcomm.com ([199.106.114.254]:34412 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757285Ab2BNXUr (ORCPT ); Tue, 14 Feb 2012 18:20:47 -0500 X-IronPort-AV: E=McAfee;i="5400,1158,6620"; a="163197952" Message-ID: <4F3AEC4E.9000303@codeaurora.org> Date: Tue, 14 Feb 2012 15:20:46 -0800 From: Saravana Kannan User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: Ingo Molnar CC: linaro-kernel@lists.linaro.org, Russell King , Peter Zijlstra , Nicolas Pitre , Benjamin Herrenschmidt , Oleg Nesterov , cpufreq@vger.kernel.org, linux-kernel@vger.kernel.org, Anton Vorontsov , "Paul E. McKenney" , Mike Chan , Dave Jones , Todd Poynor , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, Arjan Van De Ven Subject: Re: [PATCH RFC 0/4] Scheduler idle notifiers and users References: <20120208013959.GA24535@panacea> <1328670355.2482.68.camel@laptop> <20120208202314.GA28290@redhat.com> <1328736834.2903.33.camel@pasglop> <20120209075106.GB18387@elte.hu> <4F35DD3E.4020406@codeaurora.org> <20120211144530.GA497@elte.hu> In-Reply-To: <20120211144530.GA497@elte.hu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2278 Lines: 54 On 02/11/2012 06:45 AM, Ingo Molnar wrote: > > * Saravana Kannan wrote: > >> When you say accommodate all hardware, does it mean we will >> keep around CPUfreq and allow attempts at improving it? Or we >> will completely move to scheduler based CPU freq scaling, but >> won't try to force atomicity? Say, may be queue up a >> notification to a CPU driver to scale up the frequency as soon >> as it can? > > I don't think we should (or even could) force atomicity - we > adapt to whatever the hardware can do. May be I misread the emails from Peter and you, but it sounded like the idea being proposed was to directly do a freq change from the scheduler. That would force the freq change API to be atomic (if it can be implemented is another issue). That's what I was referring to when I loosely used the terms "force atomicity". > But the design should be directed at systems where frequency > changes can be done in a reasonably fast manner. That is what he > future is - any change we initiate today takes years to reach > actual products/systems. As long as the new design doesn't treat archs needing schedulable context to set freq as a second class citizen, I think we would all be happy. Because it's not just a matter of it being old hardware. Sometimes the decision to let the SW do the voltage scaling also comes down to HW cost. Considering Linux runs on such a wide set of archs, I think we shouldn't treat the need for schedulable context for freq setting as "broken" or "not sane". >> IMHO, I think the problem with CPUfreq and its dynamic >> governors today is that they do a timer based sampling of the >> CPU load instead of getting some hints from the scheduler when >> the scheduler knows that the load average is quite high. > > Yes - that is one of the "frequency changes are slow" > assumptions - which is wrong. Thanks, Saravana -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum. -- 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/