Skip to content

[Data] Add logical memory usage chart - #66044

Merged
bveeramani merged 3 commits into
ray-project:masterfrom
viiccwen:data-memory-usage-chart
Sep 17, 2026
Merged

bveeramani merged 3 commits into
ray-project:masterfrom
viiccwen:data-memory-usage-chart

Conversation

@viiccwen

Copy link
Copy Markdown
Contributor

Description

Ray Data exposes logical CPU and GPU usage in the Data dashboard, but it does not expose the logical heap memory reserved by running operator tasks. Now that memory is a first-class scheduling resource, users need the same visibility for memory when diagnosing resource allocation and operator concurrency.

Related issues

None

Additional information

image

Expose logical heap memory usage through Ray Data metrics and add it to the Data dashboard resource usage charts.

Signed-off-by: viiccwen <[email protected]>
@viiccwen
viiccwen requested a review from a team as a code owner September 10, 2026 05:47

@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 introduces a new Prometheus metric, ray_data_memory_usage_bytes, to track the logical heap memory allocated to dataset operators. It integrates this metric into the dashboard panels, data head, and internal execution statistics. The review feedback suggests using getattr defensively when retrieving the memory attribute from resource_usage to avoid potential AttributeErrors in legacy operators or mock objects.

@ray-gardener ray-gardener Bot added dashboard Issues specific to the Ray Dashboard usability data Ray Data-related issues observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling community-contribution Contributed by the community labels Sep 10, 2026
Include logical memory usage in the existing stats output golden values.

Signed-off-by: viiccwen <[email protected]>
@bveeramani bveeramani self-assigned this Sep 15, 2026
@bveeramani bveeramani added the go add ONLY when ready to merge, run all tests label Sep 17, 2026
@bveeramani
bveeramani requested a review from a team as a code owner September 17, 2026 00:35
@bveeramani
bveeramani enabled auto-merge (squash) September 17, 2026 00:36
@bveeramani
bveeramani disabled auto-merge September 17, 2026 00:36
@bveeramani
bveeramani enabled auto-merge (squash) September 17, 2026 00:36
@bveeramani
bveeramani disabled auto-merge September 17, 2026 00:36
@bveeramani
bveeramani enabled auto-merge (squash) September 17, 2026 00:36
@bveeramani
bveeramani merged commit 50ee4e9 into ray-project:master Sep 17, 2026
9 checks passed
@viiccwen
viiccwen deleted the data-memory-usage-chart branch September 17, 2026 02:15
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Description

Ray Data exposes logical CPU and GPU usage in the Data dashboard, but it
does not expose the logical heap memory reserved by running operator
tasks. Now that memory is a first-class scheduling resource, users need
the same visibility for memory when diagnosing resource allocation and
operator concurrency.

## Related issues
None

## Additional information

<img width="2880" height="1556" alt="image"
src="https://github.com/user-attachments/assets/fc9eee4e-dc27-4fb9-bbb5-84587e4c9462"
/>

---------

Signed-off-by: viiccwen <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
Co-authored-by: Balaji Veeramani <[email protected]>
Co-authored-by: kriyanshii <[email protected]>
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 dashboard Issues specific to the Ray Dashboard data Ray Data-related issues go add ONLY when ready to merge, run all tests observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling usability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants