Re: power consumption, powertop and wakups per second with a af9015 device, vp7045, and various plugins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Moikka Antti,

> vp7045 does not have PID-filters.
> I think difference comes from different USB-transfer settings. vp7045  
> uses BULK packet size 4096 and af9015 uses BULK packet size 512 for  
> USB2.0 and BULK packet size 64 for USB1.1. Therefore af9015 sends 8  
> times more packets than vp7045 (I guess).
>
> One thing more you can test - use USB1.1. To force USB1.1 remove USB2.0  
> driver by rmmod ehci_hcd. After that plug af9015 stick and look from  
> logs it detects USB1.1 and uses PID-filters. af9015 driver now uses  
> smaller packet size for transfer that can change load (bigger?).

without ehci_usb i get this on loading af9015-dvb-usb :

[211324.238031] ehci_hcd 0000:00:1d.7: remove, state 1
[211324.238227] usb usb5: USB disconnect, address 1
[211324.238340] usb 5-1: USB disconnect, address 7
[211324.245523] ehci_hcd 0000:00:1d.7: USB bus 5 deregistered
[211324.245837] ACPI: PCI interrupt for device 0000:00:1d.7 disabled
[211324.524157] usb 1-1: new full speed USB device using uhci_hcd and address 4
[211324.702426] usb 1-1: configuration #1 chosen from 1 choice
[211324.708807] usb 1-1: New USB device found, idVendor=15a4, idProduct=9016
[211324.708965] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[211324.709152] usb 1-1: Product: DVB-T 2
[211324.709275] usb 1-1: Manufacturer: Afatech
[211324.709381] usb 1-1: SerialNumber: 010101010600001
[211325.692779] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
[211325.692779] dvb-usb: will use the device's hardware PID filter (table count: 32).
[211325.697043] DVB: registering new adapter (Afatech AF9015 DVB-T USB2.0 stick)
[211326.428116] af9013: firmware version:4.95.0
[211326.448011] DVB: registering adapter 0 frontend 0 (Afatech AF9013 DVB-T)...
[211326.448011] tda18271 0-00c0: creating new instance
[211326.455236] TDA18271HD/C2 detected @ 0-00c0
[211326.890065] dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
[211326.933817] usbcore: registered new interface driver dvb_usb_af9015


loading the module seems to cause polling each 250ms:
=====================================
     PowerTOP version 1.10      (C) 2007 Intel Corporation                                                                                                           

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 0.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.0ms ( 0.0%)          188 Mhz   100.0%
C3              118.1ms (99.8%)

Wakeups-from-idle per second :  8.4     interval: 20.0s                                                                                                              
no ACPI power usage estimate available

Top causes for wakeups:
  37.0% (  4.0)   <kernel module> : usb_hcd_poll_rh_status (rh_timer_func)
  18.5% (  2.0)           xfsaild : schedule_timeout (process_timeout)
  15.7% (  1.7)           xfsbufd : schedule_timeout (process_timeout)
   9.3% (  1.0)          ifconfig : b44_open (b44_timer)
====================================


running zap causes a load between 1.0 and 1.4%

==================================== running zap
     PowerTOP version 1.10      (C) 2007 Intel Corporation                                                                                                           

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 1.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.1ms ( 0.0%)          188 Mhz   100.0%
C3               14.5ms (99.0%)

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

Top causes for wakeups:
  55.5% ( 84.6)   USB device  1-1 : DVB-T 2 (Afatech) 
  32.3% ( 49.2)       <interrupt> : uhci_hcd:usb1, HDA Intel 
   3.6% (  5.5)               zap : schedule_timeout (process_timeout)
   2.7% (  4.1)   <kernel module> : usb_hcd_poll_rh_status (rh_timer_func)
   1.3% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   1.1% (  1.7)           xfsbufd : schedule_timeout (process_timeout)
   0.7% (  1.1)    kdvb-ad-0-fe-0 : schedule_timeout (process_timeout)
   0.7% (  1.0)               zap : do_nanosleep (hrtimer_wakeup)
==========================================


and here's the load with idle vdr. 

======================================== running vdr
     PowerTOP version 1.10      (C) 2007 Intel Corporation                                                                                                           

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        (32.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.1ms ( 0.3%)          188 Mhz   100.0%
C3                0.7ms (67.6%)

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

Top causes for wakeups:
  86.4% (7942.8)   USB device  1-1 : DVB-T 2 (Afatech) 
  10.9% (999.8)       <interrupt> : uhci_hcd:usb1, HDA Intel 
   2.4% (218.0)               vdr : futex_wait (hrtimer_wakeup) 
   0.1% (  6.4)       <interrupt> : ide0
   0.1% (  6.3)               vdr : schedule_timeout (process_timeout)
   0.0% (  4.0)   <kernel module> : usb_hcd_poll_rh_status (rh_timer_func)
   0.0% (  2.4)               vdr : hrtick_set (hrtick)
   0.0% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.0% (  1.8)           xfsbufd : schedule_timeout (process_timeout)
===================================

seems you are right. The transfer with PID filter in usb 1.1 causes
about 30% load in contrast to 19% with usb 2.0

is there a way to increase the packet size for those bulk transfers? 
for usb 2.0? for 1.1?


cheers
-henrik


_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux