Skip to content

[Data] Modify maximum memory to OOM prevention docs - #65509

Merged
bveeramani merged 3 commits into
ray-project:masterfrom
viiccwen:docs/data-oom-memory-buffer
Aug 18, 2026
Merged

bveeramani merged 3 commits into
ray-project:masterfrom
viiccwen:docs/data-oom-memory-buffer

Conversation

@viiccwen

Copy link
Copy Markdown
Contributor

Description

Update the Ray Data OOM prevention guide to recommend setting memory to 125% of the maximum observed worker heap memory. This leaves a 20% buffer for variation between jobs and future increases in memory use.

Related issues

closes #65508.

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

@viiccwen
viiccwen requested review from a team as code owners August 16, 2026 03:50

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation on avoiding out-of-memory (OOM) errors in Ray Data by recommending that users set the memory parameter to 1.25 times (or 125% of) the maximum observed heap memory. The feedback suggests clarifying the reference to max_uss_bytes by explicitly pointing out that users should look at the 'max' key within this dictionary to avoid ambiguity.

Comment thread doc/source/data/how-to-avoid-ooms.md Resolved
@viiccwen

Copy link
Copy Markdown
Contributor Author

Hello @bveeramani, it's can be reviewed, PTAL. Thanks!

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation data Ray Data-related issues community-contribution Contributed by the community labels Aug 16, 2026

@bveeramani bveeramani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with some minor suggestions

Comment thread doc/source/data/how-to-avoid-ooms.md Resolved
Move the memory buffer recommendation next to the max USS log guidance and clarify the requested-memory calculation.

Signed-off-by: viiccwen <[email protected]>

@bveeramani bveeramani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice

@bveeramani
bveeramani enabled auto-merge (squash) August 18, 2026 05:29
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label Aug 18, 2026
@bveeramani
bveeramani merged commit d456074 into ray-project:master Aug 18, 2026
8 checks passed
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Description
Update the Ray Data OOM prevention guide to recommend setting ``memory``
to 125% of the maximum observed worker heap memory. This leaves a 20%
buffer for variation between jobs and future increases in memory use.

## Related issues
closes ray-project#65508.

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

---------

Signed-off-by: viiccwen <[email protected]>
@viiccwen
viiccwen deleted the docs/data-oom-memory-buffer branch October 12, 2026 02:09
chia7712 pushed a commit to opensource4you/readme that referenced this pull request Oct 23, 2026
Add a nomination under `fellowship/ray/`

Suggested level: 30k

Highlights from 2026-09-01 to 2026-10-11:

- [Contribution](https://github.com/opensource4you/readme/blob/main/fellowship/ray/fellow-contribution/viiccwen/September/report.md)
- Merged 10 Ray Data PRs and filed 8 issues in 6 weeks
- Made shuffle tasks up to 12.84x faster by pinning the fused map function, so large UDF closures are no longer serialized again for every shuffle task ([#65480](ray-project/ray#65480))
- Built a memory observability series to help users avoid OOM: exported task peak USS and logical memory metrics with Grafana charts ([#65666](ray-project/ray#65666), [#66044](ray-project/ray#66044)), added a warning with a suggested memory value when it is set below 1.25x max USS ([#65512](ray-project/ray#65512)), and updated the OOM prevention docs ([#65509](ray-project/ray#65509))
- Found, reported and fixed silent data loss in hash-shuffle (V2) anti joins, where rows were dropped when the other side was empty and had an unknown schema ([#66126](ray-project/ray#66126))
- Reviewed other fellows' PRs with suggestions ([#66878](ray-project/ray#66878))
- Merged the most PRs and filed the most issues of all Ray Fellowship participants
- Solid work for an early contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community data Ray Data-related issues docs An issue or change related to documentation go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Data] Modify maximum memory to OOM prevention guidance

2 participants