Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why traverse all fd instead of fd with data readable? Using "traverse all fd" strategy will lead to the following problems. When there are a large number of fd with no data readable in the m_destSockets queue, the sys cpu occupancy rate reaches 100%. #35

Open
hougang2013 opened this issue Jun 16, 2019 · 2 comments

Comments

@hougang2013
Copy link

image

@hougang2013 hougang2013 changed the title Why traverse all fd instead of fd with data readable? Using this strategy will lead to the following problems. When there are a large number of fd with no data readable in the m_destSockets queue, the sys cpu occupancy rate reaches 100%. Why traverse all fd instead of fd with data readable? Using "traverse all fd" strategy will lead to the following problems. When there are a large number of fd with no data readable in the m_destSockets queue, the sys cpu occupancy rate reaches 100%. Jun 16, 2019
@hougang2013
Copy link
Author

use RTPSession::DeleteDestination(RTPTCPAddress(sock_with_no_data_readable))
manually delete the fd with no data readable from the m_destSockets queue lead to sys cpu reduce to low rate!

@j0r1
Copy link
Owner

j0r1 commented Sep 1, 2019

How many destinations are you using at the same time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants