* Userspace: available processorspeeds
@ 2003-10-06 9:19 Jeroen Van der Vegt
2003-10-06 12:38 ` Ducrot Bruno
2003-10-06 19:59 ` Dave Jones
0 siblings, 2 replies; 3+ messages in thread
From: Jeroen Van der Vegt @ 2003-10-06 9:19 UTC (permalink / raw)
To: cpufreq
Hello,
I'm trying to write a userspace processor-speed governor for my laptop,
an Asus L3000D. It has an AMD Athlon Mobile processor and runs on Linux
2.6.0-test5 (and Debian unstable).
For some reason, my laptop crashes when the speed changes from maximum
to minimum at once. So my program is to step the speed only to the next
level available. This is repeated every 5 seconds, so both the maximum
and minimum speed are reachable.
The available speeds are printed when the module PowerNow is loaded, but
isn't there a 'better' way to retrieve this information? There doesn't
seem to be a file listing all possible speeds in either /proc nor /sys.
Have I overlooked a file perhaps, or is there some function call I can use?
Besides this, I have experienced the following weirdness: according to
/sys/.../scaling_min_freq, my processor's minimum speed is 532 Mhz. I
have, however, had it running at 292Mhz (as reported by /proc/cpuinfo).
It's not really reproducible unfortunately, and I only noticed it once
or twice.The laptops keeps working fine though, so it's not much of a
problem to that respect. Any actions I should take the next time I see it?
Regards,
Jeroen van der Vegt.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Userspace: available processorspeeds
2003-10-06 9:19 Userspace: available processorspeeds Jeroen Van der Vegt
@ 2003-10-06 12:38 ` Ducrot Bruno
2003-10-06 19:59 ` Dave Jones
1 sibling, 0 replies; 3+ messages in thread
From: Ducrot Bruno @ 2003-10-06 12:38 UTC (permalink / raw)
To: Jeroen Van der Vegt; +Cc: cpufreq
On Mon, Oct 06, 2003 at 11:19:25AM +0200, Jeroen Van der Vegt wrote:
> Hello,
>
> I'm trying to write a userspace processor-speed governor for my laptop,
> an Asus L3000D. It has an AMD Athlon Mobile processor and runs on Linux
> 2.6.0-test5 (and Debian unstable).
>
> For some reason, my laptop crashes when the speed changes from maximum
> to minimum at once. So my program is to step the speed only to the next
> level available. This is repeated every 5 seconds, so both the maximum
> and minimum speed are reachable.
Please be sure to upgrade to linux-2.6.0-test6 at least, due to some bugs
in previous versions in powernow-k7.
> The available speeds are printed when the module PowerNow is loaded, but
> isn't there a 'better' way to retrieve this information? There doesn't
> seem to be a file listing all possible speeds in either /proc nor /sys.
> Have I overlooked a file perhaps, or is there some function call I can use?
>
> Besides this, I have experienced the following weirdness: according to
> /sys/.../scaling_min_freq, my processor's minimum speed is 532 Mhz. I
> have, however, had it running at 292Mhz (as reported by /proc/cpuinfo).
Strange. Perhaps a bug somewhere in core?
> It's not really reproducible unfortunately, and I only noticed it once
> or twice.The laptops keeps working fine though, so it's not much of a
> problem to that respect. Any actions I should take the next time I see it?
Look what say bogomips, or x86info --mhz
Cheers,
--
Ducrot Bruno
-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Userspace: available processorspeeds
2003-10-06 9:19 Userspace: available processorspeeds Jeroen Van der Vegt
2003-10-06 12:38 ` Ducrot Bruno
@ 2003-10-06 19:59 ` Dave Jones
1 sibling, 0 replies; 3+ messages in thread
From: Dave Jones @ 2003-10-06 19:59 UTC (permalink / raw)
To: Jeroen Van der Vegt; +Cc: cpufreq
On Mon, Oct 06, 2003 at 11:19:25AM +0200, Jeroen Van der Vegt wrote:
> Besides this, I have experienced the following weirdness: according to
> /sys/.../scaling_min_freq, my processor's minimum speed is 532 Mhz. I
> have, however, had it running at 292Mhz (as reported by /proc/cpuinfo).
The 532 is a calculated speed using FSB speed * a multipler.
The 292 is an estimate based upon bogomips calculation at boot time,
and also, is subject to thermal throttling by ACPI if present.
Think of '532' as actual speed, and '292' as effective speed.
Dave
--
Dave Jones http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-10-06 19:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-06 9:19 Userspace: available processorspeeds Jeroen Van der Vegt
2003-10-06 12:38 ` Ducrot Bruno
2003-10-06 19:59 ` Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox