-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add feature to log disk I/O and a gnuplot script to plot it
- Loading branch information
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! gnuplot | ||
|
||
set output "disk.png" | ||
set term png size 14000,900 small | ||
set termoption enhanced | ||
set xrange [0:*] | ||
set xlabel "timestamp" | ||
set ylabel "offset" | ||
set format y "%6.0fMB" | ||
set format x "%6.1fmin" | ||
set key off | ||
plot "disk.log" using ($1/1000/60):($2/1024/1024):($2/1024/1024):($3/1024/1024):($2/1024/1024):5 with candlesticks lc variable | ||
|
||
set output "disk-reads.png" | ||
plot "disk.log" using ($4 == 0 ? ($1/1000/60) : 1/0):($2/1024/1024):($2/1024/1024):($3/1024/1024):($2/1024/1024):5 with candlesticks lc variable | ||
|
||
set output "disk-writes.png" | ||
plot "disk.log" using ($4 == 1 ? ($1/1000/60) : 1/0):($2/1024/1024):($2/1024/1024):($3/1024/1024):($2/1024/1024):5 with candlesticks lc variable | ||
|
||
set output "disk-overview.png" | ||
set term png size 1400,700 small | ||
plot "disk.log" using ($1/1000/60):($2/1024/1024):($2/1024/1024):($3/1024/1024):($2/1024/1024):5 with candlesticks lc variable |