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

Periodically flush region managers in the LRU queue #395

Open
wants to merge 1 commit into
base: branch-24.03
Choose a base branch
from

Conversation

magnatelee
Copy link
Contributor

Though PR #392 addresses the inefficiency from collecting inactive region managers too eagerly, it may let those inactive managers stick around until the program finishes. This PR introduces another heuristic that periodically flushes inactive managers kept in the LRU queue.

@magnatelee magnatelee added the category:improvement PR introduces an improvement and will be classified as such in release notes label Sep 28, 2022
Copy link
Contributor

@manopapad manopapad left a comment

Choose a reason for hiding this comment

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

This is OK, but I would have preferred to see a separate counter on each "dead" RegionManager. Then each RegionManager would be guaranteed to last for N field allocations, whereas now it could get unlucky and be removed right away, because it happened to become empty right before an LRU cache flush was scheduled to be triggered.

I think such a feature would actually remove the need for an LRU mechanism altogether; just place dead RegionManagers in a regular list and tick them all up on each field allocation.

@marcinz
Copy link
Collaborator

marcinz commented Jan 26, 2023

@magnatelee What is the status of this PR?

@magnatelee
Copy link
Contributor Author

@marcinz this PR was a bit rushed and I'll make a follow-on PR that subsumes this. let's keep this open until that happens.

@marcinz marcinz changed the base branch from branch-22.10 to branch-24.01 November 9, 2023 16:53
@marcinz marcinz changed the base branch from branch-24.01 to branch-24.03 February 22, 2024 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:improvement PR introduces an improvement and will be classified as such in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants