nemo_gym.telemetry.memory
nemo_gym.telemetry.memory
Linux process-tree memory sampling for Gym-managed servers.
Module Contents
Classes
Functions
Data
API
Current host memory capacity and pressure.
Periodically report host memory and Gym-managed server process trees.
Record one host sample and one sample for every configured server.
Start background sampling after recording an initial sample.
Stop sampling and record final live host and process-tree values.
One process tree’s current memory.
One configured Gym server and the root process Gym spawned for it.
Return a snapshot of a Linux process tree, including its root.
Return (rss, pss) bytes for one process, or None after an exit race.
Measure current host memory using psutil’s cross-platform accounting.
Measure current RSS and PSS for a root process and its descendants.
Return whether this host exposes Linux procfs memory accounting.
Record current host memory and its sampled peak through Lens.
Record current and sampled-peak process-tree memory through Lens.