-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve stripe metadata io and increase the ssd checksum verification…
… coverage (#10220) Summary: Remove unnecessary stripe footer loads as for cache input stream those pre-loads are useless if followup loads do not start from the same offsets, for direct buffer input stream those preload buffers are simply dropped as the preload doesn't hold the stream or the buffer and there are no cache involved. The direct buffer input is also used with batch which doesn't have SSD cache either. This optimizes the file footer handling when we open a new file in dwrf reader base. It also avoids the cache pollution if we read a small buffer first from the same offset, or ensure SSD checksum coverage on all SSD reads if we we read a larger buffer first from the same offset. This PR adds counters to record the number of times that in-memory cache entries get invalidates because of short cache entry size as well as the number of times that on-disk SSD cache read checksum verifications get skipped because of size mismatch. We will enforce check in SSD cache to disallow SSD cache request size mismatch after rolling out in production for a while. Some code cleanup in split reader, For 1hr batch stress shadow test, the average execution time has been reduced by 10% and walltime by ~15%. The improvement comes from the reduced table scan read bytes which has been reduced from 224TB to 128TB. Similar improvement on execution/walltime observed on Deltoid shadow which only has 200 queries which might need more testing. Pull Request resolved: #10220 Reviewed By: Yuhta, zacw7, oerling Differential Revision: D58693531 Pulled By: xiaoxmeng fbshipit-source-id: 4ba47b595e2bd809c25869713dd10871539c1116
- Loading branch information
1 parent
1a50a8a
commit 97cdc63
Showing
34 changed files
with
366 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.