Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ public void runRDMA() throws Exception {
SVCPostSend postSend = endpoint.postSend(endpoint.getWrList_send());
SVCPostRecv postRecv = endpoint.postRecv(endpoint.getWrList_recv());
long startTime = System.nanoTime();
for (int i = 0; i < loopCount + 1; i++) {
for (int i = 0; i < loopCount; i++) {
// Send PING
sendBuf.clear();
postSend.execute();
endpoint.getWcEvents().take();

// Recv PONG
postRecv.execute();
endpoint.getWcEvents().take();
postRecv.execute();
recvBuf.clear();
}
System.out.println("RDMA result:");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public void runRDMA() throws Exception {
ByteBuffer recvBuf = clientEndpoint.getRecvBuf();
SVCPostSend postSend = clientEndpoint.postSend(clientEndpoint.getWrList_send());
SVCPostRecv postRecv = clientEndpoint.postRecv(clientEndpoint.getWrList_recv());
for (int i = 0; i < loopCount + 1; i++){
for (int i = 0; i < loopCount; i++){
// Recv PING
postRecv.execute();
clientEndpoint.getWcEvents().take();
postRecv.execute();
recvBuf.clear();

//Send PONG
Expand Down