Skip to content

Conversation

@magnatelee
Copy link
Contributor

The instance manager was checking equality between policies when deciding whether a given instance can be reused. That's overly strict in certain cases and was causing thrashing on the instance cache. This PR replaces the equality check with a subsumption check.

@magnatelee magnatelee added the category:improvement PR introduces an improvement and will be classified as such in release notes label Mar 16, 2023
@magnatelee magnatelee requested a review from jjwilke March 16, 2023 04:05
Copy link
Contributor

@jjwilke jjwilke left a comment

Choose a reason for hiding this comment

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

LGTM. Can confirm no more cache misses in the benchmark after the change.

@magnatelee magnatelee merged commit 78c61d8 into nv-legate:branch-23.05 Mar 17, 2023
@magnatelee magnatelee deleted the subsume branch March 17, 2023 18:38
manopapad pushed a commit that referenced this pull request Mar 5, 2025
* Fix local comm race condition

* Minor refactoring
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.

2 participants