[ltp] disk-protect patch in linux kernel 2.6.28 => hdapsd works out of the box

Martin Steigerwald linux-thinkpad@linux-thinkpad.org
Tue, 30 Dec 2008 15:55:02 +0100


--nextPart1879820.ZBn4jzziHa
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Am Montag 29 Dezember 2008 schrieb Micha Feigin:
> On Mon, 29 Dec 2008 17:50:00 +0100
>
> Martin Steigerwald <Martin@lichtvoll.de> wrote:
> > Am Montag 29 Dezember 2008 schrieb Chris Penn:
> > > Any noticeable loss of battery life  when running this version?
>
> Didn't test battery life but powertop show hdaps causing about 50
> wakeups per second which probably affects battery life, but not sure
> how much.

Hmmm, same here.

     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 3.6%)         1.80 Ghz     0.0%
polling           0.0ms ( 0.0%)         1.60 Ghz     0.0%
C1 halt           0.0ms ( 0.0%)         1400 Mhz     0.0%
C2                6.2ms (96.4%)          600 Mhz   100.0%
C3                0.0ms ( 0.0%)

Wakeups-from-idle per second : 156.2    interval: 15.0s
no ACPI power usage estimate available

Top causes for wakeups:3,6% of CPU running at 600 of 1800 MHz isn't that=20
much. It goes down to about 3% when I stop hdapsd
  33.8% ( 50.0)            hdapsd : hdaps_mousedev_open=20
(hdaps_mousedev_poll)
  22.9% ( 33.9)     <kernel core> : hrtimer_start (tick_sched_timer)


3,6% of CPU running at 600 of 1800 MHz isn't that much. It goes down to=20
about 3% when I stop hdapsd:

     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 3.0%)         1.80 Ghz     0.0%
polling           0.0ms ( 0.0%)         1.60 Ghz     0.0%
C1 halt           0.0ms ( 0.0%)         1400 Mhz     0.0%
C2                7.4ms (97.0%)          600 Mhz   100.0%
C3                0.0ms ( 0.0%)

Wakeups-from-idle per second : 131.6    interval: 15.0s
no ACPI power usage estimate available

Top causes for wakeups:
  18.9% ( 12.2)              kded : schedule_hrtimeout_range=20
(hrtimer_wakeup)
  16.7% ( 10.8)       <interrupt> : ata_piix
  12.4% (  8.0)     <kernel core> : hrtimer_start (tick_sched_timer)
  12.4% (  8.0)   <kernel module> : usb_hcd_poll_rh_status (rh_timer_func)

But it also has about 25 wakeups per second less and that might make a=20
difference. One can stop hdapsd when on battery, but usually especially=20
then its important.

Well that might the price to pay for the functionality. I guess hdapsd has=
=20
to poll quite regularily. Would be nice if it could be done via=20
interrupt.

Ciao,
=2D-=20
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

--nextPart1879820.ZBn4jzziHa
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAklaNkYACgkQmRvqrKWZhMd7YgCglIWYyCD8/IQT+Fm+NBOkA+x+
jR0AnRsxXVvPvzxtLWlB03OjxGEjpHde
=rXAb
-----END PGP SIGNATURE-----

--nextPart1879820.ZBn4jzziHa--