linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)?
@ 2011-04-07 14:53 Ulrich Windl
  2011-04-12 20:39 ` pcc-cpufreq bug [Was: Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)?] Dominik Brodowski
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Windl @ 2011-04-07 14:53 UTC (permalink / raw)
  To: linux-kernel

Hello,

I found this for cpufrequtils-004-35.20 on SLES11 SP1 (plus updates) for a HP DL380 G7 server with two 6-core Xeon X5650 CPUs:

...
analyzing CPU 23:
  driver: pcc-cpufreq
  CPUs which need to switch frequency at the same time: 23
  hardware limits: 1.60 GHz - 2.67 GHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 1.60 GHz and 2.67 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.57 GHz (asserted by call to hardware).

To my understanding "cpu23" in Linux is "package 1 (2nd CPU), core 9 (actually 4/6 or 6/6), ACPI ID 51". As each core is featuring hyper-theading I wonder whether two threads may actually be clocked individually. If not, "cpu11" (package 1 (2nd CPU), core 9 (actually 4/6 or 6/6), ACPI ID 50) should need to switch frequency, too.

# cat /sys/devices/system/cpu/cpu23/cpufreq/affected_cpus
23
# cat /proc/version
Linux version 2.6.32.29-0.3-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP 2011-02-25 13:36:59 +0100

Regards,
Ulrich
P.S. I'm not subscribed to this list, so maybe CC: your answers - thanks!


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

* pcc-cpufreq bug [Was: Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)?]
  2011-04-07 14:53 Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)? Ulrich Windl
@ 2011-04-12 20:39 ` Dominik Brodowski
  2011-04-12 20:48   ` Matthew Garrett
  0 siblings, 1 reply; 4+ messages in thread
From: Dominik Brodowski @ 2011-04-12 20:39 UTC (permalink / raw)
  To: Ulrich Windl, mjg, nagananda.chumbalkar; +Cc: linux-kernel, cpufreq

Hey,

On Thu, Apr 07, 2011 at 04:53:21PM +0200, Ulrich Windl wrote:
> Hello,
> 
> I found this for cpufrequtils-004-35.20 on SLES11 SP1 (plus updates) for a HP DL380 G7 server with two 6-core Xeon X5650 CPUs:
> 
> ...
> analyzing CPU 23:
>   driver: pcc-cpufreq
>   CPUs which need to switch frequency at the same time: 23
>   hardware limits: 1.60 GHz - 2.67 GHz
>   available cpufreq governors: conservative, userspace, powersave, ondemand, performance
>   current policy: frequency should be within 1.60 GHz and 2.67 GHz.
>                   The governor "ondemand" may decide which speed to use
>                   within this range.
>   current CPU frequency is 1.57 GHz (asserted by call to hardware).
> 
> To my understanding "cpu23" in Linux is "package 1 (2nd CPU), core 9 (actually 4/6 or 6/6), ACPI ID 51". As each core is featuring hyper-theading I wonder whether two threads may actually be clocked individually. If not, "cpu11" (package 1 (2nd CPU), core 9 (actually 4/6 or 6/6), ACPI ID 50) should need to switch frequency, too.
> 
> # cat /sys/devices/system/cpu/cpu23/cpufreq/affected_cpus
> 23

Thanks for reporting this issue. However, cpufrequtils is rather dumb in
this regard, and just makes use of the values reported by the kernel. And
the kernel reports that changing the frequency of CPU 23 only affects CPU
23... Which is obviously wrong.

To the pcc-cpufreq.c driver developers & maintainers: Is there _any_ way to
properly set

	(struct cpufreq_policy *) -> cpus
				  -> related_cpus

in this driver?

Best,
	Dominik

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

* Re: pcc-cpufreq bug [Was: Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)?]
  2011-04-12 20:39 ` pcc-cpufreq bug [Was: Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)?] Dominik Brodowski
@ 2011-04-12 20:48   ` Matthew Garrett
  2011-04-13 10:55     ` Dominik Brodowski
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Garrett @ 2011-04-12 20:48 UTC (permalink / raw)
  To: Dominik Brodowski, Ulrich Windl, nagananda.chumbalkar,
	linux-kernel, cpufreq

On Tue, Apr 12, 2011 at 10:39:15PM +0200, Dominik Brodowski wrote:

> To the pcc-cpufreq.c driver developers & maintainers: Is there _any_ way to
> properly set
> 
> 	(struct cpufreq_policy *) -> cpus
> 				  -> related_cpus
> 
> in this driver?

The spec says we should be able to do this with the _PSD data. I'll look 
into it.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

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

* Re: pcc-cpufreq bug [Was: Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)?]
  2011-04-12 20:48   ` Matthew Garrett
@ 2011-04-13 10:55     ` Dominik Brodowski
  0 siblings, 0 replies; 4+ messages in thread
From: Dominik Brodowski @ 2011-04-13 10:55 UTC (permalink / raw)
  To: Matthew Garrett; +Cc: Ulrich Windl, nagananda.chumbalkar, linux-kernel, cpufreq

On Tue, Apr 12, 2011 at 09:48:11PM +0100, Matthew Garrett wrote:
> On Tue, Apr 12, 2011 at 10:39:15PM +0200, Dominik Brodowski wrote:
> 
> > To the pcc-cpufreq.c driver developers & maintainers: Is there _any_ way to
> > properly set
> > 
> > 	(struct cpufreq_policy *) -> cpus
> > 				  -> related_cpus
> > 
> > in this driver?
> 
> The spec says we should be able to do this with the _PSD data. I'll look 
> into it.

Thanks!

	Dominik

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

end of thread, other threads:[~2011-04-13 10:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-07 14:53 Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)? Ulrich Windl
2011-04-12 20:39 ` pcc-cpufreq bug [Was: Bug in cpufreq-utils (/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)?] Dominik Brodowski
2011-04-12 20:48   ` Matthew Garrett
2011-04-13 10:55     ` Dominik Brodowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).