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

fix: Avoid redownload coalesced region gap twice in buffered inputs #12018

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yuhta
Copy link
Contributor

@Yuhta Yuhta commented Jan 3, 2025

Summary:
In the current DirectBufferedInput and CachedBufferedInput, when we
coalesce some regions during prefetch, the gap between regions are not marked as
available, and if they are needed in adhoc streams, we would issue separate IOs
for them, resulting in unnecessary IOs. This change fixes this by rearranging
the regions and loads generation logic, first generate and group the prefetch
regions, then we can compare the coalesced regions to the adhoc regions and move
those already coalesced to the prefetch loads, reducing the number of adhoc IOs.

Differential Revision: D67810195

Summary:
In the current `DirectBufferedInput` and `CachedBufferedInput`, when we
coalesce some regions during prefetch, the gap between regions are not marked as
available, and if they are needed in adhoc streams, we would issue separate IOs
for them, resulting in unnecessary IOs.  This change fixes this by rearranging
the regions and loads generation logic, first generate and group the prefetch
regions, then we can compare the coalesced regions to the adhoc regions and move
those already coalesced to the prefetch loads, reducing the number of adhoc IOs.

Differential Revision: D67810195
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 3, 2025
Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 132eaf9
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/677862f951012a0008ccecf6

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67810195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants