Fork me on GitHub
#aleph
<
2022-08-01
>
dergutemoritz14:08:38

Heya, does anyone know what exactly the advantage is of using netty-transport-native-epoll over Netty's default NIO based transport? Since JDK 9, the latter also uses epoll on Linux by default (cf. https://bugs.openjdk.org/browse/JDK-8142872) which makes me wonder :thinking_face:

dergutemoritz14:08:58

Ha, found some anecdotal evidence in the issue tracker that it could be more performant: https://github.com/clj-commons/aleph/issues/475#issuecomment-460428052

valerauko11:09:01

last time i tested (which was like two years back) epoll performed much better. i can't find the records anymore but iirc nio had to run through much more stuff and the stack depth showed. (also you need to specify architecture too when you use the native transport packages, like [io.netty/netty-transport-native-epoll "4.1.50.Final" :classifier "linux-x86_64"] )