Skip to content

Slot allocator #22213

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

Merged
merged 3 commits into from
Aug 4, 2025
Merged

Conversation

robdrynkin
Copy link
Collaborator

Changelog entry

...

Changelog category

  • New feature
  • Experimental feature
  • Improvement
  • Performance improvement
  • User Interface
  • Bugfix
  • Backward incompatible change
  • Documentation (changelog entry is not required)
  • Not for changelog (changelog entry is not required)

Description for reviewers

...

@robdrynkin robdrynkin force-pushed the slot_alloc branch 2 times, most recently from 7aae5e7 to 66585cd Compare August 4, 2025 13:19
@@ -128,6 +128,11 @@ namespace NInterconnect::NRdma {
return mr->rkey;
}

void TMemRegion::Resize(uint32_t newSize) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noexcept?

Chains[GetChainIndex(1 << i)].Init(1 << i);
}
}
~TSlotMemPoolCache() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to return Chain in to global pool. In real case sets of threads is changed during pdisk restart.

Stopped = true;
}
TMemRegion* AllocImpl(int size, ui32 flags, TSlotMemPool& pool) noexcept {
Y_UNUSED(flags);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to support alignment of start address.

@@ -5,10 +5,13 @@
#include <ydb/library/actors/interconnect/rdma/ibdrv/include/infiniband/verbs.h>

#include <util/thread/lfstack.h>
#include <util/thread/lfqueue.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we do not need it if lfstack is used

@robdrynkin robdrynkin merged commit 3a3e2e7 into ydb-platform:stream-nb-ic-rdma Aug 4, 2025
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