问题描述
有没有人想出如何在 Java 中绕过内核?有什么你好世界吗,或者这是火箭科学?
Has anyone figured it out how to do Kernel bypass in Java? Any hello world somewhere or this is rocket science?
推荐答案
如果你使用的是 Solarflare,你可以使用他们的 API 来做内核绕过(我没有直接使用它,所以不能提供更多细节).您还可以使用诸如 29West LBM 或 IBM LLM 之类的消息传递产品,它们支持各种硬件上的丰富功能.
If you are using solarflare, you can use their API to do kernel bypass (I am not using it directly, so can't provide more details). You can also use a messaging broduct like 29West LBM or IBM LLM which support rich functionality over various hardware.
正如@eSniff 所提到的,JRE 具有 transferFrom()
/transferTo()
API,现在用于公开 sendfile(2)
code> 等效于支持它的系统.定义了 API 的语义,因此可以透明地实现它以支持任意 2 个通道之间的 DMA 传输.
As @eSniff mentioned, the JRE has transferFrom()
/ transferTo()
API which right now is used to expose the sendfile(2)
equivalent for the systems that support it. The semantics of the API is defined so it can be transparently implemented to support DMA transfers between any 2 channels.
这篇关于在 Java 中使用内核绕过网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!