Repository navigation
Pr/rl memory observability - #117
Merged
reiase merged 10 commits intoNov 19, 2026
Merged
Conversation
VincentCheungKokomo
force-pushed
the
pr/rl-memory-observability
branch
from
November 19, 2026 10:41
38bc820 to
b140824
Compare
added 10 commits
November 19, 2026 19:54
host.memory now reports per-process USS/PSS/anon/locked from smaps_rollup, so RSS inflation from shared object-store pages can be separated from private memory. python.gc records generational counts and GC pause histograms through gc.callbacks; python.cuda_memory and gpu.process_memory attribute GPU memory to the current process (torch allocator fallback works in containers where NVML host PIDs are unavailable). Tables are created eagerly so empty-table queries keep their schema instead of returning _error.
…r memory Ray sanitises the driver environment, so PROBING=1 alone never reached workers. worker_runtime_env()/init_job() propagate PROBING while stripping PROBING_PORT, and the driver samples object-store stats into ray.object_store. examples/rl/actor_mem_sampler.py aggregates local Ray actors' RSS/USS/PSS into rl.actor_memory for the Host Memory page.
The Python wheel ships the runtime as probing/_core*.so, not libprobing.so next to the CLI executable; resolve PROBING_INJECT_LIB from probing._core and stop gating ptrace on the target's memory maps. When Ray propagates the driver's PROBING_PORT to every raylet, only one process can own the port: skip the HTTP bind on AddrInUse and keep the per-process Unix socket instead of retrying forever.
The Memory section now has a host-side view alongside device memory. /memory/host reads the driver-side rl.actor_memory table, shows latest RSS/USS/PSS per actor, a 10-minute USS timeline for the top 12 actors, and a detail table. Missing or empty tables render install instructions instead of an error; /memory links to the new page.
PROBING_SERVER_ADDR is derived from PROBING_PORT in the driver process, so filtering only PROBING_PORT still made every worker inherit the driver's bind address. Strip both and cover the behavior in the worker_runtime_env test.
On the PPO verification pod, ray.util.state.list_actors returned zero actors while four TrainingWorker processes were alive. The actor sampler now scans local ray:: worker processes with psutil and extracts the actor class from the process title, so rl.actor_memory and /memory/host still work when dashboard state is incomplete. Adds actor_class_from_process_title() to probing.ext.ray and a unit test.
Adds a runnable example that snapshots RSS/USS/PSS into rl.mem_snapshot on install and after every explicit gc.collect(). It is idempotent and re-entrancy safe.
chrono has no patched version; it is a direct dependency and is also pulled by arrow/datafusion. Track migration to jiff/time separately so cargo-deny stays green.
Creating every @table memtable at decoration time broke the documented lazy-mmap contract (and test_table_decorator_defers_mmap_until_append). Add eager=False by default and set eager=True only on inference_engine_metric, which needs an empty-query schema before the first scraped row. Add a regression test for the eager path.
VincentCheungKokomo
force-pushed
the
pr/rl-memory-observability
branch
from
November 19, 2026 11:59
c94be3a to
a40fd13
Compare
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.