Skip to content

[FEATURE] Support mounting multiple segments under the same segment_name #149

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

xiaguan
Copy link
Collaborator

@xiaguan xiaguan commented Mar 18, 2025

Supported mounting multiple segments for the same client.

Taking it a step further, we might consider modifying the segment management interface on the client side, such as removing the segment_name parameter from the interface (since the segment name is fixed once the client is inited).

Going even further, the client should ideally be stateless, and perhaps MountSegment should return a handle whose ownership is managed by the user.

To keep this PR concise, the discussions will not be implemented in this PR.

@xiaguan xiaguan requested a review from alogfans March 18, 2025 09:24
@xiaguan
Copy link
Collaborator Author

xiaguan commented Mar 18, 2025

based on #146

@alogfans
Copy link
Collaborator

According to our previous design, a segment can be either

  • memory kind, the segment name == the local server name (we will uniform both terms in later patches)
  • nvmeof kind

So, we assume a TransferEngine instance has ONLY ONE segment. However we can register multiple non-contigous buffers.

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