blob: 80a7fafe816d9d3919ed20e3f3a8bb9ae7b1d27c (
plain)
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
|
#!/bin/sh
# This script needs to be present on glusterfs mount, (ie, on every node which wants to run benchmark)
ifilename="/dev/zero"
ofilename="testdir/testfile.$(hostname)"
result="output/output.$(hostname)"
blocksize=128k
count=8
mkdir -p testdir;
mkdir -p output;
echo > ${result}
while [ ! -e start-test ]; do
sleep 1;
done;
for i in $(seq 1 5); do
# write
dd if=${ifilename} of=${ofilename} bs=${blocksize} count=${count} 2>&1 | tail -n 1 | cut -f 8,9 -d ' ' >> ${result} ;
# read
#dd if=${ofilename} of=/dev/null bs=${blocksize} count=${count} 2>&1 | tail -n 1 | cut -f 8,9 -d ' ' >> ${result} ;
done
rm -f start-test
|