Tracing: measure IO during each job

Using iostat from package sysstat
This commit is contained in:
Thomas Lavocat 2021-10-07 17:31:34 +02:00 committed by Achilleas Koutsou
parent 8d67b90a2e
commit d26a93319c
3 changed files with 38 additions and 0 deletions

4
schutzbot/start_iostats.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
sudo dnf install -y sysstat
iostat -y -x -o JSON 5 > iostats.json &
echo "PERFLOG $(date --rfc-3339=seconds) starting iostat"

5
schutzbot/stop_iostats.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
killall -s SIGINT iostat
sleep 10
killall iostat || true
echo "PERFLOG $(date --rfc-3339=seconds) stopping iostat"