Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport PR#77480 to 7.0. #85309

Merged

Conversation

PeterSolMS
Copy link
Contributor

@PeterSolMS PeterSolMS commented Apr 25, 2023

Backport of #77480 to release/7.0-staging.

Customer Impact

We have seen internal customers encounter out-of-memory exceptions due to this issue. The bug leads to spurious Full compacting GCs for their scenario. Instead of acquiring a new segment by reserving more memory, gc_heap::allocate_uoh will actually try to fit the requested size in a free region in the region map or allocate a new one at the end of the region map. This ultimately leads to OOMs when the process is close to exhausting bookkeeping hard commit limit, the LOH size increase will never happen. The fix is to remove the hard_limit_for_bookkeeping and associated fields, and instead commits memory for the mark array eagerly

Testing

This has been in .NET Core 8.0 since 12/12/22 without adverse effects noticed. At the time, extensive testing with low hard limits was done.

Risk

Low - the fix mostly removes problematic code, the amount of new code added is minimal.

@ghost
Copy link

ghost commented Apr 25, 2023

Tagging subscribers to this area: @dotnet/gc
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #77480 to release/7.0-staging.

Customer Impact

We have seen internal customers encounter out-of-memory exceptions due to this issue.

Testing

This has been in .NET Core 8.0 since 12/12/22 without adverse effects noticed. At the time, extensive testing with low hard limits was done.

Risk

Low - the fix mostly removes problematic code, the amount of new code added is minimal.

Author: PeterSolMS
Assignees: -
Labels:

area-GC-coreclr

Milestone: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

approved. we will take for consideration in 7.0.x

@jeffschwMSFT jeffschwMSFT added the Servicing-consider Issue for next servicing release review label Apr 25, 2023
@jeffschwMSFT jeffschwMSFT added this to the 7.0.x milestone Apr 25, 2023
@rbhanda rbhanda modified the milestones: 7.0.x, 7.0.7 Apr 25, 2023
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 25, 2023
@mangod9 mangod9 merged commit 7aa3f0c into release/7.0-staging Apr 25, 2023
@mangod9 mangod9 deleted the backport/pr-77480-to-release/7.0-staging branch April 25, 2023 18:01
@ghost ghost locked as resolved and limited conversation to collaborators May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GC-coreclr Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants