-
Notifications
You must be signed in to change notification settings - Fork 204
/
db_bench_zns.sh
executable file
·60 lines (55 loc) · 1.67 KB
/
db_bench_zns.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
57
58
59
60
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: ./db_bench_zns.sh [zns_device, e.g. nvme7n2]"
exit 1
fi
DEVICE=$1
OUTPUT=build
rm -rf /tmp/zenfs_$DEVICE*
./$OUTPUT/zenfs mkfs --zbd=$DEVICE --aux_path=/tmp/zenfs_$DEVICE --force=true
./$OUTPUT/db_bench \
--zbd_path=$DEVICE \
--benchmarks=fillrandom \
--readwritepercent=90 \
--use_existing_db=0 \
--histogram=1 \
--statistics=0 \
--stats_per_interval=1 \
--stats_interval_seconds=60 \
--max_background_flushes=3 \
--max_background_compactions=5 \
--enable_lazy_compaction=0 \
--level0_file_num_compaction_trigger=4 \
--sync=1 \
--allow_concurrent_memtable_write=1 \
--bytes_per_sync=32768 \
--wal_bytes_per_sync=32768 \
--delayed_write_rate=419430400 \
--enable_write_thread_adaptive_yield=1 \
--threads=16 \
--num_levels=7 \
--key_size=36 \
--value_size=16000 \
--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=134217728 \
--target_blob_file_size=134217728 \
--blob_file_defragment_size=33554432 \
--max_dependence_blob_overlap=128 \
--optimize_filters_for_hits=true \
--optimize_range_deletion=true \
--num=60000000 \
--db=test_kuankuan \
--benchmark_write_rate_limit=100000000 \
--prepare_log_writer_num=0 \
--use_direct_io_for_flush_and_compaction=1 \
--zenfs_low_gc_ratio=0.3 \
--zenfs_high_gc_ratio=0.6 \
--zenfs_force_gc_ratio=0.9