-
Notifications
You must be signed in to change notification settings - Fork 0
Energy Tools
Nil Mu edited this page Sep 23, 2026
·
1 revision
The energy/
directory contains an experimental, standalone energy-measurement layer:
-
rapl_sampler.shrecords node-local powercap energy counters. -
pdu_sampler.shnormalizes either a site command or SNMP outlet readings tots_unix,node,wattsCSV rows. -
calibrate_rapl_pdu.shruns a steady CPU workload while collecting both sources so a site can characterize the RAPL-to-whole-node gap. -
analysis/plot_energy.pyreports calibration and exclusive-run energy.
Use these tools only with the site's approval and on nodes reserved exclusively for the measurement. PDU access, outlet mapping, and reservation policy are site-specific. Never commit SNMP communities, credentials, real outlet maps, or generated energy data.
Run the following calibration example from the repository root inside an exclusive one-node allocation:
export WMSbench_OUT=/path/outside/the/repository/calibration
export WMSbench_PDU_CMD='/absolute/path/to/site-pdu-wrapper --watts --node'
bash energy/calibrate_rapl_pdu.sh
python analysis/plot_energy.py --calib "$WMSbench_OUT"For a backend energy subset, arrange data as
ROOT/<venue>/energy/<backend>/{rapl,pdu,results} and run:
python analysis/plot_energy.py ROOT --venue cluster-aEnergy sampling is separate from the primary walltime/RPC comparison. Whole-node energy cannot be attributed to one workflow when unrelated tenants share the node.