forked from westerndigitalcorporation/zenfs
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrun_db_bench.sh
executable file
·56 lines (52 loc) · 1.62 KB
/
run_db_bench.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
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
#!/bin/bash
# We can use this script to run basic db_bench tests.
BENCH=/output/db_bench # change to your db_bench executable
DEVICE=nvme8n2 # change to your ZNS SSD
# Delete existing `aux_path`, which is used for temporary files (e.g. lock), ZenFS doesn't write
# actual user data into these files.
#rm -rf /tmp/zenfs_$DEVICE
# Format target device
#./output/zenfs mkfs --zbd=$DEVICE --aux_path=/tmp/zenfs_$DEVICE --finish_threshold=5 --force
${BENCH} \
--zbd_path=$DEVICE \
--benchmarks=readrandom \
--use_existing_db=1 \
--statistics=0 \
--stats_per_interval=1 \
--stats_interval_seconds=60 \
--max_background_flushes=2 \
--max_background_compactions=8 \
--enable_lazy_compaction=0 \
--level0_file_num_compaction_trigger=4 \
--sync=1 \
--allow_concurrent_memtable_write=1 \
--bytes_per_sync=262144 \
--wal_bytes_per_sync=32768 \
--delayed_write_rate=419430400 \
--enable_write_thread_adaptive_yield=1 \
--num_levels=7 \
--key_size=36 \
--value_size=8192 \
--level_compaction_dynamic_level_bytes=true \
--mmap_read=false \
--compression_type=zstd \
--memtablerep=skip_list \
--use_terark_table=false \
--blob_size=1024 \
--blob_gc_ratio=0.0625 \
--write_buffer_size=268435456 \
--max_write_buffer_number=20 \
--target_file_size_base=268435456 \
--target_blob_file_size=268435456 \
--blob_file_defragment_size=33554432 \
--max_dependence_blob_overlap=128 \
--optimize_filters_for_hits=true \
--optimize_range_deletion=true \
--num=12000000 \
--db=test_db_1 \
--benchmark_write_rate_limit=300000000 \
--threads=16 \
--batch_size=100 \
--prepare_log_writer_num=0 \
--num_column_families=5 \
--zenfs_gc_ratio=0.3