Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi-connection support #83

Merged
merged 14 commits into from
Sep 7, 2022
Merged

Add multi-connection support #83

merged 14 commits into from
Sep 7, 2022

Conversation

GTwhy
Copy link
Collaborator

@GTwhy GTwhy commented Aug 21, 2022

No description provided.

GTwhy added 9 commits August 21, 2022 14:05
port_num should always be 1.
Add APIs for `Rdma` to create a new `Rdma` that has the same
`mr_allocator` and `event_listener` as parent.

Change server and client examples to add multi-connection APIs demo.
Add `CloneAttr` to define the behaviors that occur during `clone` before
`listen` or `new_connect`.
`tcache` is a feature of `Jemalloc` to speed up memory allocation.
However `Jemalloc` may alloc `MR` with wrong `arena_index`
from `tcache` when we create more than one `Jemalloc` enabled `mr_allocator`s.
So we disable `tcache` by default.
Prepare for multi-connection with multi-pd.
Set new `ProtectionDomain` for new `Rdma` to provide isolation.
We can use `set_max_rmr_access` to set the maximum permission on `RemoteMr`
that the remote end can request.
Set new max access permission for remote mr requests for new `Rdma` by
`set_new_max_rmr_access`
examples/client.rs Show resolved Hide resolved
src/memory_region/mod.rs Outdated Show resolved Hide resolved
src/mr_allocator.rs Show resolved Hide resolved
src/mr_allocator.rs Outdated Show resolved Hide resolved
Place access in a separate file and hide `ibv_access_flags` for users.

Users should not touch the underlying details about `ibv_access_flags`.
Because it may change with `rdma-sys` bindings.
@GTwhy GTwhy merged commit 0f3c92b into datenlord:master Sep 7, 2022
@GTwhy GTwhy deleted the mc branch November 1, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants