987a59a5aa
cpp: ported SuperNode
2018-11-30 20:46:59 +01:00
Dennis Potter
0819207c55
Fixed bug which improved latency about 33%.
...
An ugly workaround was removed in 3c33696265
and 159cefb14d
. Besides making the code a little cleaner, it was expected that this would improve latency. However, it did not.
Cause for this was a bug that disabled inline messages for all messages. This is fixed in this commit. Now, the anticipated latency improvement can be seen. Compared to 159cefb14d
, the latency for samples with 16 values or less is up to 33% better.
Furthermore, the check for signaling is fixed and some typos are fixed.
2018-11-02 12:46:12 +01:00
Dennis Potter
159cefb14d
Added periodic signalling which is necessary in implementation without additional buffer
2018-10-21 12:35:21 +02:00
Dennis Potter
3c33696265
Removed signaling for inline messages. Fixes #206
...
This should decrease the time that is spent in the write-function a little bit and made an extra buffer obsolete.
2018-10-20 17:05:52 +02:00
Dennis Potter
1328f190ad
Removed obsolete BUSY/EVENT flag from Infiniband node
2018-10-14 01:54:54 +02:00
Dennis Potter
ed3a27fefd
Fixed wrong meta data correction and added macros for sample size
2018-10-11 14:18:30 +02:00
Dennis Potter
027555c34d
Added flag in config to enable/disable connection fallback. Closes #188
2018-08-02 10:41:37 +02:00
Dennis Potter
aefe40dc35
Removed IMM mode. Replaced hard coded integers by constants
2018-08-01 18:26:42 +02:00
Dennis Potter
c9871bfebb
UDP improvements
...
This is related to 45ddebf5d1
. I forgot to
add it to the commit.
2018-07-25 18:53:11 +02:00
Dennis Potter
2c3ddfd0c2
Merge branch 'ib-rearrange-qp' into develop
...
Closes #152 . As described in #182 , we will not rearrange the Queue Pairs
for connected mode. As soon as we test many-to-one connections for the
unrealiable connection, we will look again at this issue.
2018-07-21 12:14:25 +02:00
Dennis Potter
8704683bf2
Replaced send WC stack by queue
2018-07-21 12:07:43 +02:00
Dennis Potter
3acc3df7c4
ib_read() now works for UDP
...
Node is now able to send data in RDMA_PS_UDP mode. Right now it creates
a new rdma_cm_id for every connection request. We could/should do this
differently
2018-07-19 20:33:41 +02:00
Dennis Potter
e34cceedfa
Added UD struct and added more comments
2018-07-19 18:31:47 +02:00
60f55ec178
improve naming of struct node_type function pointers ( closes #150 )
2018-07-16 11:00:15 +02:00
Dennis Potter
d9080fa1db
Cleaned up some obsolete code. Closes #176
2018-07-16 10:54:15 +02:00
Dennis Potter
6444a9e337
Split configuration in an in and out part
2018-07-15 13:51:18 +02:00
Dennis Potter
1d6ee5aec8
Node can determine if data should be send inline
...
The user can set the maximum size of the inline data and the node checks
if a sample can be send inline. This commit doesn't contain a info
message to the user about what the final max inline size will be. (The
HCA will probably change the value set by the user.)
2018-07-13 13:50:30 +02:00
Dennis Potter
b1b778f542
Added buffer to ib_write()
...
Now, ib_write() reads every cycle cnt values from the Completion Queue.
If it is not able to return them to the framework immediately, it
temporarily saves them on a stack.
ib_write() checks every cycle if the stack is non-empty and if it is
possible to return values from the stack to the framework.
2018-07-13 12:21:59 +02:00
Dennis Potter
72e627b327
Fixes #166 , all node interfaces are modified
...
The functions now look like this
int node_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release);
int node_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release);
This commit enables nodes to control how many samples will
be released by the framework through *release
2018-07-11 18:14:29 +02:00
Dennis Potter
746fd2f694
Refactored ib_write in the same way as ib_read (described in #153 ). Merged separate completion queue polls to ib_write. Closes #167
2018-07-08 15:00:47 +02:00
Dennis Potter
6150a36411
Changed all node_write() functions
2018-07-07 17:48:07 +02:00
Dennis Potter
4663f55e4b
Changed all node_read() functions to support a *cnt instead of cnt
2018-07-07 17:07:45 +02:00
Dennis Potter
06e7434d6c
Solved some state problems. This commit also solves #154 , which was caused by a non-terminated thread. (This thread will be removed in a later commit anyway
2018-07-07 15:34:07 +02:00
Dennis Potter
836adee4d6
Node is able to clean everything up and reconnect. Node can abort if it is in STARTED and in CONNECTED state
2018-07-07 14:36:23 +02:00
Dennis Potter
e2061e58fc
Events are now monitored in a separate thread. The segmentation faults we saw earlier were caused because we exited ib_start before we created a protection domain, which is used by memory_allocation
2018-07-07 12:49:22 +02:00
Dennis Potter
2bf122991c
Started to convert the RDMA_CM_EVENT loop to a separate thread and added a new state to the node. This commit is still broken
2018-07-05 18:26:32 +02:00
Dennis Potter
781f405a48
Adhered to coding style
2018-07-04 19:04:08 +02:00
Dennis Potter
6c7c7b7ed4
Fixed indentations
2018-07-03 11:13:59 +02:00
Dennis Potter
669d75a666
Basic implementation of zero-copying is done. The is still a problem with rread = hook_read_list. It doesn't return anything after the fourth read
2018-07-02 16:03:16 +02:00
Dennis Potter
1e2d4158f0
Added possibility to add port dynamically, added some config warnings and added a WR refresh function to ib_read
2018-06-28 17:24:28 +02:00
Dennis Potter
5598f93582
Implemented disconnect function on source and target side. The cleanup function doesn't go through completely yet, probably because rdma_destroy_id blocks because not everything in the rdma_cm_id is destroyed yet.
2018-06-28 12:46:16 +02:00
Dennis Potter
1df18da3f2
Added Work Completion threads. Send Completion thread checks for errors, Receive Completion Queue is still empty.
2018-06-27 17:01:47 +02:00
Dennis Potter
7631ec98ed
Refactored the rdma_cm_id structure
2018-06-27 11:21:28 +02:00
Dennis Potter
9e5836001d
Node is able to send messages. A lot is hardcoded and this was only meant to be a first setup of a working node.
2018-06-27 10:37:46 +02:00
Dennis Potter
077355d8ba
Started to implement memory managemen and registration. Not yet working and in an early stage. Still some debugging and testing printfs
2018-06-24 13:02:04 +02:00
Dennis Potter
4f6c2543b5
Fixed bugs in connection. A source node is now able to connect to a target node.
2018-06-23 19:05:33 +02:00
Dennis Potter
a0f0410e73
This commit should be able to create a connection between two nodes.
...
This commit isn't checked for bugs and no memory management is done.
Furthermore, no poll threads are implemented.
2018-06-23 14:53:37 +02:00
Dennis Potter
4220ff8111
Implemented request to resolve address and built an rdma_cm_event framework
2018-06-22 13:02:41 +02:00
Dennis Potter
a1b7a9cda6
Initial commit with (empty) infiniband node
2018-06-21 11:56:28 +02:00