You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "zonghaishang (GitHub)" <gi...@apache.org> on 2018/11/08 02:39:06 UTC

[GitHub] [incubator-dubbo] zonghaishang commented on issue #2737: [Dubbo - performance] support epoll

epoll 之所以高效,主要原因:

1. tcp连接多的时候,避免了大量的fd在用户态和内核态反复拷贝
2. 在少量tcp连接时,epoll体现不出来什么优势,可以参考1个tcp连接数据
3. nio每次需要轮训fd, epoll 通过回调事件,不会因为tcp连接增长线性降低效率,我特意做了50个连接,使用epoll效能还是会好一些

这个只是基准测试数据,只供参考,需要实际使用压测。目前吞吐量数据大概提升10%+。

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2737 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org