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

[GLUTEN-8025][VL] set default kSpillWriteBufferSize to the same as velox #8026

Closed
wants to merge 4 commits into from

Conversation

FelixYBW
Copy link
Contributor

@FelixYBW FelixYBW commented Nov 23, 2024

The kSpillWriteBufferSize is set to 4M by typo. correct it to 1M. The value control the buffer size when spill write data to disk.

Add config kSpillReadBufferSize. it controls the read buffer size when spill data is fetch back. The memory will be allocated as offheap memory. So if there are to many spill files, the memory will exceed offheap size and trigger the OOM issue by operator::getOutput.

The spill files number is impacted by MaxSpillFileSize and MaxSpillRunRows, both are the smaller the more spill files.

@github-actions github-actions bot added the VELOX label Nov 23, 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
Copy link
Contributor Author

#8025

@zhouyuan zhouyuan changed the title [VL] set default kSpillWriteBufferSize to the same as velox [GLUTEN-8025][VL] set default kSpillWriteBufferSize to the same as velox Nov 25, 2024
Copy link

#8025

@zhztheplayer
Copy link
Member

Shall we update the code for consistency? Thanks!

@jinchengchenghh
Copy link
Contributor

Please update the PR to respect kSpillReadBufferSize and map it to Spark config UNSAFE_SORTER_SPILL_READER_BUFFER_SIZE

@github-actions github-actions bot added the CORE works for Gluten Core label Nov 26, 2024
Copy link

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

@FelixYBW
Copy link
Contributor Author

close. merge to #8045

@FelixYBW FelixYBW closed this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE works for Gluten Core VELOX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants