Skip to content

Improve accuracy and stability of ActivationWorkingSet #8321

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

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Feb 18, 2023

The current logic in ActivationWorkingSet will remove a grain from the working set if it is visited twice consecutively and was idle both times. This does not account for cases where the grain was busy between those visits. The improved logic in this PR uses the idle duration to cover the period and reduce the chance of a would-be active grain being evicted from the working set.

I also increased the scan interval, since 100ms is needlessly aggressive for what is essentially a rolling window.

@ReubenBond
Copy link
Member Author

@benjaminpetit please take a look & merge if you think it's an improvement

@ReubenBond ReubenBond added this to the 7.1.1 milestone Mar 6, 2023
@benjaminpetit benjaminpetit merged commit b1f02d5 into dotnet:main Mar 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants