-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Add compaction prefetching internal stats #13302
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D68224419 |
c76a690
to
998b94a
Compare
@archang19 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was exported from Phabricator. Differential Revision: D68224419 |
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
998b94a
to
314f2db
Compare
This pull request was exported from Phabricator. Differential Revision: D68224419 |
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
314f2db
to
e63d9fc
Compare
This pull request was exported from Phabricator. Differential Revision: D68224419 |
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
e63d9fc
to
884ef9f
Compare
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
884ef9f
to
c77e283
Compare
@archang19 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was exported from Phabricator. Differential Revision: D68224419 |
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
c77e283
to
58ce655
Compare
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
58ce655
to
aefe67b
Compare
@archang19 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was exported from Phabricator. Differential Revision: D68224419 |
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
aefe67b
to
d4fc198
Compare
This pull request was exported from Phabricator. Differential Revision: D68224419 |
d4fc198
to
d1ec645
Compare
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
4559ceb
to
44b05de
Compare
Summary: Pull Request resolved: facebook#13302 Differential Revision: D68224419 Pulled By: archang19
8faada9
to
2bd88d2
Compare
@archang19 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@@ -781,7 +781,7 @@ Status CompactionJob::Run() { | |||
cfd->internal_comparator(), files_output[file_idx]->meta, | |||
/*range_del_agg=*/nullptr, | |||
compact_->compaction->mutable_cf_options(), | |||
/*table_reader_ptr=*/nullptr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the part that we care about the most IMO. We want to have internal_stats
passed in from CompactionJob::Run
Summary
(Work in progress)
I searched for all the places with
new FilePrefetchBuffer
.GetOrCreatePrefetchBuffer
insidePrefetchBufferCollection
is used for blob files only.BlockBasedTableReader
has aCreateFilePrefetchBuffer
method which is used inPartitionedFilterBlockReader
andPartitionedIndexReader
.CreateFilePrefetchBufferIfNotExists
however is used byBlockPrefetcher
insidePrefetchIfNeeded
, which is called byBlockBasedtableIterator
andPartitionedIndexIterator
.I did not enable
InternalStats
for all use cases because there are many, many places in the codebase, and for what we are interested in, I don't think all the usages are relevant.Right now, we care about the compaction prefetching buffer memory usage.
Test Plan
Work in progress