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

Disable mark list optimization if we hit a per region mark list overflow (#86508) #87339

Conversation

cshung
Copy link
Member

@cshung cshung commented Jun 9, 2023

Backport of #86508 to release/7.0-staging

Customer Impact

FASTER is a popular open-source key-value store in .NET that has production use within and across Microsoft. This bug is causing a direct impact on the usability of FASTER, for the scenario where instances are created and destroyed frequently. Fixing this will allow the safe use of FASTER in production by both Microsoft and external customers of FASTER.

The root cause of this bug is that under server GC, it is possible for us to run out of memory to store the mark list for a region. In that case, the code before the fix will assume the partially filled mark list as all the marked objects and therefore prematurely release the marked objects that were left out. This change will fix the issue by making sure we don't use the partially filled mark list in case we ran out of space.

Testing

  • GC Perf Sim
    • Normal Server
    • Normal Workstation
    • Large Pages Server
    • Large Pages Workstation
    • Low Memory Container
    • High Memory Load
  • Microbenchmarks
    • V8 Test
    • Top 20 Microbenchmarks
  • ASPNet Benchmarks
    • JsonMin - Windows

Risk

Low, this change is merged to the main branch for a month now and nothing happened since.

@ghost
Copy link

ghost commented Jun 9, 2023

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

Issue Details

null

Author: cshung
Assignees: -
Labels:

area-GC-coreclr

Milestone: -

@cshung cshung marked this pull request as draft June 9, 2023 19:39
@carlossanlop
Copy link
Member

carlossanlop commented Jun 12, 2023

@cshung @Maoni0 this is still marked as draft. Today is code complete for the July servicing release. Please get a Tactics approval and merge before EOD if you'd like this to be included in the release.

@cshung cshung marked this pull request as ready for review July 7, 2023 21:57
@carlossanlop
Copy link
Member

@cshung @Maoni0 this is still marked as draft. Reminder: Code Complete for the August Release is tomorrow Monday July 10th. If you intend to include this fix in that release, please make sure to get a tactics approval and get it merged before 4pm because that's when I'll start the staging merge process into internal.

@jeffschwMSFT jeffschwMSFT added the Servicing-consider Issue for next servicing release review label Jul 10, 2023
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 Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jul 10, 2023
@jeffschwMSFT jeffschwMSFT added this to the 7.0.10 milestone Jul 10, 2023
@cshung cshung merged commit 9ecb226 into dotnet:release/7.0-staging Jul 10, 2023
2 of 4 checks passed
@cshung cshung deleted the public/backport/pr-86508-to-release/7.0-staging branch July 10, 2023 23:03
@radical radical mentioned this pull request Aug 3, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 14, 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