Kernel bypass network in Java

Has anyone figured out how to do a kernel bypass in Java? Any world hello or is it rocket science somewhere?

+6
source share
2 answers

If you use solarflare, you can use their APIs to bypass the kernel (I do not use it directly, so I cannot provide more detailed information). You can also use a beta version of messaging, for example, 29West LBM or IBM LLM, which support rich functionality compared to various hardware.

As @eSniff mentioned, the JRE has the transferFrom() / transferTo() API, which is now used to display the sendfile(2) equivalent for the systems that support it. The semantics of the API are defined so that it can be transparently implemented to support DMA transfer between any two channels.

+5
source

Search for "Java Zero-Copy Buffers" or "Java NIO" or "Java Netty".

Here's a slide show about Netty and the null copy: http://www.slideshare.net/danbim/zerocopy-eventdriven-servers-with-netty . Here is an example project with Netty.

Or you can go to a lower level and use the java.nio.channels classes, which you can read about here http://www.ibm.com/developerworks/linux/library/j-zerocopy/

+1
source

Source: https://habr.com/ru/post/923742/


All Articles