![]() |
2008-01-08
, 23:16
|
Posts: 503 |
Thanked: 267 times |
Joined on Jul 2006
@ Helsinki
|
#61
|
![]() |
2008-01-09
, 16:59
|
Posts: 6 |
Thanked: 0 times |
Joined on Mar 2006
|
#62
|
Could anyone test A2DP with oprofile and identify/confirm what exactly loads cpu so high? It is quite easy to setup oprofile in OS2008 by following the instructions from http://maemo.org/development/tools/doc/oprofile
![]() |
2008-01-10
, 00:06
|
Posts: 503 |
Thanked: 267 times |
Joined on Jul 2006
@ Helsinki
|
#63
|
As far as CPU utilization, I suspect it's due to cache misses. A pxa270 with identical size cache and association size 32 runs the encoding at about 4% of the cpu; however the 2420, with its 4 associations and similar speed needs around 50%. There is a section of code that moves memory around on every pass so we'll target that first.
# time ./sbcenc test.snd > /dev/null real 0m 24.57s user 0m 23.23s sys 0m 0.89s
opreport -l ./sbcenc CPU: ARM V6 PMU, speed 0 MHz (estimated) Counted CPU_CYCLES events (clock cycles counter) with a unit mask of 0x00 (No unit mask) count 100000 samples % symbol name 42423 48.6681 _sbc_analyze_eight 23466 26.9204 sbc_pack_frame 14057 16.1263 sbc_analyze_eight 4017 4.6083 sbc_encode 2492 2.8588 sbc_calculate_bits 414 0.4749 sbc_analyze_audio 118 0.1354 sbc_crc8 78 0.0895 encode 49 0.0562 __write 33 0.0379 __read 21 0.0241 .plt
time ./sbcenc-fp test.snd > /dev/null real 0m 56.69s user 0m 54.75s sys 0m 1.03s
opreport -l ./sbcenc-fp CPU: ARM V6 PMU, speed 0 MHz (estimated) Counted CPU_CYCLES events (clock cycles counter) with a unit mask of 0x00 (No unit mask) count 100000 samples % symbol name 139072 67.4416 sbc_analyze_eight 57776 28.0179 sbc_pack_frame 6560 3.1812 sbc_encode 1704 0.8263 sbc_calculate_bits 678 0.3288 sbc_analyze_audio 113 0.0548 .plt 101 0.0490 sbc_crc8 64 0.0310 __aeabi_idiv 59 0.0286 encode 46 0.0223 __read 38 0.0184 __write
The Following User Says Thank You to Serge For This Useful Post: | ||
![]() |
2008-01-10
, 01:07
|
|
Posts: 643 |
Thanked: 628 times |
Joined on Mar 2007
@ Seattle (or thereabouts)
|
#64
|
![]() |
2008-01-10
, 01:48
|
Posts: 47 |
Thanked: 10 times |
Joined on Dec 2007
|
#65
|
If you're looking for LOUD from a BT tablet headset, it's called MotoROKR S9 and Radio Shack, of all places, recently had them on sale for $79! If you turn up the tablet volume controls and the volume on the headset, in just one earphone so far, the sound is PAINFULLY LOUD!...(c;!
![]() |
2008-01-11
, 16:29
|
Posts: 5 |
Thanked: 0 times |
Joined on Nov 2007
|
#66
|
![]() |
2008-01-11
, 18:24
|
|
Posts: 643 |
Thanked: 628 times |
Joined on Mar 2007
@ Seattle (or thereabouts)
|
#67
|
![]() |
2008-01-11
, 20:49
|
Posts: 2 |
Thanked: 0 times |
Joined on Jan 2008
|
#68
|
![]() |
2008-01-11
, 22:16
|
Posts: 326 |
Thanked: 39 times |
Joined on Jul 2007
|
#69
|
![]() |
2008-01-12
, 07:06
|
|
Posts: 643 |
Thanked: 628 times |
Joined on Mar 2007
@ Seattle (or thereabouts)
|
#70
|
The Following User Says Thank You to Johnx For This Useful Post: | ||