Mailing List Archive

speedstep, acpi, and processor type
Howdy! I'm in the midst of my first Gentoo install (stage 1, even). Boy,
that's a lot of work! But I really dig the optimization and package
management... so I'm looking forward to using it.

The laptop is compiling KDE right now. I noticed the processor is running
at 600MHz. Not cool. I want it full speed when plugged in.

I can't figure out how to change the processor speed. I looked in the
cpu-freq user guide (kernel sources), but what they described isn't showing
up.

Direct questions:
(1) Did I screw something up? Where's the interface described
in /usr/src/linux/Documentation/cpu-freq/user-guide.txt?

(2) Did I compile the kernel with the right processor info? I think I
picked Pentium 4 because I was under the impression that I have a "pentium
4 M" (if that even exists....)

THANKS IN ADVANCE!!!

Some info you're bound to need:

Hardware: IBM ThinkPad R51 w/Pent-M 1.6GHz proc 512MB

$ uname -a
Linux orion 2.6.8.1 #1 Sat Oct 9 15:09:53 CDT 2004 i686 Intel(R) Pentium(R)
M processor 1.60GHz GenuineIntel GNU/Linux

$ ls -a /sys/devices/system/cpu/cpu0
. ..

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 1.60GHz
stepping : 6
cpu MHz : 598.180
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov
pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe tm2 est
bogomips : 1183.74

$ cat /boot/config-2.6.8.1-dev | grep "PENT" ; cat /boot/config-2.6.8.1-dev
| grep "PROC\|CPU" | grep -v ^#
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
CONFIG_MPENTIUM4=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_PCI_LEGACY_PROC=y
CONFIG_SCSI_PROC_FS=y
CONFIG_REISERFS_PROC_INFO=y
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y


--
Gabriel M. Beddingfield


--
gentoo-user@gentoo.org mailing list
Re: speedstep, acpi, and processor type [ In reply to ]
Just checked the /proc/cpuinfo on my HP nx7000 which correctly shows a
Intel Pentium M 1500 MHz with 1495.800 cpu MHz and 1024 KB cache.

Processor family in my 2.6.8.1 kernel:
P-4/Celeron(P-4 based)/Pentium-4 M/Xeon

So I guess you first have to check which processor type you used in your
kernel.

Another thing is the 64KB cache you got - that can't be right either.

Gabriel M. Beddingfield schrieb:
> Howdy! I'm in the midst of my first Gentoo install (stage 1, even). Boy,
> that's a lot of work! But I really dig the optimization and package
> management... so I'm looking forward to using it.
>
> The laptop is compiling KDE right now. I noticed the processor is running
> at 600MHz. Not cool. I want it full speed when plugged in.
>
> I can't figure out how to change the processor speed. I looked in the
> cpu-freq user guide (kernel sources), but what they described isn't showing
> up.
>
> Direct questions:
> (1) Did I screw something up? Where's the interface described
> in /usr/src/linux/Documentation/cpu-freq/user-guide.txt?
>
> (2) Did I compile the kernel with the right processor info? I think I
> picked Pentium 4 because I was under the impression that I have a "pentium
> 4 M" (if that even exists....)
>
> THANKS IN ADVANCE!!!
>
> Some info you're bound to need:
>
> Hardware: IBM ThinkPad R51 w/Pent-M 1.6GHz proc 512MB
>
> $ uname -a
> Linux orion 2.6.8.1 #1 Sat Oct 9 15:09:53 CDT 2004 i686 Intel(R) Pentium(R)
> M processor 1.60GHz GenuineIntel GNU/Linux
>
> $ ls -a /sys/devices/system/cpu/cpu0
> . ..
>
> $ cat /proc/cpuinfo
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 6
> model : 13
> model name : Intel(R) Pentium(R) M processor 1.60GHz
> stepping : 6
> cpu MHz : 598.180
> cache size : 64 KB
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 2
> wp : yes
> flags : fpu vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov
> pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe tm2 est
> bogomips : 1183.74
>
> $ cat /boot/config-2.6.8.1-dev | grep "PENT" ; cat /boot/config-2.6.8.1-dev
> | grep "PROC\|CPU" | grep -v ^#
> # CONFIG_MPENTIUMII is not set
> # CONFIG_MPENTIUMIII is not set
> # CONFIG_MPENTIUMM is not set
> CONFIG_MPENTIUM4=y
> CONFIG_ACPI_SLEEP_PROC_FS=y
> CONFIG_ACPI_PROCESSOR=y
> CONFIG_CPU_FREQ=y
> CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
> CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
> CONFIG_CPU_FREQ_TABLE=y
> CONFIG_PCI_LEGACY_PROC=y
> CONFIG_SCSI_PROC_FS=y
> CONFIG_REISERFS_PROC_INFO=y
> CONFIG_PROC_FS=y
> CONFIG_PROC_KCORE=y
>
>

--
Mit freundlichen Grüßen

Heinz Sporn

SPORN it-freelancing

Mobile: ++43 (0)699 / 127 827 07
Email: heinz.sporn@sporn-it.com
heinz.sporn@utanet.at
Snail: Steyrer Str. 20
A-4540 Bad Hall
Austria / Europe

--
gentoo-user@gentoo.org mailing list
Re: speedstep, acpi, and processor type [ In reply to ]
Heinz Sporn wrote:

> So I guess you first have to check which processor type you used in your
> kernel.

Thanks for your response!

I switched from the "4 M" processor type to the "Pentium M" processor type,
and it appeared to make no difference for frequency scaling.

However, changing the kernel from cpu-freq "performance" to cpu-freq
"user-space" gave me the interface I was looking for.

> Another thing is the 64KB cache you got - that can't be right either.

I haven't found any kernel settings that affect this (yet).

memtest86 reports:
Pentium M (0.09) 1595 Mhz
L1 Cache: 64K 19686MB/s
L2 Cache: 2048K 8666MB/s
Memory : 503M 1056MB/s

Does this make sense to you? I'm starting to think that it gave me the
right answer.

--
Gabriel M. Beddingfield


--
gentoo-user@gentoo.org mailing list
Re: Re: speedstep, acpi, and processor type [ In reply to ]
I'd say that's much better now. Regarding the L1 and L2 caches I am
really not sure if that's plausible for your particular hardware. You
propably have to consult your notebook's manual.

Another thing: you might wanna do an

emerge -svV cpu

That'll list a couple of CPU usage and frequency management tools

Gabriel M. Beddingfield schrieb:
> Heinz Sporn wrote:
>
>
>>So I guess you first have to check which processor type you used in your
>>kernel.
>
>
> Thanks for your response!
>
> I switched from the "4 M" processor type to the "Pentium M" processor type,
> and it appeared to make no difference for frequency scaling.
>
> However, changing the kernel from cpu-freq "performance" to cpu-freq
> "user-space" gave me the interface I was looking for.
>
>
>>Another thing is the 64KB cache you got - that can't be right either.
>
>
> I haven't found any kernel settings that affect this (yet).
>
> memtest86 reports:
> Pentium M (0.09) 1595 Mhz
> L1 Cache: 64K 19686MB/s
> L2 Cache: 2048K 8666MB/s
> Memory : 503M 1056MB/s
>
> Does this make sense to you? I'm starting to think that it gave me the
> right answer.
>

--
Mit freundlichen Grüßen

Heinz Sporn

SPORN it-freelancing

Mobile: ++43 (0)699 / 127 827 07
Email: heinz.sporn@sporn-it.com
heinz.sporn@utanet.at
Snail: Steyrer Str. 20
A-4540 Bad Hall
Austria / Europe

--
gentoo-user@gentoo.org mailing list
Re: Re: speedstep, acpi, and processor type [ In reply to ]
On Tue, 2004-10-12 at 12:57, Heinz Sporn wrote:
> I'd say that's much better now. Regarding the L1 and L2 caches I am
> really not sure if that's plausible for your particular hardware. You
> propably have to consult your notebook's manual.
>
> Another thing: you might wanna do an
>
> emerge -svV cpu
>
> That'll list a couple of CPU usage and frequency management tools

I personally use speedfreq (which I find better or more responsive to
dynamic loads)

--
gentoo-user@gentoo.org mailing list
Re: speedstep, acpi, and processor type [ In reply to ]
> Gabriel M. Beddingfield wrote:
>
>
> I switched from the "4 M" processor type to the "Pentium M" processor type,
> and it appeared to make no difference for frequency scaling.
>
> However, changing the kernel from cpu-freq "performance" to cpu-freq
> "user-space" gave me the interface I was looking for.
>

If you'd like dynamic adjustment based on load, give - powernowd a try -

* sys-apps/powernowd
Latest version available: 0.90
Latest version installed: 0.90
Size of downloaded files: [no/bad digest]
Homepage: http://www.deater.net/john/powernowd.html http://n-dimensional.de/projects/cpufreq/
Description: Daemon to control the speed and voltage of CPUs

> > Another thing is the 64KB cache you got - that can't be right either.
>
> I haven't found any kernel settings that affect this (yet).
>

Cpu info is -

*-cpu
description: CPU
product: Intel(R) Pentium(R) M processor 1600MHz
vendor: Intel Corp.
physical id: 6
version: 6.9.5
slot: None
size: 1600MHz
capacity: 1600MHz
clock: 400MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe tm2 est
*-cache:0
description: L1 cache
physical id: a
slot: Internal L1 Cache
size: 32KB
capacity: 32KB
capabilities: synchronous internal write-back
*-cache:1
description: L2 cache
physical id: b
slot: Internal L2 Cache
size: 1MB
capacity: 1MB
capabilities: burst internal write-back


Bob

--
gentoo-user@gentoo.org mailing list
Re: Re: speedstep, acpi, and processor type [ In reply to ]
Also, don't relly 100% on /proc/cpuinfo. I had problems with it in
kernel 2.6.3 under Mandrake, it didn't report correct frequency, but I
thought it should be fixed in newer kernels and I certainly didn't
have problems with it in Gentoo. You may try emerging x86info, it can
estimate cpufrequency and give you other useful stats.

--
gentoo-user@gentoo.org mailing list