mirror of
https://github.com/psla/hard-drive-stats.git
synced 2026-11-14 04:58:49 -08:00
Draw performance graphs for hard drive
- Python 67.6%
- Shell 32.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| mdadm-sdc-2.txt | ||
| mdadm-sdc.txt | ||
| mdadm-sdf-2.txt | ||
| mdadm-sdf.txt | ||
| parse.py | ||
| plot.sh | ||
| readme.md | ||
| sdc.txt | ||
| stats.sh | ||
| wd-elements-12TB-WD120EMAZ.stats.sda.txt | ||
| wd-elements-12TB-WD120EMAZ.stats.txt | ||
Overview
This set of scripts allows to gather performance & temperature data when running operations on disk. For example, I chose to run this when running badblocks -wsv /dev/my-disk -b 4096.
Preparation
You must run (in screen/tmux) stats.sh.
- modify stats.sh 'drive' to use your drive name (yeah, yeah, should be a parameter)
- run
./stats.sh | tee stats-output-filefor however long you want
Run you command
badblocks -wsv /dev/sdg -b 4096
Draw graph
- Modify the filename with your stats in
parse.py. - Run
./plot.sh
Enjoy