public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Corentin Chary <corentin.chary@gmail.com>
Cc: acpi4asus-user@lists.sourceforge.net, len.brown@intel.com,
	linux-kernel@vger.kernel.org,
	Alan Jenkins <sourcejedi.lkml@googlemail.com>
Subject: Re: [PATCH] eeepc-laptop: enable camera by default
Date: Fri, 05 Jun 2009 16:51:13 +0300	[thread overview]
Message-ID: <1244209873.23533.29.camel@penberg-laptop> (raw)
In-Reply-To: <71cd59b00906050602s5c9b9a31ne11b6aaf7546f58c@mail.gmail.com>

Hi Corentin,

On Fri, 2009-06-05 at 15:02 +0200, Corentin Chary wrote:
> > That said, I am more than happy to measure this but I need a little bit
> > more information to get started as I have never used powertop. So what
> > is it exactly you want me to do?
> 
> PowerTop (with a corretly configured kernel) will give you a power
> usage estimate.
> 
> CONFIG_NO_HZ=y
> CONFIG_TIMER_STATS=y
> CONFIG_DEBUG_KERNEL=y
> 
> For propers results, shutdown all services and just keep a shell
> (without X or network).
> You can also test that with and without the camera driver.

I did not see a power usage estimate. I am running PowerTOP 1.11 that
comes with Ubuntu 9.04. So I am not sure if what I did is what you
wanted me to do but I ran "powertop -t 60 -d" with camera enabled and
disabled and here are the results.

Also, when I run plain powertop, it keeps complaining that some USB
device causes wakeups (probably the camera?) and suggests suspending.
But doing that doesn't seem to help things.

			Pekka

Camera Disabled
---------------

$ powertop -t 60 -d

PowerTOP 1.11   (C) 2007, 2008 Intel Corporation 

Collecting data for 60 seconds 


Cn	          Avg residency
C0 (cpu running)        ( 0.0%)
polling		  0.0ms ( 0.0%)
C1		  0.0ms ( 0.0%)
C2		  0.9ms ( 0.0%)
C3		966.9ms (100.1%)
P-states (frequencies)
Wakeups-from-idle per second :  1.2	interval: 60.0s
no ACPI power usage estimate available
Top causes for wakeups:
  37.1% (  0.6)     <kernel core> : hrtimer_start (tick_sched_timer) 
  16.5% (  0.3)     <kernel core> : neigh_table_init_no_netlink (neigh_periodic_timer) 
  12.4% (  0.2)     <kernel core> : hrtimer_start_range_ns (tick_sched_timer) 
   8.2% (  0.1)       <interrupt> : acpi 
   6.2% (  0.1)     <kernel core> : sta_info_start (sta_info_cleanup) 
   4.1% (  0.1)       <interrupt> : ata_piix 
   4.1% (  0.1)     <kernel core> : page_writeback_init (wb_timer_fn) 
   4.1% (  0.1)          events/0 : queue_delayed_work (delayed_work_timer_fn) 
   1.0% (  0.0)       <interrupt> : PS/2 keyboard/mouse/touchpad 
   1.0% (  0.0)     <kernel core> : inet_initpeers (peer_check_expire) 
   1.0% (  0.0)     <kernel core> : queue_delayed_work (delayed_work_timer_fn) 
   1.0% (  0.0)       cifsoplockd : schedule_timeout (process_timeout) 
   1.0% (  0.0)           async/2 : scsi_request_fn (blk_rq_timed_out_timer) 
   1.0% (  0.0)        khungtaskd : schedule_timeout (process_timeout) 
   1.0% (  0.0)     <kernel core> : addrconf_verify (addrconf_verify) 

A USB device is active 100.0% of the time:
USB device  1-5 : UB6225 (ENE)

Recent USB suspend statistics
Active  Device name
100.0%	USB device  1-5 : UB6225 (ENE)
  0.0%	USB device usb5 : UHCI Host Controller (Linux 2.6.30-rc8-eee uhci_hcd)
  0.0%	USB device usb4 : UHCI Host Controller (Linux 2.6.30-rc8-eee uhci_hcd)
  0.0%	USB device usb3 : UHCI Host Controller (Linux 2.6.30-rc8-eee uhci_hcd)
  0.0%	USB device usb2 : UHCI Host Controller (Linux 2.6.30-rc8-eee uhci_hcd)
100.0%	USB device usb1 : EHCI Host Controller (Linux 2.6.30-rc8-eee ehci_hcd)

Camera Enabled
--------------

$ powertop -t 60 -d

PowerTOP 1.11   (C) 2007, 2008 Intel Corporation 

Collecting data for 60 seconds 


Cn	          Avg residency
C0 (cpu running)        ( 0.0%)
polling		  0.0ms ( 0.0%)
C1		  0.0ms ( 0.0%)
C2		  1.0ms ( 0.0%)
C3		 91.9ms (100.0%)
P-states (frequencies)
Wakeups-from-idle per second : 11.1	interval: 60.0s
no ACPI power usage estimate available
Top causes for wakeups:
  48.4% ( 10.6)     <kernel core> : hrtimer_start (tick_sched_timer) 
  45.7% ( 10.0)     <kernel core> : ehci_work (ehci_watchdog) 
   1.7% (  0.4)       <interrupt> : acpi 
   1.2% (  0.3)     <kernel core> : neigh_table_init_no_netlink (neigh_periodic_timer) 
   0.8% (  0.2)     <kernel core> : hrtimer_start_range_ns (tick_sched_timer) 
   0.6% (  0.1)       <interrupt> : ata_piix 
   0.5% (  0.1)     <kernel core> : sta_info_start (sta_info_cleanup) 
   0.3% (  0.1)          events/0 : queue_delayed_work (delayed_work_timer_fn) 
   0.3% (  0.1)     <kernel core> : page_writeback_init (wb_timer_fn) 
   0.1% (  0.0)       <interrupt> : PS/2 keyboard/mouse/touchpad 
   0.1% (  0.0)        khungtaskd : schedule_timeout (process_timeout) 
   0.1% (  0.0)     <kernel core> : hangcheck_init (hangcheck_fire) 
   0.1% (  0.0)     <kernel core> : addrconf_verify (addrconf_verify) 
   0.1% (  0.0)           pdflush : __make_request (blk_unplug_timeout) 
   0.1% (  0.0)           async/2 : scsi_request_fn (blk_rq_timed_out_timer) 
   0.1% (  0.0)       cifsoplockd : schedule_timeout (process_timeout) 
   0.1% (  0.0)     <kernel core> : queue_delayed_work (delayed_work_timer_fn) 

A USB device is active 100.0% of the time:
USB device  1-5 : UB6225 (ENE)

Suggestion: Enable USB autosuspend by pressing the U key or adding 
usbcore.autosuspend=1 to the kernel command line in the grub config

Recent USB suspend statistics
Active  Device name
100.0%	/sys/bus/usb/devices/1-8
100.0%	USB device  1-5 : UB6225 (ENE)
  0.0%	USB device usb5 : UHCI Host Controller (Linux 2.6.30-rc8-eee uhci_hcd)
  0.0%	USB device usb4 : UHCI Host Controller (Linux 2.6.30-rc8-eee uhci_hcd)
  0.0%	USB device usb3 : UHCI Host Controller (Linux 2.6.30-rc8-eee uhci_hcd)
  0.0%	USB device usb2 : UHCI Host Controller (Linux 2.6.30-rc8-eee uhci_hcd)
100.0%	USB device usb1 : EHCI Host Controller (Linux 2.6.30-rc8-eee ehci_hcd)

			Pekka


  parent reply	other threads:[~2009-06-05 13:51 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05  8:59 [PATCH] eeepc-laptop: enable camera by default Pekka J Enberg
2009-06-05 11:46 ` Corentin Chary
2009-06-05 12:44   ` Pekka Enberg
2009-06-05 13:02     ` Corentin Chary
2009-06-05 13:39       ` Alan Jenkins
2009-06-05 13:51       ` Pekka Enberg [this message]
2009-06-05 13:54         ` Pekka Enberg
2009-06-05 13:58         ` Corentin Chary
2009-06-05 14:38         ` Alan Jenkins
2009-06-05 14:50           ` Pekka Enberg
2009-06-05 14:55             ` Alan Jenkins
2009-06-05 15:08               ` Alan Jenkins
2009-06-05 15:14                 ` Pekka Enberg
2009-06-07 14:54                 ` Darren Salt
2009-06-07 15:41                   ` Alan Jenkins
2009-06-07 23:28                     ` Matthew Garrett
2009-06-08  3:03                       ` Alan Stern
2009-06-08  3:07                         ` Matthew Garrett
2009-06-08  3:10                           ` Alan Stern
2009-06-08 15:00                             ` Matthew Garrett
2009-06-08 20:44                               ` Alan Stern
2009-06-05 15:13               ` Alan Stern
2009-06-05 15:22                 ` Pekka Enberg
2009-06-05 21:01   ` Woody Suwalski
2009-06-06  7:12     ` Corentin Chary
2009-06-06  8:04       ` Alan Jenkins
2009-06-05 20:08 ` Andrew Morton
2009-06-06  7:25   ` Corentin Chary
2009-06-06  7:31     ` Andrew Morton
2009-06-06  7:52       ` Corentin Chary
2009-06-06  9:17         ` Pekka Enberg
2009-06-06 10:17           ` Corentin Chary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1244209873.23533.29.camel@penberg-laptop \
    --to=penberg@cs.helsinki.fi \
    --cc=acpi4asus-user@lists.sourceforge.net \
    --cc=corentin.chary@gmail.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sourcejedi.lkml@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox