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

Improve page loading performance #18389

Merged
merged 3 commits into from
Nov 10, 2023
Merged

Conversation

elega
Copy link
Contributor

@elega elega commented Nov 7, 2023

What changes are proposed in this pull request?

Improve page loading performance by loading the page form UFS directly, instead of creating a reader.

Why are the changes needed?

To improve the data loading performance & reduce the memory consumption

Does this PR introduce any user facing changes?

N/A

@elega elega force-pushed the yimin/fix-cold-read-preloading branch from f058275 to 2f11561 Compare November 8, 2023 10:41
try {
return mRpcFutureStub.withDeadlineAfter(mRpcTimeoutMs, TimeUnit.MILLISECONDS)
return mRpcBlockingStub.withDeadlineAfter(mRpcTimeoutMs, TimeUnit.MILLISECONDS)
Copy link
Contributor

Choose a reason for hiding this comment

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

why changed to a blocking implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we want to make sure the first call finishes before sending the second call other the tasks in the worker queue will be disordered.

Copy link
Contributor

Choose a reason for hiding this comment

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

in that case you can instead wait on the returned future instead of making it blocking.

@@ -75,13 +75,13 @@ public void put(PageId pageId,
Path parent = Preconditions.checkNotNull(pagePath.getParent(),
"parent of cache file should not be null");
Files.createDirectories(parent);
Files.createFile(pagePath);
//Files.createFile(pagePath);
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be removed instead of commneted out

@elega elega changed the title Fix cold read preloading Improve page loading performance Nov 9, 2023
Copy link
Contributor

@dbw9580 dbw9580 left a comment

Choose a reason for hiding this comment

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

LGTM

@elega elega added the type-performance This issue is about performance related issues or feature request label Nov 10, 2023
@elega
Copy link
Contributor Author

elega commented Nov 10, 2023

alluxio-bot, merge this please.

@alluxio-bot alluxio-bot merged commit 5421aa4 into main Nov 10, 2023
14 checks passed
@elega
Copy link
Contributor Author

elega commented Nov 10, 2023

alluxio-bot, cherry-pick this to branch-3-1.1.x please.

alluxio-bot pushed a commit that referenced this pull request Nov 10, 2023
### What changes are proposed in this pull request?

Improve page loading performance by loading the page form UFS directly, instead of creating a reader.

### Why are the changes needed?

To improve the data loading performance & reduce the memory consumption 

### Does this PR introduce any user facing changes?

N/A
			pr-link: #18389
			change-id: cid-46e89dcfd22dcbbb4090df7f6c8861408ef8cb67
@alluxio-bot
Copy link
Contributor

Auto cherry-pick to branch branch-3-1.1.x successfully opened PR: #18411

alluxio-bot added a commit that referenced this pull request Nov 10, 2023
Cherry-pick of existing commit.
orig-pr: #18389
orig-commit: 5421aa4
orig-commit-author: elega <445092967@qq.com>

			pr-link: #18411
			change-id: cid-46e89dcfd22dcbbb4090df7f6c8861408ef8cb67
ssz1997 pushed a commit to ssz1997/alluxio that referenced this pull request Dec 15, 2023
### What changes are proposed in this pull request?

Improve page loading performance by loading the page form UFS directly, instead of creating a reader.

### Why are the changes needed?

To improve the data loading performance & reduce the memory consumption 

### Does this PR introduce any user facing changes?

N/A
			pr-link: Alluxio#18389
			change-id: cid-46e89dcfd22dcbbb4090df7f6c8861408ef8cb67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-performance This issue is about performance related issues or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants