Skip to content

Instantly share code, notes, and snippets.

@mdcallag
Last active August 29, 2015 14:17
Show Gist options
  • Save mdcallag/db43a58bd5ac624f01e1 to your computer and use it in GitHub Desktop.
Save mdcallag/db43a58bd5ac624f01e1 to your computer and use it in GitHub Desktop.
Example command line where I change many of the default parameters. This is to be run for 1, 4 and 16 threads
nk=$(( 128 * 1024 * 1024 )) \
DO_SETUP=1 \
SAVE_SETUP=1 \
VAL_SIZE=400 \
CACHE_BYTES=$(( 80 * 1024 * 1024 * 1024 )) \
NSECONDS=3600 \
NKEYS=$nk \
NWRITESPERSEC=10000 \
DATA_DIR=/data/mysql/rocksdb2/ldb.256m.400vs \
LOG_DIR=/data/mysql/rocksdb2/ldb.256m.400vs \
bash tools/run_flash_bench.sh 1 2
Files produced by this:
-rw-r--r-- 1 root root 8.8K Mar 27 11:09 benchmark_bulkload_fillrandom.log
-rw-r--r-- 1 root root 6.0K Mar 27 11:10 benchmark_bulkload_compact.log
-rw-r--r-- 1 root root 8.7K Mar 27 11:10 benchmark_fillseq.log
-rw-r--r-- 1 root root 103K Mar 27 11:13 benchmark_readrandom.t1.log
-rw-r--r-- 1 root root 61K Mar 27 11:16 benchmark_fwdrange.t1.log
-rw-r--r-- 1 root root 32K Mar 27 11:19 benchmark_revrange.t1.log
-rw-r--r-- 1 root root 123K Mar 27 11:22 benchmark_readrandom.t2.log
-rw-r--r-- 1 root root 104K Mar 27 11:25 benchmark_fwdrange.t2.log
-rw-r--r-- 1 root root 58K Mar 27 11:28 benchmark_revrange.t2.log
-rw-r--r-- 1 root root 60K Mar 27 11:31 benchmark_overwrite.t1.s0.log
-rw-r--r-- 1 root root 9.5K Mar 27 11:34 benchmark_overwrite.t1.s1.log
-rw-r--r-- 1 root root 32K Mar 27 11:37 benchmark_updaterandom.t1.s0.log
-rw-r--r-- 1 root root 9.4K Mar 27 11:40 benchmark_updaterandom.t1.s1.log
-rw-r--r-- 1 root root 65K Mar 27 11:43 benchmark_readwhilewriting.t1.log
-rw-r--r-- 1 root root 33K Mar 27 11:46 benchmark_fwdrangewhilewriting.t1.log
-rw-r--r-- 1 root root 19K Mar 27 11:49 benchmark_revrangewhilewriting.t1.log
-rw-r--r-- 1 root root 42K Mar 27 11:52 benchmark_overwrite.t2.s0.log
-rw-r--r-- 1 root root 12K Mar 27 11:55 benchmark_overwrite.t2.s1.log
-rw-r--r-- 1 root root 39K Mar 27 11:58 benchmark_updaterandom.t2.s0.log
-rw-r--r-- 1 root root 7.9K Mar 27 12:01 benchmark_updaterandom.t2.s1.log
-rw-r--r-- 1 root root 99K Mar 27 12:04 benchmark_readwhilewriting.t2.log
-rw-r--r-- 1 root root 33K Mar 27 12:07 benchmark_fwdrangewhilewriting.t2.log
-rw-r--r-- 1 root root 20K Mar 27 12:10 benchmark_revrangewhilewriting.t2.log
-rw-r--r-- 1 root root 54K Mar 27 12:13 benchmark_mergerandom.t1.s0.log
-rw-r--r-- 1 root root 12K Mar 27 12:16 benchmark_mergerandom.t1.s1.log
-rw-r--r-- 1 root root 34K Mar 27 12:19 benchmark_readwhilemerging.t1.log
-rw-r--r-- 1 root root 17K Mar 27 12:22 benchmark_fwdrangewhilemerging.t1.log
-rw-r--r-- 1 root root 21K Mar 27 12:25 benchmark_revrangewhilemerging.t1.log
-rw-r--r-- 1 root root 40K Mar 27 12:28 benchmark_mergerandom.t2.s0.log
-rw-r--r-- 1 root root 12K Mar 27 12:31 benchmark_mergerandom.t2.s1.log
-rw-r--r-- 1 root root 50K Mar 27 12:34 benchmark_readwhilemerging.t2.log
-rw-r--r-- 1 root root 26K Mar 27 12:37 benchmark_fwdrangewhilemerging.t2.log
-rw-r--r-- 1 root root 2.9K Mar 27 12:40 schedule.txt
-rw-r--r-- 1 root root 33K Mar 27 12:40 benchmark_revrangewhilemerging.t2.log
-rw-r--r-- 1 root root 3.0K Mar 27 13:24 report.txt
The file report.txt has a performance summary that looks like:
ops/sec mb/sec L0_GB Sum_GB W-Amp W-MB/s usec/op p50 p75 p99 Uptime Stalll-time Stall% Test
170516 19.5 0.1 0.1 1.0 16.5 5.865 4.87 5.87 11.66 6.2 00:00:0.000 0.0 bulkload
317960 36.4 0.1 0.1 1.0 31.0 3.145 2.38 2.75 6.67 3.3 00:00:0.000 0.0 fillseq
169678 19.4 0.1 0.1 1.0 16.0 5.893 4.93 5.90 11.39 6.4 00:00:0.000 0.0 overwrite.t1.s0
313064 35.8 0.0 0.1 .5 3.194 2.62 2.99 4.10 177.9 00:00:0.000 0.0 readrandom.t1
196655 225.1 0.0 0 5.085 4.51 5.10 6.94 176.0 00:00:0.000 0.0 fwdrange.t1
89959 103.0 0.0 0 11.116 10.49 11.59 17.08 174.6 00:00:0.000 0.0 revrange.t1
421196 48.2 0.0 0 2.374 3.92 4.73 13.06 177.7 00:00:0.000 0.0 readrandom.t2
352475 403.4 0.0 0 2.837 4.94 5.83 8.45 175.9 00:00:0.000 0.0 fwdrange.t2
187357 214.4 0.0 0 5.337 9.98 11.16 14.71 174.5 00:00:0.000 0.0 revrange.t2
164322 18.8 2.3 3.3 1.4 18.9 6.086 5.10 6.01 11.77 178.7 00:00:0.000 0.0 overwrite.t1.s0
10805 1.2 0.1 0.1 1.0 1.1 92.549 90.50 98.57 153.69 91.5 00:00:0.000 0.0 overwrite.t1.s1
76776 17.6 1.1 1.6 1.4 9.1 13.025 12.20 14.05 24.31 178.2 00:00:0.000 0.0 updaterandom.t1.s0
10799 2.5 0.1 0.1 1.0 1.0 92.593 90.70 96.57 129.98 100.1 00:00:0.000 0.0 updaterandom.t1.s1
185229 21.2 0.0 0.1 .5 5.399 4.85 5.64 10.67 175.6 00:00:0.000 0.0 readwhilewriting.t1
82235 94.1 0.0 0.0 0 12.160 11.30 12.90 19.40 178.7 00:00:0.000 0.0 fwdrangewhilewriting.t1
36117 41.3 0.0 0.0 0 27.688 26.96 29.48 39.47 174.3 00:00:0.000 0.0 revrangewhilewriting.t1
111931 12.8 1.5 2.3 1.5 13.7 8.934 18.55 22.87 36.14 171.8 00:00:0.000 0.0 overwrite.t2.s0
16108 1.8 0.2 0.3 1.5 2.3 62.077 98.80 168.52 242.50 129.4 00:00:0.000 0.0 overwrite.t2.s1
100842 23.1 1.3 1.9 1.4 11.6 9.916 18.59 22.30 34.78 167.5 00:00:0.000 0.0 updaterandom.t2.s0
11165 2.6 89.564 173.22 179.85 249.91 updaterandom.t2.s1
299735 34.3 0.0 0.0 0 3.336 6.18 7.26 11.94 175.6 00:00:0.000 0.0 readwhilewriting.t2
88555 101.3 0.0 0.0 0 11.292 22.08 24.19 31.62 174.6 00:00:0.000 0.0 fwdrangewhilewriting.t2
45713 52.3 0.0 0.1 .5 21.875 42.84 46.69 59.38 177.9 00:00:0.000 0.0 revrangewhilewriting.t2
146682 16.8 2.1 2.9 1.3 16.5 6.817 5.81 6.82 12.76 179.0 00:00:0.000 0.0 mergerandom.t1.s0
11948 1.4 0.2 0.3 1.5 1.7 83.692 81.64 86.84 118.33 179.3 00:00:0.000 0.0 mergerandom.t1.s1
84210 9.6 0.0 0.0 0 11.875 11.19 13.36 20.86 175.3 00:00:0.000 0.0 readwhilemerging.t1
32316 37.0 0.0 0.1 .6 30.944 29.68 33.11 44.59 160.7 00:00:0.000 0.0 fwdrangewhilemerging.t1
45005 51.5 0.0 0.0 0 22.220 21.63 23.98 32.75 162.2 00:00:0.000 0.0 revrangewhilemerging.t1
104275 11.9 1.4 2.1 1.5 12.0 9.590 19.16 24.42 37.75 178.5 00:00:0.000 0.0 mergerandom.t2.s0
11761 1.3 0.2 0.3 1.5 1.7 85.024 171.10 178.06 248.50 179.3 00:00:0.000 0.0 mergerandom.t2.s1
137071 15.7 0.0 0.0 0 7.295 13.87 16.48 24.74 178.5 00:00:0.000 0.0 readwhilemerging.t2
60628 69.4 0.0 0.1 .5 16.494 32.33 34.75 44.08 173.3 00:00:0.000 0.0 fwdrangewhilemerging.t2
85438 97.8 0.0 0.0 0 11.704 22.68 24.87 34.12 176.5 00:00:0.000 0.0 revrangewhilemerging.t2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment