GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — Make unpooled buffers avoid shared arenas by chrisvest · Pull Request #16443 · netty/netty Conversation
|
|
@franz1981 @normanmaurer It needed a few more compatibility fixes. Should work now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@normanmaurer Addressed your comment. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hmm... I think we should also add a system property override, in case it causes adverse performance regressions for someone. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One nit....
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return PlatformDependent.allocateDirect(capacity, false); | ||
| } | ||
|
|
||
| protected CleanableDirectBuffer allocateDirectBuffer(int capacity, boolean permitExpensiveClean) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
just make this private or package-private for now ?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
this will make the graal team happy. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@normanmaurer comments addressed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Could not create auto-port PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Motivation: Shared arenas can be expensive to close if we do it a lot, for instance in cases when we use the UnpooledByteBufAllocator. Modification: Make Unpooled buffers avoid shared arenas and instead fall back to GC/reference processing buffer cleaning. Make the pooling allocators explicitly state that they permit "expensive" clean operations to that they use shared arenas. Result: Greatly improves system-wide performance and scalability when allocating a lot of unpooled buffers, at the cost of delayed cleaning/deallocation and in turn higher memory usage. This should also address a number of flaky test failures we see, that are caused by timeouts due to increased time we were spending in closing shared arenas. If the use GC and reference counting causes adverse performance effects, e.g. performance regressions or poor GC behavior, then the previous behavior (letting unpooled buffers use shared memory segment arenas) can be restored by setting the `io.netty.ignoreExpensiveClean=true` system property.
|
Create PR manually due conflict... #16470 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Motivation: Shared arenas can be expensive to close if we do it a lot, for instance in cases when we use the UnpooledByteBufAllocator. Modification: Make Unpooled buffers avoid shared arenas and instead fall back to GC/reference processing buffer cleaning. Make the pooling allocators explicitly state that they permit "expensive" clean operations to that they use shared arenas. Result: Greatly improves system-wide performance and scalability when allocating a lot of unpooled buffers, at the cost of delayed cleaning/deallocation and in turn higher memory usage. This should also address a number of flaky test failures we see, that are caused by timeouts due to increased time we were spending in closing shared arenas. If the use GC and reference counting causes adverse performance effects, e.g. performance regressions or poor GC behavior, then the previous behavior (letting unpooled buffers use shared memory segment arenas) can be restored by setting the `io.netty.ignoreExpensiveClean=true` system property. --------- Co-authored-by: Chris Vest <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.