brpc icon indicating copy to clipboard operation
brpc copied to clipboard

bugfix: extend block pool runtime

Open yanglimingcn opened this issue 7 months ago • 0 comments

What problem does this PR solve?

Issue Number:

Problem Summary:

rdma block pool runtime ExtendBlockPool has some error:

  1. a region may has many buckets, extend a region not hold all bucket locks, will case race condition, disable runtime extend a region when buckets greater than 1.
  2. when new region created, link the region to idle_list case link list break.
  3. add feature, in scenarios where users need to manually specify memory regions (e.g., using hugepages or custom memory pools), when FLAGS_rdma_memory_pool_user_specified_memory is true, user is responsibility of extending memory blocks , this ensuring flexibility for advanced use cases.

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects:

  • Breaking backward compatibility:


Check List:

yanglimingcn avatar May 07 '25 08:05 yanglimingcn