works very well but...

If you have trouble with PHC you can ask and hope for help here.
Post Reply
Gillian00
Posts: 19
Joined: Sat 13. Feb 2010, 01:56

works very well but...

Post by Gillian00 » Sat 13. Feb 2010, 03:23

Hi,

First: thank you for you wonderful work !

I have intel centrino with a cpu which is announced as T8300 with 6mo cache (by the ebay guy who sold me the cpu...) but cpu-z tells me it's SP9400 (but I only have 800mhz in freqs!) ==> How can I know which one is it ?

I'm running with phc 0.3.2 and I can't go lower than 1,0500V
so with idle, I have 58° celcius :-( (before I had 63°)
What can you advice me to do ??

I'd like to install 0.4 but it doesn't work:
@oztracker test-release-0.3.199-3]$ sh prepare.sh
FOUND AVAILABLE PATCHSET. PREPARING.
patching file phc-intel.c
Hunk #2 FAILED at 68.
Hunk #3 succeeded at 93 (offset 7 lines).
Hunk #4 succeeded at 120 (offset 7 lines).
Hunk #5 succeeded at 408 with fuzz 1 (offset 63 lines).
Hunk #6 succeeded at 763 (offset 35 lines).
Hunk #7 succeeded at 793 with fuzz 1 (offset 35 lines).
Hunk #8 succeeded at 812 (offset 35 lines).
Hunk #9 succeeded at 1434 (offset 34 lines).
1 out of 9 hunks FAILED -- saving rejects to file phc-intel.c.rej
[gillian@oztracker test-release-0.3.199-3]$ make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/gillian/Downloads/test-release-0.3.199-3 modules
make[1]: Entering directory `/usr/src/linux-2.6.32-ARCH'
CC [M] /home/gillian/Downloads/test-release-0.3.199-3/phc-intel.o
In file included from <command-line>:0:
./include/linux/autoconf.h:1391:1: warning: "CONFIG_ENABLE_WARN_DEPRECATED" redefined
<command-line>: warning: this is the location of the previous definition
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'extract_msr':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:126: error: 'INTEL_MSR_FID_MASK' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:126: error: (Each undeclared identifier is reported only once
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:126: error: for each function it appears in.)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'acpi_cpufreq_cpu_exit':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:796: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:797: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'extract_fid_from_control':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:819: error: 'INTEL_MSR_FID_MASK' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:819: error: 'INTEL_MSR_FID_SHIFT' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'extract_slfm_from_control':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:824: error: 'INTEL_MSR_SLFM_MASK' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:824: error: 'INTEL_MSR_FID_SHIFT' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'extract_nif_from_control':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:829: error: 'INTEL_MSR_NIF_MASK' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:829: error: 'INTEL_MSR_FID_SHIFT' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'extract_vid_from_control':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:834: error: 'INTEL_MSR_VID_MASK' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'check_origial_table':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:862: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:864: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:866: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:871: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'show_freq_attr_controls':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:931: error: 'per_cpu__acfreq_data' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:931: warning: type defaults to 'int' in declaration of 'type name'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:931: error: invalid type argument of 'unary *' (have 'int')
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'show_freq_attr_default_controls':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:954: error: 'per_cpu__acfreq_data' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:954: warning: type defaults to 'int' in declaration of 'type name'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:954: error: invalid type argument of 'unary *' (have 'int')
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:969: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'get_fsb_freq':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1000: error: 'INTEL_MSR_FSB_MASK' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'store_freq_attr_controls':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1019: error: 'per_cpu__acfreq_data' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1019: warning: type defaults to 'int' in declaration of 'type name'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1019: error: invalid type argument of 'unary *' (have 'int')
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1133: error: 'INTEL_MSR_VID_MASK' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'show_freq_attr_vids':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1209: error: 'per_cpu__acfreq_data' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1209: warning: type defaults to 'int' in declaration of 'type name'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1209: error: invalid type argument of 'unary *' (have 'int')
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'show_freq_attr_default_vids':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1236: error: 'per_cpu__acfreq_data' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1236: warning: type defaults to 'int' in declaration of 'type name'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1236: error: invalid type argument of 'unary *' (have 'int')
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1252: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'store_freq_attr_vids':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1266: error: 'per_cpu__acfreq_data' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1266: warning: type defaults to 'int' in declaration of 'type name'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1266: error: invalid type argument of 'unary *' (have 'int')
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1303: error: 'struct acpi_cpufreq_data' has no member named 'original_controls'
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1304: error: 'INTEL_MSR_VID_MASK' undeclared (first use in this function)
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c: In function 'show_freq_attr_phc_version':
/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.c:1339: error: 'PHC_VERSION_STRING' undeclared (first use in this function)
make[2]: *** [/home/gillian/Downloads/test-release-0.3.199-3/phc-intel.o] Error 1
make[1]: *** [_module_/home/gillian/Downloads/test-release-0.3.199-3] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.32-ARCH'
make: *** [phc-intel.ko] Error 2
[gillian@oztracker test-release-0.3.199-3]$
could you help me with it ??
I'm running with 2.6.32 kernel and Archlinux
I tried the 2.6.31 patch and the 2.6.33. I didn't find any 2.6.32 patch, is it normal ???


I have a last question: it's just to be sure: does undervolting affects performance or not ?

Thank you a lot for your help :-)

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: works very well but...

Post by the-fallen » Sat 13. Feb 2010, 09:23

Heya,

to easiest way to check what kind of CPU you have is to take a look into the BIOS (most newer BIOSes display the CPU somewhere) or at least the POST-Screen of the BIOS (the fist thing you see when you start the computer).

You can also check the output of

cat /proc/cpuinfo

If you can not go lower than 1.0500 Volts maa be caused by the fixed lowest voltage of the CPU. (Did you got that value from cpu-z ??)
Modern CPUs are calibrated when manufactured so minimum and maximum voltages may differ even within the same Series.

The 0.4 patch is yet in a developement state nad not meant to be used in common.

Undervolting does affect performance (positive and negative). In what manner depends on many variables.
If you need a high-performance system you would never have buyed a laptop so we have the battery and the temperature in mind first.
At least I do not know someone who complained about significant performance dropping after undervolting.



Ah and ... welcome on board :)

Gillian00
Posts: 19
Joined: Sat 13. Feb 2010, 01:56

Re: works very well but...

Post by Gillian00 » Sat 13. Feb 2010, 11:24

thank you for your fast answer ;)

I knew about cpuinfo and bios but even them don't tell me the name of my cpu:
~]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Genuine Intel(R) CPU @ 2.40GHz
stepping : 1
cpu MHz : 800.000
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm ida tpr_shadow vnmi flexpriority
bogomips : 4802.92
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Genuine Intel(R) CPU @ 2.40GHz
stepping : 1
cpu MHz : 800.000
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm ida tpr_shadow vnmi flexpriority
bogomips : 4801.58
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

1,0500V is the lower value I can have with RMMclock also. SO I suppose I can't go lower
However, with RMMclock, I can have a kind of super lower frequence which is 600mhz instead of 800mhz.
Is there a way to have the same on linux ??

Do you know the guy(s) who upload your packages on the Aur repository of Archlinux ?
Because they are not really updated with the actuals versions. So if you do not see any problem, I'd like to update the packages on this repository as soon as I have some time ^^ tell me if it's ok :)



ps: sorry for my bad english

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: works very well but...

Post by the-fallen » Sat 13. Feb 2010, 12:55

Thats bad if they do not tell you the CPU name.
There are some intel tools to identify your CPU (only for Windows) here:

http://www.intel.com/support/processors ... 015477.htm

The 800MHz FSB may indicate that it is a T-Series CPU or a LowVoltage / Ultra Low Voltage CPU.

A T-Series CPU with 6MB Cache and 2.4GHz may be the T8600 .. but thats just guessing.

If your system supports Super Low Frequency Mode (SLFM) and exposes it to the system (some register flags need to be set by the CPU) Linux is using it out of the Box. If Linux dies not show you the "600MHZ" but you can use it in Windows it may be caused by a BIOS that does not expose everything in the right manner.
We frequently have people here who have problems with crappy BIOSes.

That does not mean that SLFM does not work. Activated SLFM means that your Bus Frequency for a given Processor Speed is internally halved. That saves some extra power. SLFM can also be used to get 800MHz as well as to get 600MHz. Its just a different Multiplicator.

SLFM can be used with PHC, too.
For CPUs which have that feature, the slowest frequency available is SLFM.
For those frequency the FID displayed by PHC is somewhat between 129 and 254.
(better displaying can be expected with the next PHC Version).

Summary: If you have a FID between 129 and 254 for your slowest speed step it means that SLFM is active there.
Slowing it down to 600MHz may be possible with the next PHC version.


I do not know those people who are packing the Arch Kernel.
If you wish to have the latest, bleeding-edge kernel you can use the latest vanilla kernel ( if there is a PHC patch already available for that version).

Your english is not much worse than mine ;)

Gillian00
Posts: 19
Joined: Sat 13. Feb 2010, 01:56

Re: works very well but...

Post by Gillian00 » Sun 14. Feb 2010, 14:05

Thank you for your information,

To identify my cpu, Is there a way to see the cpu consumption ? Because if it is 35W => T serie and if it is 25W => P serie, am I right ?

For the SLFM, I was able to use it only with RMMclock enabled under windows. So, it's a crappy bios (but that's normal, I have an acer laptop...)
But I didn't understand you well: Can I try to activate it now under Linux or I have to wait for the next phc version ? it is not possible to just add it in the config of cpufreq file for example ?

If it is possible, can you give me the way to activate ? (or a link who explain)


thank you,

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: works very well but...

Post by the-fallen » Sun 14. Feb 2010, 15:13

The 35 or 25W are the Thermal Power Design values. That does mean that the CPU is meant to work with a thermal power output of 25 or 35 Watts (so the hardware vendor knows how much heat he need to handle with).

If your first FID is within the given range of values (129 - 254) SLFM is already enabled for that speed step. The current PHC patches are only able to set VIDs (voltages). With the next version you are also able to set other things (like FID (Frequency steps)).
So you possibly are already using SLFM if your systems BIOS is well-made.

Gillian00
Posts: 19
Joined: Sat 13. Feb 2010, 01:56

Re: works very well but...

Post by Gillian00 » Sun 14. Feb 2010, 16:59

OK... I will wait for the next version... :)

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: works very well but...

Post by the-fallen » Mon 15. Feb 2010, 09:08

You do not really need to. Like I said, the current Version of PHC-Intel also works with SLFM & Co ...

Gillian00
Posts: 19
Joined: Sat 13. Feb 2010, 01:56

Re: works very well but...

Post by Gillian00 » Mon 15. Feb 2010, 12:19

OK I think I understand now, sorry, all of this is a little new ... :oops:

so: I have this :
[gillian@oztracker cpufreq]$ cat phc_fids
13 12 10 8 6 136
[gillian@oztracker cpufreq]$ cat phc_vids
28 28 28 28 27 27
[gillian@oztracker cpufreq]$ cat scaling_min_freq
800000
I have SLFM activated because I have 136 which is between 129 - 254 am I right ??
Next I have vids I modified
and then my minimum freq which is 800mhz.

So, for now, SLFM is set up with 800mhz instead of 600mhz under windows.
TO set up with 600mhz, I have to wait thenext PHC version.

Am I right ?? Or maybe it exists an other way to set 600mhz ?

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: works very well but...

Post by the-fallen » Mon 15. Feb 2010, 17:45

absolute correct :)

But it is no guarantee that you will be able to get the 600MHz with the next PHC-Version .. but it may be possible.

Post Reply