This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Posting again here as previous post was deleted from r/cpp.
I have a low latency Linux application that uses Boost ASIO to communicate over TCP to upto 100000 servers in async way. This application is a client to all these TCP servers.
Currently, I call io_service.run()
from [2 * number of core]
threads to process IO to/from peers.
I know internally, ASIO would create an epoll
on single fd for the io_service
and the calls to run
from threads would have contention around queue polling.
I wanted to know how to understand if having a single io_service
, albeit spread across multiple threads, could be a potential bottleneck.
Is io_service
, limited by:
- epoll
- Contention on internal queue
Note: changing application to use multiple io_service is bit involved, hence could not do a quick POC as of now.
Subreddit
Post Details
- Posted
- 9 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/cpp_questio...