* RE: Centrino question
@ 2004-05-21 11:42 Yu, Luming
[not found] ` <3ACA40606221794F80A5670F0AF15F84046AA243-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Yu, Luming @ 2004-05-21 11:42 UTC (permalink / raw)
To: Cyril Wattebled, Brown, Len
Cc: cpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, linux-acpi,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 677 bytes --]
>I so frustrated because I can last up to 6h unplugged on the
>windows platform
How did you run windows ?
>but only 2h30 on linux. There must be something wrong.
How did you run Linux?
>Do you guys have any ideas?
As the first step to optimize battery life, you need to
make sure S3 works, then compare the battery
life in S3.
Thanks,
Luming
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Centrino question
[not found] ` <3ACA40606221794F80A5670F0AF15F84046AA243-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2004-05-22 0:56 ` Cyril Wattebled
[not found] ` <20040522005658.640e1d91.neurowork-GANU6spQydw@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Cyril Wattebled @ 2004-05-22 0:56 UTC (permalink / raw)
To: Yu, Luming; +Cc: linux-acpi, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Fri, 21 May 2004 19:42:58
"Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
> How did you run windows ?
Well, the first thing to say is that, on Windows, when the laptop is unplugged,
the processor slows down to 200 mhz instead of 600 mhz when plugged. That
says a lot of heat and, I guess power. When I say up to 6h, I mean when the
laptop is idle of course.
> How did you run Linux?
Same here, I tried to let it idle and it hold 2h30 ..
> As the first step to optimize battery life, you need to
> make sure S3 works, then compare the battery
> life in S3.
Yeah, I've been trying for some time now to make it work.
It suspends very well but never ever woke up. Even worse, I can't even hard
reboot. I have to remove the battery and plug it back to make it work.
By the way, if anyone has an idea about what's wrong ... please share =]
> Thanks,
> Luming
No no no, thank you ! =]
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Centrino question
[not found] ` <20040522005658.640e1d91.neurowork-GANU6spQydw@public.gmane.org>
@ 2004-05-23 3:24 ` Len Brown
[not found] ` <1085282649.12352.739.camel-D2Zvc0uNKG8@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Len Brown @ 2004-05-23 3:24 UTC (permalink / raw)
To: Cyril Wattebled; +Cc: Luming Yu, linux-acpi, ACPI Developers
On Fri, 2004-05-21 at 20:56, Cyril Wattebled wrote:
> On Fri, 21 May 2004 19:42:58
> "Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
>
> > How did you run windows ?
> Well, the first thing to say is that, on Windows, when the laptop is unplugged,
> the processor slows down to 200 mhz instead of 600 mhz when plugged. That
> says a lot of heat and, I guess power. When I say up to 6h, I mean when the
> laptop is idle of course.
>
> > How did you run Linux?
>
> Same here, I tried to let it idle and it hold 2h30 ..
Linux slows the processor to 600MHz when Windows gets down to 200MHz?
How about the display -- is the brightness comparable on Linux vs
Windows?
thanks,
-Len
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Centrino question
[not found] ` <1085282649.12352.739.camel-D2Zvc0uNKG8@public.gmane.org>
@ 2004-05-23 13:21 ` Cyril Wattebled
[not found] ` <20040523132122.6ba363b4.neurowork-GANU6spQydw@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Cyril Wattebled @ 2004-05-23 13:21 UTC (permalink / raw)
To: Len Brown
Cc: luming.yu-ral2JQCrhuEAvxtiuMwx3w,
linux-acpi-ral2JQCrhuEAvxtiuMwx3w,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On 22 May 2004 23:24:10 -0400
Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
> On Fri, 2004-05-21 at 20:56, Cyril Wattebled wrote:
> > On Fri, 21 May 2004 19:42:58
> > "Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > How did you run windows ?
> > Well, the first thing to say is that, on Windows, when the laptop is
> > unplugged, the processor slows down to 200 mhz instead of 600 mhz when
> > plugged. That says a lot of heat and, I guess power. When I say up to 6h, I
> > mean when the laptop is idle of course.
> >
> > > How did you run Linux?
> >
> > Same here, I tried to let it idle and it hold 2h30 ..
>
> Linux slows the processor to 600MHz when Windows gets down to 200MHz?
Yes, I have already asked around why this happends. Windows slows the processor
down to 200 mhz when unplugged and down to 600 mhz when plugged. Windows
behaves just like linux with the AC power on but when on battery, it manages
to slow it down to 200mhz. This allows the laptop to last more than on linux
and also, the temperature of the overall laptop is cooler (which is really more
confortable).
It seems that Windows is using some kind of clock modulation along with the
enhanced speedstep. I'm not sure about that but, I was told that it should be
something like it. (cf cpufreq mailing list, thread called "Pentium M minimum
clock modulation").
> How about the display -- is the brightness comparable on Linux vs
> Windows?
yes, The screen brightness is set to the same value.
> thanks,
> -Len
Thanks,
--
Cyril Wattebled
neurowork-GANU6spQydw@public.gmane.org
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Centrino question
[not found] ` <20040523132122.6ba363b4.neurowork-GANU6spQydw@public.gmane.org>
@ 2004-05-24 16:11 ` Ow Mun Heng
[not found] ` <1085415078.12941.2.camel-C9mHTC703ZUb5wn6fCfWY+TW4wlIGRCZ@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Ow Mun Heng @ 2004-05-24 16:11 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Sun, 2004-05-23 at 06:21, Cyril Wattebled wrote:
> On 22 May 2004 23:24:10 -0400
> Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
> > Linux slows the processor to 600MHz when Windows gets down to 200MHz?
Len,
On my system, either 2.4 or 2.6 kernel, running on battery, cpufreq is at 600Mhz but
if i were running gkrellm, the x86info plugin will show that the cpufreq is actually fluactuating
between 99 to 200 mHz. I'm not sure where this plugin gets it's data but..
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Centrino question
[not found] ` <1085415078.12941.2.camel-C9mHTC703ZUb5wn6fCfWY+TW4wlIGRCZ@public.gmane.org>
@ 2004-05-25 7:27 ` Stefan Seyfried
[not found] ` <20040525072725.GA12282-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Seyfried @ 2004-05-25 7:27 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Mon, May 24, 2004 at 09:11:18AM -0700, Ow Mun Heng wrote:
> On Sun, 2004-05-23 at 06:21, Cyril Wattebled wrote:
> > On 22 May 2004 23:24:10 -0400
> > Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
> > > Linux slows the processor to 600MHz when Windows gets down to 200MHz?
>
> Len,
>
> On my system, either 2.4 or 2.6 kernel, running on battery, cpufreq is at 600Mhz but
> if i were running gkrellm, the x86info plugin will show that the cpufreq is actually fluactuating
> between 99 to 200 mHz. I'm not sure where this plugin gets it's data but..
I am quite sure that this is due to the tool you are using and due to C3 usage.
I don't know about the gkrellm x86info plugin, but the suse 9.1 powersaved
has a function to get the "real" CPU speed. It goes something like this:
float getRealProcessorSpeed() {
/* get this function in cached memory */
gettimeofday(&tvstart, NULL);
__asm__ volatile ("rdtsc" : "=A" (x));
cycles[0] = x;
gettimeofday(&tvstart, NULL);
/* we don't trust that this is any specific length of time */
sleep_left = sleep(1);
if (sleep_left || errno == EINTR)
return -1.0;
__asm__ volatile ("rdtsc" : "=A" (x));
cycles[1] = x;
gettimeofday(&tvstop, NULL);
microseconds = ((tvstop.tv_sec-tvstart.tv_sec)*1000000) +
(tvstop.tv_usec-tvstart.tv_usec);
ret = (float)(cycles[1]-cycles[0])/microseconds;
return ret;
}
There is of course some more checking around, it is only working on i386,
not on ia64. This shows me:
seife-4N56LNXDvWs@public.gmane.org:~> powersave -r
82.559082 MHz
but from /sys/.../scaling_setspeed i see that my cpu is running on 600mhz.
seife-4N56LNXDvWs@public.gmane.org:~> cat /proc/acpi/processor/CPU0/power
active state: C3
default state: C1
bus master activity: 00000000
states:
C1: promotion[C2] demotion[--] latency[000] usage[00020000]
C2: promotion[C3] demotion[C1] latency[002] usage[00737909]
*C3: promotion[--] demotion[C2] latency[205] usage[35772579]
if i force C2 state (by plugging in a usb mouse or playing sound), it shows
the frequency correct:
seife-4N56LNXDvWs@public.gmane.org:~> powersave -r
598.058594 MHz
seife-4N56LNXDvWs@public.gmane.org:~> cat /proc/acpi/processor/CPU0/power
active state: C2
default state: C1
bus master activity: ffffffff
states:
C1: promotion[C2] demotion[--] latency[000] usage[00020850]
*C2: promotion[C3] demotion[C1] latency[002] usage[00770669]
C3: promotion[--] demotion[C2] latency[205] usage[35825285]
So the effects you are seeing are clearly related to a tool that is measuring
wrong.
--
Stefan Seyfried
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Centrino question
[not found] ` <20040525072725.GA12282-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
@ 2004-05-27 6:13 ` Len Brown
[not found] ` <1085638405.17692.59.camel-D2Zvc0uNKG8@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Len Brown @ 2004-05-27 6:13 UTC (permalink / raw)
To: Stefan Seyfried; +Cc: ACPI Developers
Stefan
The LAPIC TSC is not reliable when C3 runs.
Indeed, we need to either disable the TSC if C3 is enabled,
or disabled C3 if the TSC is used.
-Len
http://bugme.osdl.org/show_bug.cgi?id=2560
On Tue, 2004-05-25 at 03:27, Stefan Seyfried wrote:
> On Mon, May 24, 2004 at 09:11:18AM -0700, Ow Mun Heng wrote:
> > On Sun, 2004-05-23 at 06:21, Cyril Wattebled wrote:
> > > On 22 May 2004 23:24:10 -0400
> > > Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
> > > > Linux slows the processor to 600MHz when Windows gets down to 200MHz?
> >
> > Len,
> >
> > On my system, either 2.4 or 2.6 kernel, running on battery, cpufreq is at 600Mhz but
> > if i were running gkrellm, the x86info plugin will show that the cpufreq is actually fluactuating
> > between 99 to 200 mHz. I'm not sure where this plugin gets it's data but..
>
> I am quite sure that this is due to the tool you are using and due to C3 usage.
> I don't know about the gkrellm x86info plugin, but the suse 9.1 powersaved
> has a function to get the "real" CPU speed. It goes something like this:
>
> float getRealProcessorSpeed() {
>
> /* get this function in cached memory */
> gettimeofday(&tvstart, NULL);
> __asm__ volatile ("rdtsc" : "=A" (x));
> cycles[0] = x;
> gettimeofday(&tvstart, NULL);
>
> /* we don't trust that this is any specific length of time */
> sleep_left = sleep(1);
> if (sleep_left || errno == EINTR)
> return -1.0;
> __asm__ volatile ("rdtsc" : "=A" (x));
> cycles[1] = x;
> gettimeofday(&tvstop, NULL);
> microseconds = ((tvstop.tv_sec-tvstart.tv_sec)*1000000) +
> (tvstop.tv_usec-tvstart.tv_usec);
>
> ret = (float)(cycles[1]-cycles[0])/microseconds;
> return ret;
> }
>
> There is of course some more checking around, it is only working on i386,
> not on ia64. This shows me:
>
> seife-4N56LNXDvWs@public.gmane.org:~> powersave -r
> 82.559082 MHz
>
> but from /sys/.../scaling_setspeed i see that my cpu is running on 600mhz.
>
> seife-4N56LNXDvWs@public.gmane.org:~> cat /proc/acpi/processor/CPU0/power
> active state: C3
> default state: C1
> bus master activity: 00000000
> states:
> C1: promotion[C2] demotion[--] latency[000] usage[00020000]
> C2: promotion[C3] demotion[C1] latency[002] usage[00737909]
> *C3: promotion[--] demotion[C2] latency[205] usage[35772579]
>
> if i force C2 state (by plugging in a usb mouse or playing sound), it shows
> the frequency correct:
>
> seife-4N56LNXDvWs@public.gmane.org:~> powersave -r
> 598.058594 MHz
>
> seife-4N56LNXDvWs@public.gmane.org:~> cat /proc/acpi/processor/CPU0/power
> active state: C2
> default state: C1
> bus master activity: ffffffff
> states:
> C1: promotion[C2] demotion[--] latency[000] usage[00020850]
> *C2: promotion[C3] demotion[C1] latency[002] usage[00770669]
> C3: promotion[--] demotion[C2] latency[205] usage[35825285]
>
> So the effects you are seeing are clearly related to a tool that is measuring
> wrong.
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Centrino question
[not found] ` <1085638405.17692.59.camel-D2Zvc0uNKG8@public.gmane.org>
@ 2004-05-27 18:44 ` Stefan Seyfried
0 siblings, 0 replies; 8+ messages in thread
From: Stefan Seyfried @ 2004-05-27 18:44 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Thu, May 27, 2004 at 02:13:25AM -0400, Len Brown wrote:
> Stefan
> The LAPIC TSC is not reliable when C3 runs.
Yes, i guessed something like that. What i wanted to point out is, that
tools to determine the "real" CPU frequency, which are using tsc, are
not reliable at all.
--
Stefan Seyfried
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-05-27 18:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-21 11:42 Centrino question Yu, Luming
[not found] ` <3ACA40606221794F80A5670F0AF15F84046AA243-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-05-22 0:56 ` Cyril Wattebled
[not found] ` <20040522005658.640e1d91.neurowork-GANU6spQydw@public.gmane.org>
2004-05-23 3:24 ` Len Brown
[not found] ` <1085282649.12352.739.camel-D2Zvc0uNKG8@public.gmane.org>
2004-05-23 13:21 ` Cyril Wattebled
[not found] ` <20040523132122.6ba363b4.neurowork-GANU6spQydw@public.gmane.org>
2004-05-24 16:11 ` Ow Mun Heng
[not found] ` <1085415078.12941.2.camel-C9mHTC703ZUb5wn6fCfWY+TW4wlIGRCZ@public.gmane.org>
2004-05-25 7:27 ` Stefan Seyfried
[not found] ` <20040525072725.GA12282-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2004-05-27 6:13 ` Len Brown
[not found] ` <1085638405.17692.59.camel-D2Zvc0uNKG8@public.gmane.org>
2004-05-27 18:44 ` Stefan Seyfried
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox