[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110412203915.GB12827@comet.dominikbrodowski.net>
Date: Tue, 12 Apr 2011 22:39:15 +0200
From: Dominik Brodowski <linux@...inikbrodowski.net>
To: Ulrich Windl <Ulrich.Windl@...uni-regensburg.de>, mjg@...hat.com,
nagananda.chumbalkar@...com
Cc: linux-kernel@...r.kernel.org, cpufreq@...r.kernel.org
Subject: pcc-cpufreq bug [Was: Bug in cpufreq-utils
(/sys/devices/system/cpu/cpu*/cpufreq/affected_cpus)?]
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists