Last active
May 10, 2022 10:55
-
-
Save vmx/9345b56a7577fb8d42a4484db42868e6 to your computer and use it in GitHub Desktop.
Get some power/energy metrics while running Filecoin proofs/sealing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# From https://aweirdimagination.net/2020/06/28/kill-child-jobs-on-script-exit/ | |
cleanup() { | |
# kill all processes whose parent is this process | |
sudo pkill -P $$ | |
} | |
for sig in INT QUIT HUP TERM; do | |
trap " | |
cleanup | |
trap - $sig EXIT | |
sudo kill -s $sig "'"$$"' "$sig" | |
done | |
trap cleanup EXIT | |
nvidia-smi --loop=1 --format=csv --query-gpu=timestamp,index,name,power.draw,utilization.gpu,pstate > nvidia-smi.log & | |
sudo turbostat --Summary --show Time_Of_Day_Seconds --show PkgWatt --show RAMWatt --interval 1 > turbostat.log & | |
RUST_LOG=info FIL_PROOFS_USE_MULTICORE_SDR=1 FIL_PROOFS_USE_GPU_COLUMN_BUILDER=1 FIL_PROOFS_USE_GPU_TREE_BUILDER=1 FIL_PROOFS_VERIFY_CACHE=0 FIL_PROOFS_MAXIMIZE_CACHING=1 RUSTFLAGS="-C target-cpu=native" cargo run --release --features cuda --bin benchy -- window-post --size 32GiB --cache /storage/d2/cache_rust-fil-proofs/ 2>&1|tee proofs.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment