-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
It might be useful to add some flag e.g. --collect-metrics, which dumps in one (or more) files hardware metrics during the proving process.
The most obvious one are GPU metrics. Prob the easiest way to do this is to leverage nvidia-smi which already have watch flags and output formats, etc.
Example:
$ nvidia-smi --query-gpu=timestamp,name,utilization.gpu,utilization.memory,memory.used,memory.total,temperature.gpu --format=csv -l 1 > gpu_log.csv
And tailing the .csv file:
2026/01/06 15:13:03.389, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 49
2026/01/06 15:13:03.389, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 48
2026/01/06 15:13:04.389, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 41
2026/01/06 15:13:04.390, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 47
2026/01/06 15:13:04.390, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 48
2026/01/06 15:13:04.390, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 49
2026/01/06 15:13:04.390, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 47
2026/01/06 15:13:04.390, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 47
2026/01/06 15:13:04.390, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 49
2026/01/06 15:13:04.390, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 48
2026/01/06 15:13:05.391, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 41
2026/01/06 15:13:05.391, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 47
2026/01/06 15:13:05.391, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 48
2026/01/06 15:13:05.391, NVIDIA GeForce RTX 5090, 0 %, 0 %, 2 MiB, 32607 MiB, 48
Some considerations:
- We could name the file accordingly with some zkvm name, start-timestamp, end-timestamp
- See which
--query-gpustuff makes sense to collect, and maybe supportERE_GPU_METRICSto allow the user to customize - Not sure about CSV format by default, but I guess sounds reasonable.
- Apparently, there is a
-lmsto set the frequency atmslevel if that's useful, but not sure.
All points above are thinking out loud.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels