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

Too many threads in sofa ,how use epoll to overlap large number of socket events #231

Open
Cooliodtryl opened this issue Jul 4, 2018 · 2 comments

Comments

@Cooliodtryl
Copy link

Too many threads in sofa ,how use epoll to overlap large number of socket events?thank you

@Cooliodtryl
Copy link
Author

In my programe,I found 2794 threads in running, the load balance is too high,this bug is because of too many threads in sofa network,eg,in rpcclientImpl.h/cc,I can find 2 maintain_thread_group which use 2 threads,callback_thread_group which use 4 threads by default,and work_thread_group which use 4 threads by default,but my system is a distributed system,one programe needs to keep communications with many other programe,so when i want to keep 40,the leaset threads in one programe can reach upto 240,acutulay, I can find 2794 threads in my programe,why?can I use IO overlap techniques to solve this probrom?thank you

@Ye-Tian-Zero
Copy link
Contributor

..Don't understand your problem, sofa-pbrpc has a limited thread count.

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