Bug 2232072 - THPs cause huge RSS due to thread start timing issue
Summary: THPs cause huge RSS due to thread start timing issue
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: java-11-openjdk
Version: 8.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Thomas Stuefe
QA Contact: OpenJDK QA
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-15 07:25 UTC by kazuhiro kawana
Modified: 2023-08-15 08:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-165811 0 None None None 2023-08-15 07:37:23 UTC

Description kazuhiro kawana 2023-08-15 07:25:26 UTC
### Description of problem:
If THP (Transparent Huge Pages) are enabled unconditionally on the system, java applications that use many threads may see a huge Resident Set Size. That footprint is caused by thread stacks being mostly paged in. 

The issue was reported in JDK bug database and already fixed:

THPs cause huge RSS due to thread start timing issue
https://bugs.openjdk.org/browse/JDK-8312182

We checked source code in src rpm, it looks OpenJDK 11(latest)  and OpenJDK 17 does not contain the above fix. 
Please a backport the fix.

### Version-Release number of selected component (if applicable):

java-11-openjdk-11.0.20.0.8-3.el8
java-17-openjdk-17.0.8.0.7-2.el8


### How reproducible:

Anytime

### Steps to Reproduce:

N/A

### Actual results:

N/A

### Expected results:
If enabling them "always", it can not lead to huge memory footprint and bad startup performance


Note You need to log in before you can comment on or make changes to this bug.