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

[VL] Enhance spill log readability #7300

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

Yohahaha
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the VELOX label Sep 20, 2024
Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

FelixYBW
FelixYBW previously approved these changes Sep 20, 2024
Comment on lines 241 to 242
LOG(WARNING) << logPrefix << "Spill is requested on a task " << task_->taskId()
<< " that has non-zero running threads, which is not currently supported. Skipping.";
Copy link
Member

@zhztheplayer zhztheplayer Sep 21, 2024

Choose a reason for hiding this comment

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

I think this case is expected but just rare. Can we keep it in INFO? We can lower the verbose level anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

return shrunken;
}
int64_t remaining = size - shrunken;
LOG(INFO) << logPrefix << "Trying to request spill for " << remaining << " bytes...";
auto* mm = memoryManager_->getMemoryManager();
LOG(INFO) << logPrefix << "Trying to request spill for " << velox::succinctBytes(remaining);
Copy link
Member

Choose a reason for hiding this comment

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

nit: With the punctuation mark removed the log could look a bit ugly. E.g.,

W20240920 11:38:50.542661 20191 HashBuild.cpp:1052] Trying to request spill for 1MB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@Yohahaha Yohahaha merged commit 57ad4e6 into apache:main Sep 23, 2024
44 checks passed
@Yohahaha Yohahaha deleted the fix-spill-log branch September 23, 2024 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants