Skip to content

CachingPageTracer Optimization#172

Merged
tonyastolfi merged 5 commits intomathworks:mainfrom
vidyasilai:caching_page_tracer_optimization
Nov 6, 2024
Merged

CachingPageTracer Optimization#172
tonyastolfi merged 5 commits intomathworks:mainfrom
vidyasilai:caching_page_tracer_optimization

Conversation

@vidyasilai
Copy link
Copy Markdown
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
Copy Markdown
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!

Comment thread src/llfs/api_types.hpp Outdated
Comment thread src/llfs/committable_page_cache_job.cpp Outdated
Comment thread src/llfs/committable_page_cache_job.cpp Outdated
Comment thread src/llfs/committable_page_cache_job.cpp Outdated
Comment thread src/llfs/page_tracer.hpp Outdated
Comment thread src/llfs/no_outgoing_refs_cache.cpp Outdated
Comment thread src/llfs/no_outgoing_refs_cache.cpp Outdated
Comment thread src/llfs/no_outgoing_refs_cache.hpp Outdated
Comment thread src/llfs/page_cache_job.hpp
Comment thread src/llfs/page_device_entry.hpp
Comment thread src/llfs/no_outgoing_refs_cache.hpp Outdated
Comment thread src/llfs/no_outgoing_refs_cache.cpp Outdated
Comment thread src/llfs/no_outgoing_refs_cache.cpp Outdated
Comment thread src/llfs/no_outgoing_refs_cache.cpp Outdated
Comment thread src/llfs/no_outgoing_refs_cache.cpp Outdated
Comment thread src/llfs/committable_page_cache_job.hpp Outdated
Copy link
Copy Markdown
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
@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