[vdr] power consumption, powertop and wakups per second with a af9015 device, vp7045, and various plugins

Heinrich Langos henrik-vdr at prak.org
Mon Mar 23 22:18:48 CET 2009


On Mon, Mar 23, 2009 at 05:02:54PM +0200, Antti Palosaari wrote:
> Heinrich Langos wrote:
>> How about a module option to force usage of the PID filter?
>> Should be easy to add if the code for enabling it on demand is aready  
>> there.
>
> It is there.
> modinfo dvb-usb

Wow! 

I tried it and using the pid filter greatly reduces system load!

In short it cuts minimal system load for transfeing a tv 
program from 30% to 1.3% !!! (Yes, I think this deserves 
three exclamation marks.)

with vdr it reduces the idle load from 37% to 19% (and yes, 
i waited about a minute after starting vdr to let it settle)

below are some cut'n paste numbers from powertop for the 
curious.

now, are there any negative side effects to enabling the 
pid filter that one has to expect?

is it still possible to record two stations that are send
over the same OTA channel? 

if yes, can reprogramming of the pid filter cause lost 
packages for a already running recording? 

cheers
-henrik


More details: 
i ran zap and vdr on a system that is idle and without either 
does about 5 wakups per second. polling of the remote is disabled.
vdr is the one from e-tobi.net/vdr-experimental lenny vdr-extensions
here's the list of plugins that were enabled during the test:
| Searching for plugins (VDR 1.6.0-2/1.6.0) (cache hit): epgsearch quickepgsearch conflictcheckonly live epgsearchonly ffnetdev streamdev-server.



#####################################################
==================== remote disabled, pid filter disabled
------------------ running zap


     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        (30.2%)          750 Mhz     0.0%
polling           0.0ms ( 0.0%)          563 Mhz     0.0%
C1 halt           0.0ms ( 0.0%)          375 Mhz     0.0%
C2                0.4ms (49.7%)          188 Mhz   100.0%
C3                0.1ms (20.1%)

Wakeups-from-idle per second : 3205.5   interval: 10.0s
no ACPI power usage estimate available

Top causes for wakeups:
  59.6% (4761.9)   USB device  5-1 : DVB-T 2 (Afatech)
  40.2% (3206.1)       <interrupt> : uhci_hcd:usb1, ehci_hcd:usb5, HDA Intel
   0.1% (  5.7)               zap : schedule_timeout (process_timeout)
   0.0% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.0% (  1.8)           xfsbufd : schedule_timeout (process_timeout)

------------------- running vdr

     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        (37.0%)          750 Mhz     0.0%
polling           0.0ms ( 0.0%)          563 Mhz     0.0%
C1 halt           0.0ms ( 0.0%)          375 Mhz     0.0%
C2                0.4ms (21.2%)          188 Mhz   100.0%
C3                0.2ms (41.8%)

Wakeups-from-idle per second : 2507.8   interval: 10.0s
no ACPI power usage estimate available

Top causes for wakeups:
  58.9% (4300.1)   USB device  5-1 : DVB-T 2 (Afatech)
  37.6% (2744.9)       <interrupt> : uhci_hcd:usb1, ehci_hcd:usb5, HDA Intel
   3.0% (220.7)               vdr : futex_wait (hrtimer_wakeup)
   0.2% ( 12.9)       <interrupt> : rtc0
   0.1% (  6.0)               vdr : schedule_timeout (process_timeout)
   0.1% (  5.3)               vdr : hrtick_set (hrtick)
   0.0% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.0% (  1.6)           xfsbufd : schedule_timeout (process_timeout)

#######################################

------------------ remote disabled, pid filter enabled:
------------------ running zap

     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 1.1%)          750 Mhz     0.0%
polling           0.0ms ( 0.0%)          563 Mhz     0.0%
C1 halt           0.0ms ( 0.0%)          375 Mhz     0.0%
C2                0.0ms ( 0.0%)          188 Mhz   100.0%
C3               10.6ms (98.9%)

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

Top causes for wakeups:
  50.3% ( 72.9)       <interrupt> : uhci_hcd:usb1, ehci_hcd:usb5, HDA Intel
  34.3% ( 49.7)   USB device  5-1 : DVB-T 2 (Afatech)
   5.7% (  8.2)     <kernel core> : ehci_work (ehci_watchdog)
   3.8% (  5.5)               zap : schedule_timeout (process_timeout)
   1.4% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   1.1% (  1.6)           xfsbufd : schedule_timeout (process_timeout)

------------------ running vdr

     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        (18.7%)          750 Mhz     0.0%
polling           0.1ms ( 0.0%)          563 Mhz     0.0%
C1 halt           0.0ms ( 0.0%)          375 Mhz     0.0%
C2                0.1ms ( 0.3%)          188 Mhz   100.0%
C3                0.8ms (81.0%)

Wakeups-from-idle per second : 1044.2   interval: 10.0s
no ACPI power usage estimate available

Top causes for wakeups:
  49.4% (1137.5)   USB device  5-1 : DVB-T 2 (Afatech)
  40.1% (922.4)       <interrupt> : uhci_hcd:usb1, ehci_hcd:usb5, HDA Intel
   9.6% (220.8)               vdr : futex_wait (hrtimer_wakeup)
   0.3% (  6.2)               vdr : schedule_timeout (process_timeout)
   0.2% (  5.6)     <kernel core> : ehci_work (ehci_watchdog)
   0.1% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.1% (  1.6)           xfsbufd : schedule_timeout (process_timeout)
   0.0% (  1.0)               vdr : do_nanosleep (hrtimer_wakeup)

#########################################




More information about the vdr mailing list