merlimat opened a new pull request, #16361:
URL: https://github.com/apache/pulsar/pull/16361

   ### Motivation
   
   This is similar to https://github.com/apache/bookkeeper/pull/3383.
   
   When we are writing/reading a lot of small entries, one of the main 
bottleneck in Pulsar client/broker becomes the CPU usage. A big part of it is 
caused by the syscall overhead when writing to the socket. 
   
   The reason is that we have many independent (and small) operations happening 
on the connection and each time we call `writeAndFlush()` on each of them, 
causing many `write()` calls on the socket.
   
   Netty has a mechanism to consolidate the flushes on the channel and it 
improves the handling of many small entries.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to