-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplot-all.sh
More file actions
executable file
·60 lines (50 loc) · 790 Bytes
/
plot-all.sh
File metadata and controls
executable file
·60 lines (50 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
trap "" INT
umask 002
cd $(dirname $0)
BASE_DIR=$(pwd)
PATH=$PATH:$BASE_DIR
cd -
plot_dir() {
pushd $1 || return
plot-balance_dirty_pages.sh . &
plot-global_dirty_state.sh . &
plot-bdi_dirty_state.sh . &
plot-writeback_single_inode.sh . &
plot-task-bw.sh . &
# plot-vmstat.sh .
if [[ `basename $PWD` =~ ^nfs ]]; then
plot-nfs-commit.sh . &
plot-dstat-nfss.sh . &
else
plot-iostat.sh . &
fi
popd
trap - INT
wait
trap "" INT
}
[[ $1 ]] && {
while [[ -d $1 ]];
do
plot_dir $1
shift
done
exit
}
while true
do
for file in $BASE_DIR/plot-jobs/*
do
if [[ -f "$file" ]]; then
dir=$(<$file)
rm $file || continue # someone else took the job?
for d in $dir; do
plot_dir $d
done
fi
done
trap - INT
sleep 100
trap "" INT
done