High cpu usage in AudioEncoder thread from webrtc platform
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.
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.
2.74% network webrtc_common.so
```
```
43.10% 592 AudioEncoder webrtc_common.so [.] silk_noise_
8.47% 127 AudioEncoder webrtc_common.so [.] silk_warped_
6.81% 99 AudioEncoder webrtc_common.so [.] silk_resampler_
4.35% 61 AudioEncoder webrtc_common.so [.] silk_NLSF_
2.87% 39 AudioEncoder webrtc_common.so [.] silk_inner_
2.51% 25 AudioEncoder webrtc_common.so [.] silk_resampler_
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
description: | updated |
Changed in anbox-cloud: | |
status: | New → In Progress |
assignee: | nobody → Gary.Wang (gary-wzl77) |
milestone: | none → 1.23.0 |
importance: | Undecided → Medium |