Skip to content

[core] adding additional stats to the dump object store usage api. #53856

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

Merged
merged 5 commits into from
Jul 16, 2025

Conversation

israbbani
Copy link
Contributor

@israbbani israbbani commented Jun 16, 2025

  • Adding stats about spilling, sealed objects, and bytes used instead of just LRU stats to the output.
  • Adding documentation to the CoreWorker API in .pyx and .pxd files.
  • Returning a Status instead of an unhandled exception.

Example output

Plasma Usage:
- objects spillable: 0
- bytes spillable: 0
- objects unsealed: 0
- bytes unsealed: 0
- objects in use: 0
- bytes in use: 0
- objects evictable: 0
- bytes evictable: 0

- objects created by worker: 0
- bytes created by worker: 0
- objects restored: 0
- bytes restored: 0
- objects received: 0
- bytes received: 0
- objects errored: 0
- bytes errored: 0

Eviction Stats:
(global lru) capacity: 18323147980
(global lru) used: 0%
(global lru) num objects: 0
(global lru) num evictions: 0
(global lru) bytes evicted: 0

- Adding stats about spilling, sealed objects, and bytes used instead of
just LRU stats to the output.
- Adding documentation to the CoreWorker API in .pyx and .pxd files.
- Returning a Status instead of an unhandled exception.

Signed-off-by: irabbani <irabbani@anyscale.com>
@israbbani israbbani added the go add ONLY when ready to merge, run all tests label Jun 16, 2025
Signed-off-by: irabbani <irabbani@anyscale.com>
@@ -2843,12 +2843,11 @@ def get(
"'object_refs' must either be an ObjectRef or a list of ObjectRefs. "
)

# TODO(ujvl): Consider how to allow user to retrieve the ready objects.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is from 6 years ago. I think it's safe to delete it.

@github-actions github-actions bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Jul 11, 2025
@israbbani israbbani removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Jul 11, 2025
@ray-project ray-project deleted a comment from github-actions bot Jul 11, 2025
Signed-off-by: irabbani <irabbani@anyscale.com>
Comment on lines +3599 to +3604
"""Logs the current usage of the Plasma Store.
Makes an unretriable blocking IPC to the Plasma Store.

Raises an error if cannot connect to the Plasma Store. This should
be fatal for the worker.
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to settle on a standard for

  1. Adding documentation to the various cython files.
  2. Breaking them up the behemoth _raylet.pyx file into separate files.
  3. Unit testing? I'm not sure if it already exists yet.

@israbbani israbbani requested a review from a team July 15, 2025 22:34
@israbbani israbbani marked this pull request as ready for review July 15, 2025 22:34
@edoakes edoakes merged commit b777c1f into master Jul 16, 2025
5 checks passed
@edoakes edoakes deleted the irabbani/plasma-debug branch July 16, 2025 20:55
alimaazamat pushed a commit to alimaazamat/ray that referenced this pull request Jul 24, 2025
…ay-project#53856)

- Adding stats about spilling, sealed objects, and bytes used instead of
just LRU stats to the output.
- Adding documentation to the CoreWorker API in .pyx and .pxd files.
- Returning a Status instead of an unhandled exception.

Example output
```
Plasma Usage:
- objects spillable: 0
- bytes spillable: 0
- objects unsealed: 0
- bytes unsealed: 0
- objects in use: 0
- bytes in use: 0
- objects evictable: 0
- bytes evictable: 0

- objects created by worker: 0
- bytes created by worker: 0
- objects restored: 0
- bytes restored: 0
- objects received: 0
- bytes received: 0
- objects errored: 0
- bytes errored: 0

Eviction Stats:
(global lru) capacity: 18323147980
(global lru) used: 0%
(global lru) num objects: 0
(global lru) num evictions: 0
(global lru) bytes evicted: 0
```

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: alimaazamat <alima.azamat2003@gmail.com>
krishnakalyan3 pushed a commit to krishnakalyan3/ray that referenced this pull request Jul 30, 2025
…ay-project#53856)

- Adding stats about spilling, sealed objects, and bytes used instead of
just LRU stats to the output.
- Adding documentation to the CoreWorker API in .pyx and .pxd files.
- Returning a Status instead of an unhandled exception.

Example output
```
Plasma Usage:
- objects spillable: 0
- bytes spillable: 0
- objects unsealed: 0
- bytes unsealed: 0
- objects in use: 0
- bytes in use: 0
- objects evictable: 0
- bytes evictable: 0

- objects created by worker: 0
- bytes created by worker: 0
- objects restored: 0
- bytes restored: 0
- objects received: 0
- bytes received: 0
- objects errored: 0
- bytes errored: 0

Eviction Stats:
(global lru) capacity: 18323147980
(global lru) used: 0%
(global lru) num objects: 0
(global lru) num evictions: 0
(global lru) bytes evicted: 0
```

---------

Signed-off-by: irabbani <irabbani@anyscale.com>
Signed-off-by: Krishna Kalyan <krishnakalyan3@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants