User:Hlangos: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== System Load ==

=== Comparison ===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 44: Line 47:
|}
|}


=== Detailed powertop measurements ===


More details:
More details:
Line 59: Line 63:




MSI DigiVOX mini II rev.3
==== MSI DigiVOX mini II rev.3 ====

Compiled and installed according to the instructions on [[MSI_DigiVox_mini_II_V3.0]].

The device has a hardware PID filter, but the maximum block size for transfers over USB seems to be
limited to 512.

<pre>
<pre>


Line 163: Line 173:




Fujitsu-Siemens DVB-T Mobile TV Tuner
==== Fujitsu-Siemens DVB-T Mobile TV Tuner ====

(doesn't have a hardware PID filter)
It doesn't have a hardware PID filter but uses 4096 byte bulk transfers over USB. Thus has less USB protocol overhead.

<pre>
<pre>
--------------------------- without remote, without pid filter
--------------------------- without remote, without pid filter
Line 212: Line 224:




Toshiba USB DVB-T TV PX1211E-1TVD
==== Toshiba USB DVB-T TV PX1211E-1TVD ====

This device has a hardware PID filter and uses 4096 Byte bulk transfers.


<pre>
<pre>
Line 324: Line 338:
</pre>
</pre>


SinoVideo 3420B
==== SinoVideo 3420B ====

The name and number schema seems a little intransparent for the whole family of devices. But they are cheap as chips. I picked up mine new via ebay from a Chinese shop for less than 6 Euros (+PP), including remote and antenna.




Line 335: Line 351:
[1217714.601896] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[1217714.601896] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
</pre>
</pre>

Without any driver the device is already recognized as keyboard.
Without any driver the device is already recognized as keyboard.

<pre>
<pre>
[1220628.851806] dvb-usb: found a 'E3C EC168 DVB-T USB2.0 reference design' in cold state, will try to load a firmware
[1220628.851806] dvb-usb: found a 'E3C EC168 DVB-T USB2.0 reference design' in cold state, will try to load a firmware
Line 349: Line 365:
[1220629.561204] usbcore: registered new interface driver dvb_usb_ec168
[1220629.561204] usbcore: registered new interface driver dvb_usb_ec168
</pre>
</pre>
After compiling the ec168 driver as described in <ref>[https://www.dealextreme.com/forums/Default.dx/sku.8325~threadid.278942 a possible way to get the ec168 working]</ref> the device is registered by the dvb_usb framework.
After compiling the ec168 driver as described in [https://www.dealextreme.com/forums/Default.dx/sku.8325~threadid.278942 a possible way to get the ec168 working] the device is registered by the dvb_usb framework.


Having it recognized as usb keyboard causes additional 10 wakups per second and an idle load in C0 of 0.4% i'll try to get rid of that before doing any load tests.
Having it recognized as usb keyboard causes additional 10 wakups per second and an idle load in C0 of 0.4%. I unloaded the '''usbhid''' module to have the same baseline
for my load tests.

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

Cn Avg residency P-states (frequencies)
C0 (cpu running) ( 2.3%) 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 7.4ms (97.7%)

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

Top causes for wakeups:
51.2% (135.7) USB device 5-1 : TvTUNER (SKGZ)
42.7% (113.1) <interrupt> : uhci_hcd:usb1, HDA Intel, ehci_hcd:usb5
2.7% ( 7.1) zap : schedule_timeout (process_timeout)
0.8% ( 2.0) xfsaild : schedule_timeout (process_timeout)
0.7% ( 1.7) xfsbufd : schedule_timeout (process_timeout)
0.4% ( 1.0) ifconfig : b44_open (b44_timer)
0.4% ( 1.0) zap : do_nanosleep (hrtimer_wakeup)
0.2% ( 0.6) kdvb-ad-0-fe-0 : schedule_timeout (process_timeout)


======================================= running vdr

</pre>

Revision as of 08:35, 6 April 2009

System Load

Comparison

Device MSI DigiVOX
mini II V3.0
Fujitsu-Siemens DVB-T
Mobile TV Tuner
Toshiba USB DVB-T
Tuner PX1211E-1TVD
Sino Video SV3420B
Picture
Dvb-t-usb-msi-digivox-ii-rev3-001.jpg
todo
Dvb-t-usb-toshiba-px1211e-1tvd-001.jpg
Dvb-t-usb-sinovideo-sv3420b-005.jpg
driver af9015 vp7045 dib3000mc ec168
zap w/o
pid filter
30.2 5.8 5.8 todo
vdr w/o
pid filter
37.0 14.8 14.4 todo
zap with
pid filter
1.1 - 0.5 todo
vdr with
pid filter
18.7 - 9.7 todo

Detailed powertop measurements

More details:

I ran zap and vdr on a system that is idle. Without zap or vdr the system does about 5 wakups per second and spends about 0.1% of its time in C0 (cpu running).

Polling of the remote is disabled using the module option disable_rc_polling=1 for the dvb_usb module. The hardware PID filter is enabled with the option force_pid_filter_usage=1 for the same module.

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.


MSI DigiVOX mini II rev.3

Compiled and installed according to the instructions on MSI_DigiVox_mini_II_V3.0.

The device has a hardware PID filter, but the maximum block size for transfers over USB seems to be limited to 512.


#####################################################
==================== 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)

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


Fujitsu-Siemens DVB-T Mobile TV Tuner

It doesn't have a hardware PID filter but uses 4096 byte bulk transfers over USB. Thus has less USB protocol overhead.

--------------------------- without remote, without pid filter
------------------ zap
     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 5.7%)          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                2.0ms (94.3%)

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

Top causes for wakeups:
  55.7% (592.2)   USB device  5-1 : DVB-T 2 (Afatech)
  42.9% (455.9)       <interrupt> : uhci_hcd:usb1, ehci_hcd:usb5, HDA Intel
   0.5% (  5.7)               zap : schedule_timeout (process_timeout)
   0.2% (  2.4)    kdvb-ad-0-fe-0 : schedule_timeout (process_timeout)
   0.2% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.2% (  1.6)           xfsbufd : schedule_timeout (process_timeout)
   0.1% (  1.0)               zap : do_nanosleep (hrtimer_wakeup)

-------------------- vdr
     PowerTOP version 1.10      (C) 2007 Intel Corporation

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

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

Top causes for wakeups:
  45.1% (540.5)   USB device  5-1 : DVB-T 2 (Afatech)
  34.9% (418.2)       <interrupt> : uhci_hcd:usb1, ehci_hcd:usb5, HDA Intel
  18.4% (220.8)               vdr : futex_wait (hrtimer_wakeup)


--------------------------


Toshiba USB DVB-T TV PX1211E-1TVD

This device has a hardware PID filter and uses 4096 Byte bulk transfers.

[329345.857835] dvb-usb: found a 'LITE-ON USB2.0 DVB-T Tuner' in warm state.
[329345.859820] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[329345.862374] DVB: registering new adapter (LITE-ON USB2.0 DVB-T Tuner)
[329345.875554] DVB: registering adapter 0 frontend 0 (DiBcom 3000MC/P)...
[329345.898401] MT2060: successfully identified (IF1 = 1220)
[329346.390290] dvb-usb: LITE-ON USB2.0 DVB-T Tuner successfully initialized and connected.
[329346.390729] usbcore: registered new interface driver dvb_usb_dibusb_mc


===================================== without pid filter
============ zap
     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 5.8%)          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                2.0ms (94.2%)

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

Top causes for wakeups:
  55.9% (611.8)   USB device  5-1 : DVB-T 2 (Afatech) 
  42.9% (469.2)       <interrupt> : uhci_hcd:usb1, HDA Intel, ehci_hcd:usb5 
   0.5% (  5.5)               zap : schedule_timeout (process_timeout)
   0.2% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.1% (  1.6)           xfsbufd : schedule_timeout (process_timeout)
   0.1% (  1.0)          ifconfig : b44_open (b44_timer)

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

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

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

Top causes for wakeups:
  45.5% (553.0)   USB device  5-1 : DVB-T 2 (Afatech) 
  35.0% (425.9)       <interrupt> : uhci_hcd:usb1, HDA Intel, ehci_hcd:usb5 
  18.2% (221.0)               vdr : futex_wait (hrtimer_wakeup) 
   0.5% (  6.0)               vdr : schedule_timeout (process_timeout)
   0.2% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.1% (  1.6)           xfsbufd : schedule_timeout (process_timeout)
   0.1% (  1.0)              tail : do_nanosleep (hrtimer_wakeup)
   0.1% (  1.0)               vdr : do_nanosleep (hrtimer_wakeup)
   0.1% (  1.0)          ifconfig : b44_open (b44_timer)
   0.1% (  0.7)               vdr : hrtick_set (hrtick)


=================================with pid filter
==================== zap
     PowerTOP version 1.10      (C) 2007 Intel Corporation

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 0.5%)          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               36.1ms (99.5%)

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

Top causes for wakeups:
  31.2% ( 10.0)           syslogd : ehci_irq (ehci_watchdog) 
  29.0% (  9.3)               zap : schedule_timeout (process_timeout)
   8.7% (  2.8)       <interrupt> : uhci_hcd:usb1, HDA Intel, ehci_hcd:usb5
   6.2% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   5.8% (  1.9)   USB device  5-1 : DVB-T 2 (Afatech)
   5.3% (  1.7)           xfsbufd : schedule_timeout (process_timeout)
   3.1% (  1.0)          ifconfig : b44_open (b44_timer)
   3.1% (  1.0)               zap : do_nanosleep (hrtimer_wakeup)

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

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 9.7%)          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                2.7ms (90.2%)

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

Top causes for wakeups:
  43.0% (221.0)               vdr : futex_wait (hrtimer_wakeup) 
  28.0% (144.0)   USB device  5-1 : DVB-T 2 (Afatech) 
  24.7% (126.9)       <interrupt> : uhci_hcd:usb1, HDA Intel, ehci_hcd:usb5 
   1.3% (  6.9)           syslogd : ehci_irq (ehci_watchdog)
   1.2% (  6.0)               vdr : schedule_timeout (process_timeout)
   0.4% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.3% (  1.6)           xfsbufd : schedule_timeout (process_timeout)
   0.2% (  1.0)               vdr : do_nanosleep (hrtimer_wakeup)
   0.2% (  1.0)          ifconfig : b44_open (b44_timer)
   0.1% (  0.6)    kdvb-ad-0-fe-0 : schedule_timeout (process_timeout)
=====================================

SinoVideo 3420B

The name and number schema seems a little intransparent for the whole family of devices. But they are cheap as chips. I picked up mine new via ebay from a Chinese shop for less than 6 Euros (+PP), including remote and antenna.


[1217714.429823] usb 5-1: new high speed USB device using ehci_hcd and address 11
[1217714.561392] usb 5-1: configuration #1 chosen from 1 choice
[1217714.572099] input: HID 18b4:1689 as /class/input/input9
[1217714.600549] input,hidraw0: USB HID v1.11 Keyboard [HID 18b4:1689] on usb-0000:00:1d.7-1
[1217714.601760] usb 5-1: New USB device found, idVendor=18b4, idProduct=1689
[1217714.601896] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

Without any driver the device is already recognized as keyboard.

[1220628.851806] dvb-usb: found a 'E3C EC168 DVB-T USB2.0 reference design' in cold state, will try to load a firmware
[1220628.852984] firmware: requesting dvb-usb-ec168.fw
[1220629.527759] dvb-usb: downloading firmware from file 'dvb-usb-ec168.fw'
[1220629.551527] dvb-usb: found a 'E3C EC168 DVB-T USB2.0 reference design' in warm state.
[1220629.552845] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[1220629.554959] DVB: registering new adapter (E3C EC168 DVB-T USB2.0 reference design)
[1220629.558609] DVB: registering adapter 0 frontend 0 (E3C EC100 DVB-T)...
[1220629.559342] MXL5005S: Attached at address 0xc6
[1220629.560823] dvb-usb: E3C EC168 DVB-T USB2.0 reference design successfully initialized and connected.
[1220629.561204] usbcore: registered new interface driver dvb_usb_ec168

After compiling the ec168 driver as described in a possible way to get the ec168 working the device is registered by the dvb_usb framework.

Having it recognized as usb keyboard causes additional 10 wakups per second and an idle load in C0 of 0.4%. I unloaded the usbhid module to have the same baseline for my load tests.

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

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 2.3%)          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                7.4ms (97.7%)

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

Top causes for wakeups:
  51.2% (135.7)   USB device  5-1 : TvTUNER (SKGZ)
  42.7% (113.1)       <interrupt> : uhci_hcd:usb1, HDA Intel, ehci_hcd:usb5
   2.7% (  7.1)               zap : schedule_timeout (process_timeout)
   0.8% (  2.0)           xfsaild : schedule_timeout (process_timeout)
   0.7% (  1.7)           xfsbufd : schedule_timeout (process_timeout)
   0.4% (  1.0)          ifconfig : b44_open (b44_timer)
   0.4% (  1.0)               zap : do_nanosleep (hrtimer_wakeup)
   0.2% (  0.6)    kdvb-ad-0-fe-0 : schedule_timeout (process_timeout)


======================================= running vdr