You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/04/10 13:16:54 UTC

[GitHub] [rocketmq] MatrixHB commented on issue #4137: Why doesn't rocketmq send files with sendfile like Kafka?

MatrixHB commented on issue #4137:
URL: https://github.com/apache/rocketmq/issues/4137#issuecomment-1094273446

   > > 
   > 
   > 这是用了mmap,但是没有用到sendfile哇
   
   是的,这里ManyMessageTransfer重写了DefaultFileRegion的transferTo()方法,还是使用mmap,没有使用sendfile。曾经有个PR就对此做了修改:[#1933](https://github.com/apache/rocketmq/pull/1933)
   
   使用sendfile代替rocketmq,对读写性能会有多大的提升,是否带来其他的问题,未有定论。如果你有余力可以尝试优化和测试一把,可以加入rocketmq的性能优化SIG进一步探讨。
   


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org