繁体   English   中英

Java Sockets 直接协议

[英]Java Sockets Direct Protocol

正如我们所知,Sockets 直接协议 (SDP) 提供对高性能网络连接的访问,例如 InfiniBand 提供的连接

谁能给我任何很好的例子,说明我如何使用 java 的 Sockets 直接协议 (SDP)?

如果您正在运行最新版本的 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涉及。

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 工作和测试。

在那之后,我认为它就像获取最近的 JDK7 快照一样简单,目前在 M12 ,然后尝试一些东西。 设置配置并在 SDP 配置中指定的地址之间创建连接,所有这些都通过与网络 sockets 相同的 API 完成,即“旧”IO 的 Socket 和 NIO 的 SocketChannel(甚至 JDK7 中的 AIO:)。 据我所知,一旦您按照设置指南配置了将使用 SDP 的地址,只要您在 SDP 映射范围内提供地址,JVM 就会使用基于 SDP 的套接字/套接字通道。 因此,您现有的使用 sockets 的网络代码应该能够以极快的速度和极小的延迟透明地使用 SDP 连接。

据我所知,Windows 用户暂时不走运。

还:

Alan Bateman 的 SDP 博客条目(Oracle JDK SDP 负责人)

暂无
暂无

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

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