Skip to content

Conversation

benwtrent
Copy link
Member

Backports the following commits to 9.1:

…gions being mapped (elastic#135012)

There is a JDK issue where closing sharedArenas from many threads can
significantly harm performance. 

This ref-counting of shared arenas was designed as a way to get around
this performance issue. However, we have noticed a significant increase
in leaks and issues with mmap regions since this change. 

https://bugs.openjdk.org/browse/JDK-8335480 should have helped the
performance impact of closing shared arenas (though possibly not fully
mitigated it).

I am proposing we turn off the grouping as it appears (at least to me),
not worth it. 

I am willing to backdown if we thing other fixes should be done.

I also suggest this gets backported to 9.1, 8.19, and is merged into 9.2
@benwtrent benwtrent requested a review from a team as a code owner September 19, 2025 22:52
@benwtrent benwtrent added :Core/Infra/Core Core issues without another label :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. :Search/Search Search-related issues that do not fall into other categories >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team Team:Distributed Indexing Meta label for Distributed Indexing team Team:Search Meta label for search team labels Sep 19, 2025
@elasticsearchmachine elasticsearchmachine merged commit 2b13cff into elastic:9.1 Sep 19, 2025
35 checks passed
@benwtrent benwtrent deleted the backport/9.1/pr-135012 branch September 19, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Core/Infra/Core Core issues without another label :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. :Search/Search Search-related issues that do not fall into other categories Team:Core/Infra Meta label for core/infra team Team:Distributed Indexing Meta label for Distributed Indexing team Team:Search Meta label for search team v9.1.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants