Summary: | ASTERISK-27747: codec opus performance issue | ||
Reporter: | Aaron An (aaron) | Labels: | |
Date Opened: | 2018-03-19 06:03:10 | Date Closed: | 2018-03-19 06:13:45 |
Priority: | Critical | Regression? | |
Status: | Closed/Complete | Components: | Codecs/codec_opus |
Versions: | 13.16.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | AWS EC2 C4.2xLarge 8 core CPU and 16GB memory | Attachments: | |
Description: | when transcoding from opus to others (for example g711), asterisk have a 800% cpu used when concurrent calls is only 60-70. All 8 core cpu were used, this make the choppy sound.
my codec.conf: [myopus] type=opus packet_loss=5 complexity=6 max_bandwidth=narrow signal=voice application=voip max_playback_rate=8000 bitrate=12000 cbr=1 fec=1 dtx=0 and then i change the option complexity to 0(lowest cpu), when 60-70 concurrent calls, cpu used decrease to around 300%. is there any suggestions to increase the performance? I have read the article about opus before, it say that opus load is 3X to g729, is that true? how to improve? | ||
Comments: | By: Asterisk Team (asteriskteam) 2018-03-19 06:03:11.372-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Joshua C. Colp (jcolp) 2018-03-19 06:13:45.948-0500 The options that you stated are the only ones that are available to tweak things and change conditions. There's nothing else available to do so. Opus itself is just computationally expensive, which is why generally hardware devices also have limits on what they can do (for example only one call leg in a three way call can be Opus for some phones). You may try other avenues such as the mailing list[1] or community site[2] to see if others have suggestions on how they may have tweaked things. [1] http://lists.digium.com/mailman/listinfo/asterisk-users [2] https://community.asterisk.org/ By: Aaron An (aaron) 2018-03-20 02:00:13.387-0500 Thanks for your reply. By: Asterisk Team (asteriskteam) 2018-03-20 02:00:13.997-0500 This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable. |