Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754642Ab3CFUK6 (ORCPT ); Wed, 6 Mar 2013 15:10:58 -0500 Received: from sema.semaphore.gr ([78.46.194.137]:60302 "EHLO sema.semaphore.gr" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750780Ab3CFUK4 (ORCPT ); Wed, 6 Mar 2013 15:10:56 -0500 Message-ID: <5137A2CB.9030809@semaphore.gr> Date: Wed, 06 Mar 2013 22:10:51 +0200 From: Stratos Karafotis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: David C Niemi CC: "Rafael J. Wysocki" , cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: Re: [PATCH 2/3 linux-next] cpufreq: conservative: Fix the logic in frequency decrease checking References: <51366C70.3020406@semaphore.gr> <51379A80.2090200@verisign.com> In-Reply-To: <51379A80.2090200@verisign.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: 1405 Lines: 21 On 03/06/2013 09:35 PM, David C Niemi wrote: > The "10" sounds like an attempt to add some hysteresis to the up/down decisionmaking. If you take it out, you should make sure you don't get into situations where you're continually switching rapidly between two frequencies. (In the ondemand governor some care was also taken to avoid the cost of doing a CPU idleness evaluation counting towards the CPU looking busy enough to upshift; I am not familiar enough with Conservative to know whether that is a problem for it too). > > DCN This is true for ondemand but, as you know, there is a separate tunable (down_threshold) in conservative with default value 20. It's independent from up_threshold (default 80), so I believe there is no need to add a hysteresis. Also, if we subtract 10 from down_threshold, we change user's decision about this threshold. For example, if user sets down_threshold to 25, wants this value to 25 not to 15. Checking the initial commit of conservative governor, we can see that it was not use hysteresis factor. This was added later (by mistake in my opinion) as an attempt to make conservative to function similar to ondemand. -- 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/