-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(spilling): Fallback to timsort when allocation of prefix sort buffer memory fails during spilling #15409
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
base: main
Are you sure you want to change the base?
feat(spilling): Fallback to timsort when allocation of prefix sort buffer memory fails during spilling #15409
Conversation
✅ Deploy Preview for meta-velox canceled.
|
f2dbab5 to
b787658
Compare
|
@jinchengchenghh Would you like to take a look? Thanks! |
|
Do you try this PR, this spill memory pool does not have capacity control, I don't know if it can throw exception, or killed by linux system |
@jinchengchenghh I think it depends on the setting value of allocator capacity. Gluten configures it as |
|
Looks like the pool usage has been tracked, could we use |
b787658 to
953671d
Compare
|
@jinchengchenghh Thank you for your idea. I've updated to use maybeReserve. |
jinchengchenghh
left a comment
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.
Thanks for your enhancement!
|
Please resolve the red CI |
|
@xiaoxmeng @tanjialiang The CI has passed. Would you like to take a look when you are available? |
Allocating prefix sort buffer memory when spilling could lead to
MEM_ALLOC_ERROR. This PR uses Timsort as a fallback when allocation of prefix sort buffer memory fails during spilling.