GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [CELEBORN-2280] Support celeborn.network.memory.allocator.type to specify netty memory allocator by SteNicholas · Pull Request #3625 · apache/celeborn

Conversation

@SteNicholas

@SteNicholas SteNicholas commented Mar 12, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Support celeborn.network.memory.allocator.type to specify netty memory allocator including AdaptiveByteBufAllocator .

Why are the changes needed?

Netty 4.2 introduces AdaptiveByteBufAllocator an auto-tuning pooling ByteBufAllocator which uses AdaptivePoolingAllocator added in netty/netty#13075.

Does this PR resolve a correctness bug?

No.

Does this PR introduce any user-facing change?

Introduce celeborn.network.memory.allocator.type to specify netty memory allocator.

How was this patch tested?

CI.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added kind:documentation module:common labels Mar 12, 2026
@SteNicholas

SteNicholas commented Mar 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Ping @pan3793, @RexXiong, @eolivelli.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pan3793
pan3793 reviewed Mar 12, 2026
View reviewed changes
Comment thread common/src/main/java/org/apache/celeborn/common/network/util/NettyUtils.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@pan3793

pan3793 commented Mar 12, 2026

Copy link
Copy Markdown
Member

Historically, we have had painful experiences with Netty memory management, it would be great if someone has time to run a heavy workload and see if AdaptiveByteBufAllocator could give us a surprise.

Also cc @cfmcgrady and @AngersZhuuuu, as we had spent a lot of time on this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pan3793

pan3793 commented Mar 12, 2026

Copy link
Copy Markdown
Member

BTW, we currently use UnpooledByteBufAllocator for cases where stability is prioritized over performance.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cxzl25
cxzl25 requested a review from Copilot March 12, 2026 11:35
Copilot started reviewing on behalf of cxzl25 March 12, 2026 11:35
View session
Copilot AI reviewed Mar 12, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Celeborn configuration to select the Netty ByteBufAllocator implementation (including Netty 4.2’s AdaptiveByteBufAllocator) and updates network code paths to honor the chosen allocator type.

Changes:

  • Introduce celeborn.network.memory.allocator.type to choose among pooled / unpooled / adaptive allocators.
  • Update Netty allocator creation logic to switch based on the configured allocator type.
  • Document the migration away from the old celeborn.network.memory.allocator.pooled flag.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.

File Description
docs/migration.md Adds a migration note for the allocator config change.
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala Replaces the old pooled boolean config with a new allocator-type config and exposes a typed accessor.
common/src/main/java/org/apache/celeborn/common/network/util/NettyUtils.java Switches allocator instantiation to support pooled/unpooled/adaptive.
common/src/main/java/org/apache/celeborn/common/network/util/NettyMemoryAllocatorType.java Introduces an enum for allocator type selection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread common/src/main/java/org/apache/celeborn/common/network/util/NettyUtils.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread common/src/main/java/org/apache/celeborn/common/network/util/NettyUtils.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread common/src/main/java/org/apache/celeborn/common/network/util/NettyMemoryAllocatorType.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/migration.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@SteNicholas
[CELEBORN-2280] Support celeborn.network.memory.allocator.type to spe…
24a1d4e
…cify netty memory allocator
@SteNicholas
SteNicholas force-pushed the CELEBORN-2280 branch from 3432e59 to 24a1d4e Compare March 12, 2026 11:51
@SteNicholas

SteNicholas commented Mar 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

@pan3793, IMO, this pull request is aimed to add support for AdaptiveByteBufAllocator, which is not the default value of AdaptiveByteBufAllocator. Therefore, there is no any performance degradation for the support of AdaptiveByteBufAllocator. WDYT?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SteNicholas
SteNicholas requested a review from pan3793 March 13, 2026 06:08
pan3793
pan3793 reviewed Mar 13, 2026
View reviewed changes
Comment thread docs/migration.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

pan3793
pan3793 approved these changes Mar 13, 2026
View reviewed changes

@pan3793 pan3793 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, except for words in the migration guide.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SteNicholas
[CELEBORN-2280] Support celeborn.network.memory.allocator.type to spe…
cce6cda
…cify netty memory allocator
RexXiong
RexXiong approved these changes Mar 13, 2026
View reviewed changes

@RexXiong RexXiong left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, Would you have time to compare the performance of these allocators? We are currently using PooledByteBufAllocator with the Memory Merge feature, and it appears to be stable at the moment.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SteNicholas

SteNicholas commented Mar 14, 2026

Copy link
Copy Markdown
Member Author

@RexXiong, yes. I would like to compare the performance of these netty memory allocators.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SteNicholas SteNicholas closed this in 400e951 Mar 14, 2026
@SteNicholas

SteNicholas commented Mar 14, 2026

Copy link
Copy Markdown
Member Author

Merged to main(v0.7.0).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@pan3793 pan3793 pan3793 approved these changes
@RexXiong RexXiong RexXiong approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

kind:documentation module:common

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@SteNicholas @pan3793 @RexXiong
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.