Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sony Vaio and Pentium 4 Mobile power management questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pkxl2
n00b
n00b


Joined: 04 Nov 2003
Posts: 15
Location: Germany

PostPosted: Wed Dec 24, 2003 11:25 am    Post subject: Sony Vaio and Pentium 4 Mobile power management questions Reply with quote

Hi out there,

got me a rather nicely working Sony Vaio PCG-GRX416G, and hammered gentoo into it :) The whole apparatus works fine, with Jogdial, Wireless, Cardreader, ACPI Battery states and the whole laptop shit on a 2.6.0 Kernel

My questions are within the unexplored plains of power management. As it seems the speedfreq Daemon runs rather nicely, but the ICH Speedstep only supports the frequencies 1200 and 1800 MHz. Is this a "feature" of the Pentium 4 Mobile (yes it's a P4M 1800, no Centrino) or is it possible to get frequencies beetween 1200-1800 (ex. 1500 or so)?

The other thing is the ACPI Throttling. I got a throttling file in proc/acpi/processor/CPU0 and can echo states into it. when I do a
Code:
echo 7 > throttling

the machine gets rather laggy, so it seems to work. But neither is there a frequency change in /proc/cpuninfo, nor do I know wether this is a means to save power or to save the CPU from overheating (like I read in another thread in a footnote)

And some other dumb questions (but I found answers neither by googling nor in this forum or the docs, maybe I'm blind)

What does this /proc interface tell me?

Code:

pkxl4 /proc/acpi/processor/CPU0 # cat power
active state:            C2
default state:           C1
bus master activity:     00000000
states:
    C1:                  promotion[C2] demotion[--] latency[000] usage[00000010]
   *C2:                  promotion[--] demotion[C1] latency[001] usage[47632886]
    C3:                  <not supported>


I first thought it was another interface to the speedfreq thingy, but it did not change when I changed my cpu's speed. And echoing 1 2 3 C1 C2 C3 and such shit into the interface also did nothing.


And what the hell is the limit interface
Code:
pkxl4 /proc/acpi/processor/CPU0 # cat info
processor id:            0
acpi id:                 0
bus mastering control:   yes
power management:        yes
throttling control:      yes
performance management:  no
limit interface:         yes


I think the answers to these questions are rather interesting, not only for me, but for all these lonely portable users out there.
I have to admit if uptime matters, I have to use WinXP on the machine, cause it lasts way longer than my gentoo linux (around 1.5 hours on gentoo, 2.5-3 on WinXP)
_________________
AeonFlux - AMD 1800+XP 512 RAM - gs-2.4.21
Shakira - Sony Vaio P4M 1800 512 RAM - 2.6.6-rc3-love
bong - AMD 900 768 RAM - 2.4.26-rc1
wau - Alpha MIATA PW600AU 1,5GB RAM - 2.4.26-rc1
Back to top
View user's profile Send private message
gwlinden
n00b
n00b


Joined: 06 Jan 2003
Posts: 70
Location: Utrecht, The Netherlands

PostPosted: Fri Dec 26, 2003 6:50 pm    Post subject: Reply with quote

Same here, but then the opposite: I set the governer to "powersave", and /proc/cpuinfo tells me the CPU is running at 250 MHz (instead of 2 GHz), while /proc/acpi tells me the throttling is still way up at state T0.

It seems the cpufreq and acpi throttling are two different animals...

BTW, I have an Asus L3800S laptop with a P4, running 2.6.0-test10.

I would like to know why this is too.
_________________
Gwendolyn
Back to top
View user's profile Send private message
jetblack
Guru
Guru


Joined: 15 Jan 2003
Posts: 340
Location: Evanston, IL, USA

PostPosted: Fri Dec 26, 2003 9:10 pm    Post subject: Reply with quote

I think that Speedstep only supports two frequencies, corresponding to "AC" and "battery". There is a nice explanation of all of the processor power management stuff (power, throttling, sleep, speedstep) here. I hope it helps clear up some of these questions - it is a bit confusing.
Back to top
View user's profile Send private message
drakos7
Apprentice
Apprentice


Joined: 21 Feb 2003
Posts: 294
Location: Rockville, MD, USA, Earth, Sol

PostPosted: Sat Dec 27, 2003 6:32 pm    Post subject: Reply with quote

I have the seen the same. I am quite certain that only those 2 frequencies are supported by the chip. You cannot set it to a random freq. Only 1200 or 1600 (in my case, 1800 in yours)
Back to top
View user's profile Send private message
pkxl2
n00b
n00b


Joined: 04 Nov 2003
Posts: 15
Location: Germany

PostPosted: Sun Dec 28, 2003 4:35 pm    Post subject: Reply with quote

jetblacks comment was of much help, the link he provided told me everything I wanted to know! Thank you!

I will fool around a bit with these informations and tell you if I find something useful (and battery-prolonging :) )
_________________
AeonFlux - AMD 1800+XP 512 RAM - gs-2.4.21
Shakira - Sony Vaio P4M 1800 512 RAM - 2.6.6-rc3-love
bong - AMD 900 768 RAM - 2.4.26-rc1
wau - Alpha MIATA PW600AU 1,5GB RAM - 2.4.26-rc1
Back to top
View user's profile Send private message
pkxl2
n00b
n00b


Joined: 04 Nov 2003
Posts: 15
Location: Germany

PostPosted: Wed May 19, 2004 7:40 pm    Post subject: Reply with quote

Okay, some updates now.

I've finally been able to catch up with Larry. Now I've control over the CPU Performance of my P4M. I still don't know why the older kernel won't let me set the cpu frequency myself (got the feeling that it sets to 1800 if on wall power, 1200 on Battery, I also read some rants from people sharing this opinion) But now, with the linux-2.6.6-rc3-love4 Love-Kernel nearly everything is under control.

I tested the settings with nbench, 'cause I trust the VAIO internal reports as much as I can throw a cray (throwing the notebook would be contraproductive, as it would fly somewhat far)

With POWERSAVE Governor (1200MHz)
Code:

TEST                : Iterations/sec.  : Old Index   : New Index
                    :                  : Pentium 90* : AMD K6/233*
-TEST                : Iterations/sec.  : Old Index   : New Index
                    :                  : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT        :          402.48  :      10.32  :       3.39
STRING SORT         :          26.446  :      11.82  :       1.83
BITFIELD            :      1.6408e+08  :      28.15  :       5.88
FP EMULATION        :              66  :      31.67  :       7.31
FOURIER             :          5855.7  :       6.66  :       3.74
ASSIGNMENT          :          14.246  :      54.21  :      14.06
IDEA                :          760.73  :      11.64  :       3.45
HUFFMAN             :          390.17  :      10.82  :       3.45
NEURAL NET          :          10.827  :      17.39  :       7.32
LU DECOMPOSITION    :          442.48  :      22.92  :      16.55
==========================ORIGINAL BYTEMARK RESULTS==========================
INTEGER INDEX       : 18.501
FLOATING-POINT INDEX: 13.847
Baseline (MSDOS*)   : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA BELOW===============================
CPU                 : GenuineIntel Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz 1194MHz
L2 Cache            : 512 KB
OS                  : Linux 2.6.6-rc3-love4
C compiler          : 3.3.2
libc                :
MEMORY INDEX        : 5.327
INTEGER INDEX       : 4.147
FLOATING-POINT INDEX: 7.680
Baseline (LINUX)    : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38


With PERFORMANCE Governor (1800MHz)
Code:

TEST                : Iterations/sec.  : OTEST                : Iterations/sec.  : Old Index   : New Index
                    :                  : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT        :           661.8  :      16.97  :       5.57
STRING SORT         :          39.832  :      17.80  :       2.75
BITFIELD            :      2.4712e+08  :      42.39  :       8.85
FP EMULATION        :           99.16  :      47.58  :      10.98
FOURIER             :          8796.7  :      10.00  :       5.62
ASSIGNMENT          :          21.514  :      81.86  :      21.23
IDEA                :          1142.6  :      17.48  :       5.19
HUFFMAN             :          585.95  :      16.25  :       5.19
NEURAL NET          :          16.276  :      26.15  :      11.00
LU DECOMPOSITION    :          667.32  :      34.57  :      24.96
==========================ORIGINAL BYTEMARK RESULTS==========================
INTEGER INDEX       : 28.194
FLOATING-POINT INDEX: 20.833
Baseline (MSDOS*)   : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA BELOW===============================
CPU                 : GenuineIntel Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz 1791MHz
L2 Cache            : 512 KB
OS                  : Linux 2.6.6-rc3-love4
C compiler          : 3.3.2
libc                :
MEMORY INDEX        : 8.031
INTEGER INDEX       : 6.371
FLOATING-POINT INDEX: 11.555
Baseline (LINUX)    : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38


There are of course some issues left: The CPU fan spins although I got only 40° on the Thermal zone. This is the lesser problem because the CPU fan is rather quiet. The problem is the f**cking videocard fan. It blows ALWAYS, even if I'm on console. FYI it's a ATI Radeon M7 (Mobility 7500)
This fan is rather noisy.

JFYI, my Kernel config, for all VAIO PCG-GRX/Z users: http://www.pkxl2.de/config.love
_________________
AeonFlux - AMD 1800+XP 512 RAM - gs-2.4.21
Shakira - Sony Vaio P4M 1800 512 RAM - 2.6.6-rc3-love
bong - AMD 900 768 RAM - 2.4.26-rc1
wau - Alpha MIATA PW600AU 1,5GB RAM - 2.4.26-rc1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum