adding rsockets support into JDK

Lu, Yingqi yingqi.lu at intel.com
Tue Apr 24 05:18:22 UTC 2018


Hi All,

The version 2 of the patch is available at http://cr.openjdk.java.net/~ylu/8195160.02/

In this version, I did following changes:

1. Remove RdmaSocket/RdmaServerSocket. Instead, use jdk.net.Sockets.openRdmaSocket and jdk.net.Sockets.openRdmaServerSocket to create RDMA based sockets. Internally, I use SocketImplFactory to connect Socket/ServerSocket with RdmaSocketImpl.

2. Remove RdmaSocketChannel/RdmaServerSocketChannel. Instead, use jdk.net.Sockets.openRdmaSocketChannel and jdk.net.Sockets.openRdmaServerSocketChannel to create RDMA based channels. 

3. Move all the *impl classes from jdk.net to rdma.ch. rdma.ch only exports to java.base.

A side note: rSocket does not currently support IPv4-mapped address. Since Java uses IPv6 as default whenever it is available, -Djava.net.preferIPv4Stack=true is needed for using IPv4 addresses. I think Socket Direct Protocol (SDP) has similar issue?

Please let me know your feedback and comments. Really appreciate your help!

Thanks,
Lucy


>-----Original Message-----
>From: Alan Bateman [mailto:Alan.Bateman at oracle.com]
>Sent: Monday, April 16, 2018 11:52 PM
>To: Lu, Yingqi <yingqi.lu at intel.com>; nio-dev at openjdk.java.net
>Cc: Kaczmarek, Eric <eric.kaczmarek at intel.com>; Aundhe, Shirish
><shirish.aundhe at intel.com>; Viswanathan, Sandhya
><sandhya.viswanathan at intel.com>
>Subject: Re: adding rsockets support into JDK
>
>
>
>On 17/04/2018 06:53, Lu, Yingqi wrote:
>> :
>>
>> After taking another look at Socket/ServerSocket, I think I might be able to use
>SocketImplFactory interface to connect Socket/ServerSocket with
>RdmaSocketImpl. I will try it in the next version of the patch and send here for
>review.
>>
>That would be better. It is a bit tricky to get alternative SocketImpl
>implementations working and I'm sure folks here will be happy to help if you run
>into issues.
>
>-Alan


More information about the nio-dev mailing list