flux-schedbench
Scheduler benchmarks for the Flux resource manager. Measures submit throughput, allocation rates, and placement quality against fake or real resources, and saves results for later comparison.
Requirements
- flux-core ≥ 0.85.0 (with
pkgutilnamespace-package support influx/__init__.py) - Python ≥ 3.6
Installation
pip (recommended)
pip install flux-schedbench
flux-core is a required runtime dependency but is not on PyPI — install
it separately from source before using flux-schedbench. Once installed,
flux schedbench is available to any flux that finds ~/.local/bin
(or the pip prefix) in PATH.
From source (autotools)
./autogen.sh
/path/to/flux ./configure
make install
./configure detects the prefix automatically when flux is in PATH.
Pass an explicit prefix with --prefix=/path/to/flux if needed.
Subcommands
flux schedbench run TEST [OPTIONS]
Run a named benchmark. By default a fresh Flux subinstance is launched with
fake resources; pass --exec to benchmark the current enclosing instance
instead.
Key options:
| Flag | Default | Description |
|---|---|---|
-N, --nodes |
4 | Fake-resource node count |
-c, --cores-per-node |
64 | Cores per node |
-g, --gpus-per-node |
8 | GPUs per node |
--njobs |
1000 | Jobs to submit |
--scheduler |
sched-simple |
Scheduler module to load |
--scheduler-options |
— | Module options string (shlex-parsed) |
--hwloc-xml-path |
— | Per-node hwloc XML for topology-aware runs |
--amend-r |
— | Python callable to mutate R before KVS write |
--tag |
— | Free-form label stored in the result |
--results-file |
./schedbench-results.json |
Output file |
-x, --exec |
— | Run against the current enclosing instance |
flux schedbench sweep [TEST] [OPTIONS]
Run a cross-product parameter study as parallel Flux jobs. Comma lists and
RFC 45
ranges (e.g. 16-1024:2) become sweep axes; scalars stay fixed. A live
dashboard tracks progress across the matrix.
Pass --from FILE.toml for structured sweep definitions including
multi-module scheduler recipes.
flux schedbench report TEST [OPTIONS]
Pretty-print results for a benchmark from the results file.
Benchmarks
throughput — Submit N jobs as fast as possible. Headline metric:
throughput (jobs/sec, broker-side from submit to clean). Also records
submit, alloc, ingest, and script-wall rates.
fill-machine — Submit jobs sized to saturate the resource set, then
cancel. Measures how fast the scheduler fills the machine and cancels work
en masse.
locality — Score how well the scheduler packs each slot's cores and
GPUs into a single NUMA/socket domain. Requires --hwloc-xml-path.
Headline metric: mean locality fraction (0–1).
Examples
Basic throughput run against 4-node fake cluster:
flux schedbench run throughput --njobs=500
Larger cluster with a non-default scheduler:
flux schedbench run throughput -N 100 --cores-per-node=32 \
--scheduler=sched-fluxion-qmanager \
--scheduler-options="queue-depth=64"
Locality benchmark on a synthetic NUMA topology:
lstopo -i "package:2 numa:4 core:8 pu:1" --of xml > syn.xml
flux schedbench run locality -N 16 --hwloc-xml-path=./syn.xml \
--nslots=2 --slot-cores=4 --njobs=200
Parameter sweep over node counts and job counts:
flux schedbench sweep throughput \
--nodes=16,32,64,128 --njobs=4096,8192
Or from a TOML sweep file:
flux schedbench sweep --from sweep.toml
Print results:
flux schedbench report throughput
Development
Run the test suite:
make check
Tests require a working flux in PATH (or FLUX set in the
environment). The Python unit tests (t/python/) run without a broker;
the sharness tests (t/*.t) launch their own Flux subinstances.
Code style is enforced by pre-commit:
pip install pre-commit
pre-commit install
Metadata
Release files for flux-schedbench 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flux_schedbench-0.1.0.tar.gz | 178.7 kB | With provenance | Details for flux_schedbench-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flux_schedbench-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for flux_schedbench-0.1.0-py3-none-any.whl |
Total release size: 281.8 kB
Release files / flux_schedbench-0.1.0.tar.gz
| Download URL | flux_schedbench-0.1.0.tar.gz |
|---|---|
| Size | 178.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a56162ffab95d26e1148ad53a633ea8e2412cd3508063781d37804c6b2e394ef
|
|
BLAKE2b-256 checksum How to use checksums |
cf9abc774877e9be0816cbf77ab079133af3497389d47cd4832d9a4bfb8444d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 21, 2026.
Transparency logRelease files / flux_schedbench-0.1.0-py3-none-any.whl
| Download URL | flux_schedbench-0.1.0-py3-none-any.whl |
|---|---|
| Size | 103.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75fa1f966c8610b5a6dd7b72f997260217a1f5cab778db0400dec18611032e65
|
|
BLAKE2b-256 checksum How to use checksums |
cb8b07a63e75fd6838bd779070952be3804345b062e874ea95b9717ef56b6743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 21, 2026.
Transparency logSecurity for flux-schedbench 0.1.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.
Attestation for flux_schedbench-0.1.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 May 21, 2026.
Transparency logA 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.