High cpu usage in AudioEncoder thread from webrtc platform

Bug #2070267 reported by Gary.Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anbox Cloud
In Progress
Medium
Gary.Wang

Bug Description

When no audio output is performed, profile anbox session process, we discovered that the Audio Encoder thread from the webrtc stack consumed abnormally CPU times.

```
  43.10% AudioEncoder webrtc_common.so
  11.30% network [kernel]
   4.50% EncoderQueue libcuda.so.550.40.07
   4.26% AudioEncoder [kernel]
   4.08% worker webrtc_common.so
   3.67% EncoderQueue [kernel]
   3.53% worker [kernel]
   2.92% EncoderQueue webrtc_common.so
   2.83% EncoderQueue libnvcuvid.so.550.40.07
   2.74% network webrtc_common.so
```

```
    43.10% 592 AudioEncoder webrtc_common.so [.] silk_noise_shape_quantizer_del_dec_sse4_1
     8.47% 127 AudioEncoder webrtc_common.so [.] silk_warped_autocorrelation_FLP
     6.81% 99 AudioEncoder webrtc_common.so [.] silk_resampler_down2_hp
     4.35% 61 AudioEncoder webrtc_common.so [.] silk_NLSF_del_dec_quant
     2.87% 39 AudioEncoder webrtc_common.so [.] silk_inner_product_FLP
     2.51% 25 AudioEncoder webrtc_common.so [.] silk_resampler_private_down_FIR
     2.10% 33 AudioEncoder webrtc_common.so [.] transient_analysis
     1.91% 23 AudioEncoder webrtc_common.so [.] opus_fft_impl
```

This issue is related to the silence audio effect produced by the Anbox session, which triggers the WebRTC noise shaping quantization (NSQ) module to do some heavely work

Gary.Wang (gary-wzl77)
description: updated
Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
status: New → In Progress
assignee: nobody → Gary.Wang (gary-wzl77)
milestone: none → 1.23.0
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.