You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Kiddinglife (GitHub)" <gi...@apache.org> on 2019/01/14 04:44:24 UTC

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

> epoll 之所以高效,主要原因:
epoll is more efficient due to the reasons shown below:
> 1. tcp连接多的时候,避免了大量的fd在用户态和内核态反复拷贝
1. Avoid fds transferring between kernel space and user space.
> 2. 在少量tcp连接时,epoll体现不出来什么优势,可以参考1个tcp连接数据
2. No significant improvements observed with a few of tcp connections. 
> 3. nio每次需要轮训fd, epoll 通过回调事件,不会因为tcp连接增长线性降低效率,我特意做了50个连接,使用epoll效能还是会好一些
nio travels across all the fd descriptors to test network event (connection, close, writeable, readable and so on) whereas epoll does that via notified by operating system, which is more efficient.
> 这个只是基准测试数据,只供参考,需要实际使用压测。目前吞吐量数据大概提升10%+。
more tests are needed in prod env. so far 10% increase in throughputs were seen.


[ 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