Repository navigation
Change default of io.netty.allocator.useCacheForAllThreads to false - #8991
Merged
Merged
Conversation
normanmaurer
requested review from
carl-mastrangelo,
ejona86,
slandelle,
trustin and
vkostyukov
April 1, 2019 07:05
Member
Author
franz1981
approved these changes
Apr 1, 2019
franz1981
left a comment
Contributor
There was a problem hiding this comment.
I've recently received a feedback about this specific setting from one power user of ActiveMQ Artemis from the community: telepathy?
lgtm
Motivation: We currently use a thread local cache for all threads which often is suprising to users as it may result in a lot of memory usage if they allocate buffers from outside the EventLoop in different threads. We should better not do this by default to keep suprises to a minimum. Users that need the performance and know what they are doing can still change this. Modifications: Change io.netty.allocator.useCacheForAllThreads to false by default Result: Related to #8536.
normanmaurer
force-pushed
the
use_cache_for_all_threads
branch
from
April 1, 2019 07:27
1c02a06 to
ae7b90b
Compare
johnou
approved these changes
Apr 1, 2019
johnou
left a comment
Contributor
There was a problem hiding this comment.
Lgtm, it should be pretty obvious in load tests if this causes performance regressions.
Member
|
SGTM |
ejona86
approved these changes
Apr 1, 2019
ejona86
left a comment
Member
There was a problem hiding this comment.
gRPC has also seen performance issues caused by initializing the cache for new threads (like seen in grpc/grpc-java#1758), when users aren't using a thread pool.
vkostyukov
approved these changes
Apr 1, 2019
vkostyukov
left a comment
Contributor
There was a problem hiding this comment.
LGTM
I don't think we ever use allocators outside of event loop threads in Finagle.
chrisvest
pushed a commit
to chrisvest/netty
that referenced
this pull request
Feb 28, 2022
…etty#8991) Motivation: We currently use a thread local cache for all threads which often is suprising to users as it may result in a lot of memory usage if they allocate buffers from outside the EventLoop in different threads. We should better not do this by default to keep suprises to a minimum. Users that need the performance and know what they are doing can still change this. Modifications: Change io.netty.allocator.useCacheForAllThreads to false by default Result: Related to netty#8536.
normanmaurer
added a commit
that referenced
this pull request
Mar 3, 2022
…8991) (#12109) Motivation: We currently use a thread local cache for all threads which often is suprising to users as it may result in a lot of memory usage if they allocate buffers from outside the EventLoop in different threads. We should better not do this by default to keep suprises to a minimum. Users that need the performance and know what they are doing can still change this. Modifications: Change io.netty.allocator.useCacheForAllThreads to false by default Result: Related to #8536. Co-authored-by: Norman Maurer <[email protected]>
raidyue
pushed a commit
to raidyue/netty
that referenced
this pull request
Jul 8, 2022
…etty#8991) (netty#12109) Motivation: We currently use a thread local cache for all threads which often is suprising to users as it may result in a lot of memory usage if they allocate buffers from outside the EventLoop in different threads. We should better not do this by default to keep suprises to a minimum. Users that need the performance and know what they are doing can still change this. Modifications: Change io.netty.allocator.useCacheForAllThreads to false by default Result: Related to netty#8536. Co-authored-by: Norman Maurer <[email protected]>
franz1981
pushed a commit
to franz1981/netty
that referenced
this pull request
Aug 22, 2022
…etty#8991) (netty#12109) Motivation: We currently use a thread local cache for all threads which often is suprising to users as it may result in a lot of memory usage if they allocate buffers from outside the EventLoop in different threads. We should better not do this by default to keep suprises to a minimum. Users that need the performance and know what they are doing can still change this. Modifications: Change io.netty.allocator.useCacheForAllThreads to false by default Result: Related to netty#8536. Co-authored-by: Norman Maurer <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation:
We currently use a thread local cache for all threads which often is suprising to users as it may result in a lot of memory usage if they allocate buffers from outside the EventLoop in different threads. We should better not do this by default to keep suprises to a minimum. Users that need the performance and know what they are doing can still change this.
Modifications:
Change io.netty.allocator.useCacheForAllThreads to false by default
Result:
Related to #8536.