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

Change behavior of smart configuration setting #537

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

madmajestro
Copy link
Contributor

The smart configuration setting can now be used to increase the chance of full cache wipes during periods of high memory pressure. The idea is to use smart values > 1 to avoid performance problems when the expunge() hook is executed too often. The previous behavior was changed because it could unpredictably cause the insertion of new cache entries to fail, making the smart setting nearly useless.

The smart configuration setting can now be used to increase the chance
of full cache wipes during periods of high memory pressure. The idea is
to use smart values > 1 to avoid performance problems when the expunge()
hook is executed too often. The previous behavior was changed because it
could unpredictably cause the insertion of new cache entries to fail,
making the smart setting nearly useless.
@madmajestro
Copy link
Contributor Author

This is a follow-up of #536.

This is my suggestion for how the smart setting should work / could be improved.

I suspect that the smart setting should have worked this way before.

Copy link
Collaborator

@nikic nikic left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@nikic nikic merged commit 89618de into krakjoe:master Mar 17, 2025
31 checks passed
@madmajestro madmajestro deleted the change-smart-behavior branch March 17, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants