Skip to main content

rampgate-psutil

Host RAM and CPU probe for rampgate, an admission scheduler for jobs that ramp up their memory. It treats the host as a device: it reports total RAM and logical cores, used RAM and busy cores, and the usage of a process and its descendants, all through psutil.

Install

pip install rampgate-psutil

Depends on rampgate and psutil.

Usage

from rampgate_psutil import HostProbe

probe = HostProbe("cpu", {"ram": "GiB", "cpu": "cores"})
engine.add_device(probe.device())           # capacity: total RAM, logical cores
engine.observe(probe.sample(t))             # DeviceObserved: total - available RAM, busy cores
usage = probe.process_tree_usage(pid)       # RSS sum and cores of pid and its descendants

What to expect

  • The first CPU sample is 0. CPU usage is measured between two calls, so the first sample of the host or of a process reports 0 cores.
  • Set a usage floor yourself if your jobs report no steps. Unlike rampgate-nvml, this probe sets no Rule S floor (Device.stable_min_usage).
  • Report jobs before the device total. To feed a job's usage together with the device sample, use engine.observe_sample. See Integrating rampgate.

The real-hardware demonstration used a GPU; CPU devices are not yet tested on real workloads.

Documentation · rampgate core · Source · Changelog

Apache-2.0.

Metadata

Release files for rampgate-psutil 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rampgate-psutil 0.2.0
File Size Uploaded Provenance Actions
rampgate_psutil-0.2.0.tar.gz 9.0 kB With provenance Details for rampgate_psutil-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rampgate-psutil 0.2.0
File Interpreter ABI Platform Actions
rampgate_psutil-0.2.0-py3-none-any.whl Python 3 none any Details for rampgate_psutil-0.2.0-py3-none-any.whl

Total release size: 17.6 kB

Release files / rampgate_psutil-0.2.0.tar.gz

Download URL rampgate_psutil-0.2.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1af359fc36ae5608d5af206aecf580a5c827149e9d73b950d1a4477ff646e6a4
BLAKE2b-256 checksum
How to use checksums
44edd9e38ecb6d1f3ff099453a811cbc942ce83ea3beeac8a850fbca4b3c5c6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / rampgate_psutil-0.2.0-py3-none-any.whl

Download URL rampgate_psutil-0.2.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3df83ba545f8713a3a58ee90612b171988b891b93bd59d1db777c37d8424e99c
BLAKE2b-256 checksum
How to use checksums
f74a0c7c4bf6275f7a9a6ea48c7e54c6ac5811831be4250fe8e3aa78bc200d05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for rampgate-psutil 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rampgate_psutil-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page