简体   繁体   English

Java Sockets 直接协议

[英]Java Sockets Direct Protocol

As we know the Sockets Direct Protocol (SDP) provides access to high performance network connections, such as that provided by InfiniBand正如我们所知,Sockets 直接协议 (SDP) 提供对高性能网络连接的访问,例如 InfiniBand 提供的连接

can any one please give me any good example of how can i use Sockets Direct Protocol (SDP) of java?谁能给我任何很好的例子,说明我如何使用 java 的 Sockets 直接协议 (SDP)?

If you are running a recent version of Solaris or OpenSolaris I think you are all set to try stuff out.如果您正在运行最新版本的 Solaris 或 OpenSolaris,我认为您已经准备好尝试一些东西了。

Linux requires use of the libsdp library and external kernel modules available from OpenFabrics (OFED), there seems to be strong desire to get the modules into Linux mainline but OFED guys seem to be rubbing the kernel developers up the wrong way over some of the issues involved. Linux requires use of the libsdp library and external kernel modules available from OpenFabrics (OFED), there seems to be strong desire to get the modules into Linux mainline but OFED guys seem to be rubbing the kernel developers up the wrong way over some of the issues涉及。

There's a useful setup guide for Infiniband under Debian Linux which gives details on how to set up and compile the OFED kernel modules and the libsdp library etc. Once you have that done you can follow the SDP section of that how-to in order to get SDP working and tested. There's a useful setup guide for Infiniband under Debian Linux which gives details on how to set up and compile the OFED kernel modules and the libsdp library etc. Once you have that done you can follow the SDP section of that how-to in order to get SDP 工作和测试。

After that I think it is as simple as getting a recent JDK7 snapshot, currently at M12 , and trying stuff out.在那之后,我认为它就像获取最近的 JDK7 快照一样简单,目前在 M12 ,然后尝试一些东西。 Set up your config and create connections between addresses specified in your SDP config, all done via the same APIs as network sockets , ie Socket for 'old' IO, and SocketChannel for NIO (or even AIO in JDK7:).设置配置并在 SDP 配置中指定的地址之间创建连接,所有这些都通过与网络 sockets 相同的 API 完成,即“旧”IO 的 Socket 和 NIO 的 SocketChannel(甚至 JDK7 中的 AIO:)。 As far as I can see, once you have followed the set up guides and configured the addresses that will use SDP the JVM will use SDP based Sockets/SocketChannels whenever you provide addresses within the SDP mapped range.据我所知,一旦您按照设置指南配置了将使用 SDP 的地址,只要您在 SDP 映射范围内提供地址,JVM 就会使用基于 SDP 的套接字/套接字通道。 So your existing networking code that uses sockets should be able to use the SDP connections transparently, just at blazingly fast speeds and tiny latencies.因此,您现有的使用 sockets 的网络代码应该能够以极快的速度和极小的延迟透明地使用 SDP 连接。

Windows users are out of luck for the time being, as far as I can tell.据我所知,Windows 用户暂时不走运。

Also:还:

Alan Bateman's SDP blog entry (Oracle JDK SDP lead) Alan Bateman 的 SDP 博客条目(Oracle JDK SDP 负责人)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM