The performance from low to High is as follows:
- Oiosocketchannel: Traditional, block-type programming.
- Epoll is automatically selected under Linux after Niosocketchannel:select/poll or EPOLL,JDK 7.
- Epollsocketchannel:epoll, Linux only, provides additional options.
- EPOLLDOMAINSOCKETCHANNEL:IPC mode, only the client, the service side in the same host situation, starting from 4.0.26 Support, see https://github.com/netty/netty/pull/3344.
For a detailed explanation of Unix domain sockets, refer to:
http://blog.csdn.net/guxch/article/details/7041052
For the vernacular interpretation of Epoll/poll/select, refer to:
https://my.oschina.net/dclink/blog/287198
Epoll usage and help manuals:
Http://man7.org/linux/man-pages/man7/epoll.7.html
Http://blog.chinaunix.net/uid-311680-id-2439723.html
Http://www.tuicool.com/articles/y6je2yf
Http://www.tuicool.com/articles/mQ3iAr
For more information about the time-out setting for connections in Epoll mode, refer to:
Http://stackoverflow.com/questions/6590531/how-do-i-implement-epoll-timeout
Implementation and comparison of various socketchannel supported by Netty