All of lore.kernel.org
 help / color / mirror / Atom feed
* cpufreq on-demand governor up_treshold?
@ 2005-03-14  7:29 Jan De Luyck
  2005-03-14  7:57   ` Eric Piel
  0 siblings, 1 reply; 19+ messages in thread
From: Jan De Luyck @ 2005-03-14  7:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: cpufreq

Hello lists,

(please cc me from cpufreq list)

I've since yesterday started using the ondemand governor. Seems to work fine, 
tho I can't seem to find a reason why it keeps scaling my processor speed 
upwards tho the processor use never exceeds 30% (been watching top -d 1). 

I've been using the powernowd daemon and the userspace governor previously, 
which doesn't seem to have this problem, even if i set it at the same 
sampling rates as the ondemand governor.

The settings in /sys/.../ondemand are default.

Any hints?

Thanks.
-- 
Women aren't as mere as they used to be.
  -- Pogo

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: cpufreq on-demand governor up_treshold?
@ 2005-05-11 16:00 Pallipadi, Venkatesh
  0 siblings, 0 replies; 19+ messages in thread
From: Pallipadi, Venkatesh @ 2005-05-11 16:00 UTC (permalink / raw)
  To: Eric Piel, Dave Jones; +Cc: cpufreq, linux

[-- Attachment #1: Type: text/plain, Size: 1425 bytes --]



Thanks for rebasing-resending them Eric. I was planning to do that one of these days, but kept postponing too :(.

Dave: Here are couple of more patches for the pending-patches queue.

Thanks,
Venki 


>-----Original Message-----
>From: cpufreq-bounces@lists.linux.org.uk 
>[mailto:cpufreq-bounces@lists.linux.org.uk] On Behalf Of Eric Piel
>Sent: Wednesday, May 11, 2005 5:19 AM
>To: Dave Jones
>Cc: cpufreq@zenii.linux.org.uk; linux@dominikbrodowski.net
>Subject: Re: cpufreq on-demand governor up_treshold?
>
>Dave Jones a écrit :
>> On Tue, May 10, 2005 at 09:33:34PM -0400, Dave Jones wrote:
>>  > 
>>  > I'm preparing the first cpufreq->linus sync right now.
>>  > Can you write up some descriptions & signed-off-by: lines for
>>  > these three please ?
>> 
>> Additionally, it'll need tweaking to diff on top of whats
>> currently in the pending queue. looks like the patch at
>> 
>http://www.codemonkey.org.uk/projects/cpufreq/pending-patches/C
>PUFREQ-04-ondemand-cleanups.patch
>> upsets yours a little.
>> 
>Here follows the three patches, updated for the last snapshot of 
>cpufreq. I knew there was a conflict (CPUFREQ-04 is also a 
>patch I wrote 
>;-) ) but was too lasy to resend them. Here you are!
>
>Eric
>
>_______________________________________________
>Cpufreq mailing list
>Cpufreq@lists.linux.org.uk
>http://lists.linux.org.uk/mailman/listinfo/cpufreq
>

[-- Attachment #2: Type: message/rfc822, Size: 1745 bytes --]

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
To: "Dave Jones" <davej@redhat.com>, "Dominik Brodowski" <linux@dominikbrodowski.net>
Cc: <cpufreq@www.linux.org.uk>
Subject: [PATCH] ondemand: change default sampling_down_factor
Date: Fri, 11 Mar 2005 18:20:35 -0700
Message-ID: <20050311172035.B17820@unix-os.sc.intel.com>


Dave/Dominik,

Please Apply.

Thanks,
Venki


Make default sampling downfactor 1.
This works better with earlier auto downscaling change in ondemand governor.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>

--- linux-2.6.11/drivers/cpufreq/cpufreq_ondemand.c.org	2005-03-11 19:41:12.000000000 -0800
+++ linux-2.6.11/drivers/cpufreq/cpufreq_ondemand.c	2005-03-11 19:43:00.000000000 -0800
@@ -51,7 +51,8 @@ static unsigned int 				def_sampling_rat
 #define MIN_SAMPLING_RATE			(def_sampling_rate / 2)
 #define MAX_SAMPLING_RATE			(500 * def_sampling_rate)
 #define DEF_SAMPLING_RATE_LATENCY_MULTIPLIER	(1000)
-#define DEF_SAMPLING_DOWN_FACTOR		(10)
+#define DEF_SAMPLING_DOWN_FACTOR		(1)
+#define MAX_SAMPLING_DOWN_FACTOR		(10)
 #define TRANSITION_LATENCY_LIMIT		(10 * 1000)
 #define sampling_rate_in_HZ(x)			(((x * HZ) < (1000 * 1000))?1:((x * HZ) / (1000 * 1000)))
 
@@ -119,6 +120,9 @@ static ssize_t store_sampling_down_facto
 	if (ret != 1 )
 		return -EINVAL;
 
+	if (input > MAX_SAMPLING_DOWN_FACTOR || input < 1)
+		return -EINVAL;
+
 	down(&dbs_sem);
 	dbs_tuners_ins.sampling_down_factor = input;
 	up(&dbs_sem);

[-- Attachment #3: Type: message/rfc822, Size: 1689 bytes --]

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
To: <davej@redhat.com>
Cc: <linux@dominikbrodowski.net>
Subject: [PATCH] Force ACPI cpufreq driver to setup freq at startup
Date: Thu, 10 Mar 2005 15:36:38 -0700
Message-ID: <20050310143638.A5103@unix-os.sc.intel.com>


Dave,

Please apply.

Thanks,
Venki


Force setting of frequency after startup, as the "guessing" of frequencies 
in the ACPI cpufreq driver might be wrong. It is really unfortunate that the
ACPI specification does not provide us with a "get current P state" method.

This patch is needed by a platform that supports ACPI based cpufreq,
but boots up with lowest possible freq. Without this patch, ACPI cpufreq
assumes that the processors are running at the highest freq.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>

--- linux-2.6.11-mm2/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c.orig	2005-03-09 20:58:19.000000000 +0100
+++ linux-2.6.11-mm2/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c	2005-03-09 20:59:49.000000000 +0100
@@ -442,6 +442,11 @@
 			(u32) data->acpi_data.states[i].transition_latency);
 
 	cpufreq_frequency_table_get_attr(data->freq_table, policy->cpu);
+	
+	/* the first call to ->target() should result in us actually
+	 * writing something to the appropriate registers. */
+	data->resume = 1;
+	
 	return (result);
 
  err_freqfree:

[-- Attachment #4: Type: text/plain, Size: 147 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@lists.linux.org.uk
http://lists.linux.org.uk/mailman/listinfo/cpufreq

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2005-05-17  0:15 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-14  7:29 cpufreq on-demand governor up_treshold? Jan De Luyck
2005-03-14  7:57 ` Eric Piel
2005-03-14  7:57   ` Eric Piel
2005-03-14 11:19   ` Bruno Ducrot
2005-03-14 11:19     ` Bruno Ducrot
2005-03-14 12:40   ` Jan De Luyck
2005-03-14 12:40     ` Jan De Luyck
2005-03-14 22:39   ` Dominik Brodowski
2005-03-14 22:39     ` Dominik Brodowski
2005-05-11  1:33   ` Dave Jones
2005-05-11  1:33     ` Dave Jones
2005-05-11  2:34     ` Dave Jones
2005-05-11 12:19       ` Eric Piel
2005-05-11 12:23         ` [PATCH] [1/3] ondemand governor clean-up Eric Piel
2005-05-11 12:27         ` [PATCH][2/3] ondemand governor store the idle ticks for all cpus Eric Piel
2005-05-11 12:31         ` [PATCH][3/3] ondemand governor automatic downscaling Eric Piel
2005-05-12 23:16         ` cpufreq on-demand governor up_treshold? Eric Piel
2005-05-17  0:15           ` [PATCH] ondemand,conservative minor bug-fix and cleanup Venkatesh Pallipadi
  -- strict thread matches above, loose matches on Subject: below --
2005-05-11 16:00 cpufreq on-demand governor up_treshold? Pallipadi, Venkatesh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.