-
Notifications
You must be signed in to change notification settings - Fork 7
/
run.sh
29 lines (21 loc) · 1.67 KB
/
run.sh
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
#!/bin/bash
echo 1 > /proc/sys/vm/drop_caches
echo "dev,seq,hint,threads,time,workGB,tlb,readGB,CPUwork"
## seq 10 SSD
timeout 210s ./mmapbench /dev/md127 20 1 0 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
timeout 210s ./mmapbench /dev/md127 20 1 1 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
timeout 210s ./mmapbench /dev/md127 20 1 2 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
fio --filesize=2TB --filename=/dev/md127 --io_size=4TB --name=randbla --rw=randread --iodepth=256 --ioengine=libaio --direct=1 --blocksize=1MB --numjobs=4 --bandwidth-log --output=/dev/null 2> /dev/null
/bin/cp agg-read_bw.log seq10.csv
## seq 1 SSD
timeout 210s ./mmapbench /blk/s2 20 1 0 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
timeout 210s ./mmapbench /blk/s2 20 1 1 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
timeout 210s ./mmapbench /blk/s2 20 1 2 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
fio --filesize=2TB --filename=/blk/s2 --io_size=2TB --name=randbla --rw=randread --iodepth=256 --ioengine=libaio --direct=1 --blocksize=1MB --numjobs=1 --bandwidth-log --output=/dev/null 2> /dev/null
/bin/cp agg-read_bw.log seq1.csv
## rnd 1 SSD
timeout 210s ./mmapbench /blk/s2 100 0 0 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
timeout 210s ./mmapbench /blk/s2 100 0 1 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
timeout 210s ./mmapbench /blk/s2 100 0 2 | grep -v CPUwork ; echo 1 > /proc/sys/vm/drop_caches
fio --filesize=2TB --filename=/blk/s2 --io_size=8GB --name=randbla --rw=randread --iodepth=1 --ioengine=psync --direct=1 --blocksize=4096 --numjobs=100 --bandwidth-log --output=/dev/null 2> /dev/null
/bin/cp agg-read_bw.log rnd1.csv