开发者

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

can any one please give me any good example of how can i use Sockets Direct Protocol (SDP) of java ?


If you are running a recent version of Solaris or OpenSolaris I think you are all set to try stuff out.

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.

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.

After that I think it is as simple as getting a recent JDK7 snapshot, currently at M12, and trying stuff out. Set up your config and create connections between addresses specified in your SDP config, all done via the same APIs as network sockets, i.e. Socket for 'old' IO, and SocketChannel for NIO (or even AIO in JDK7 :). 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. 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.

Windows users are out of luck for the time being, as far as I can tell.

Also:

Alan Bateman's SDP blog entry (Oracle JDK SDP lead)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜