Skip to content

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
manopapad pushed a commit that referenced this pull request Mar 5, 2025
* Make legate::Time resilient to the post-shutdown destruction

* Update src/timing/timing.cc

Co-authored-by: Jacob Faibussowitsch <[email protected]>

---------

Co-authored-by: Jacob Faibussowitsch <[email protected]>
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