Denis Ermolin
Denis Ermolin

Reputation: 5546

Boost asio::async_write sending thousands of small packets

In my application I have to send about 10 kb/s per connection. All packets are put in a std::deque. One thread iterates over the deque and sends packet data via asio::async_write.

My question is how much connections can I handle simultaneously in one thread? Can I send say 20 Mbytes/s?

Upvotes: 1

Views: 1097

Answers (1)

TemplateRex
TemplateRex

Reputation: 70526

The Boost.Asio author Kohlhoff's website has a performance page. Looking at the graph of Linux-perf-11, he gets a throughput of ~300 Mb/sec with 1000 connections on a single CPU, which is way above your target of 10kb/sec per connection.

Upvotes: 2

Related Questions