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

CachingPageTracer Optimization #172

Merged

Conversation

vidyasilai
Copy link
Collaborator

This PR implements a solution to the issue described in #170. It builds upon the existing PageTracer infrastructure to cache outgoing reference information for pages.

Copy link
Collaborator

@tonyastolfi tonyastolfi left a comment

Choose a reason for hiding this comment

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

Here is my initial review.

I'm going to think about finalized_deleted_pages_ based on your comments. I'm not sure it is needed either, but want to give myself some time to ponder.

Thanks for this PR!

src/llfs/api_types.hpp Outdated Show resolved Hide resolved
src/llfs/committable_page_cache_job.cpp Outdated Show resolved Hide resolved
src/llfs/committable_page_cache_job.cpp Outdated Show resolved Hide resolved
src/llfs/committable_page_cache_job.cpp Outdated Show resolved Hide resolved
src/llfs/page_tracer.hpp Outdated Show resolved Hide resolved
src/llfs/no_outgoing_refs_cache.cpp Outdated Show resolved Hide resolved
src/llfs/no_outgoing_refs_cache.cpp Outdated Show resolved Hide resolved
src/llfs/no_outgoing_refs_cache.hpp Outdated Show resolved Hide resolved
src/llfs/page_cache_job.hpp Show resolved Hide resolved
src/llfs/page_device_entry.hpp Show resolved Hide resolved
Copy link
Collaborator

@tonyastolfi tonyastolfi left a comment

Choose a reason for hiding this comment

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

Thanks for the offline explanation of the purpose of finalized_deleted_pages_. I like the idea, just think the polarity of the set should be reversed to optimize the common case, as noted in a new comment at the declaration of this data member.

@tonyastolfi tonyastolfi merged commit 1b79ed7 into mathworks:main Nov 6, 2024
4 checks passed
@vidyasilai vidyasilai linked an issue Nov 6, 2024 that may be closed by this pull request
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.

Eliminate redundant page loads when tracing outgoing references
2 participants