Skip to content

Instantly share code, notes, and snippets.

@royguo
Created September 22, 2021 04:37
Show Gist options
  • Save royguo/3d5976cc71afd2a81c652155aa39aa48 to your computer and use it in GitHub Desktop.
Save royguo/3d5976cc71afd2a81c652155aa39aa48 to your computer and use it in GitHub Desktop.
CMake ../ -DCMAKE_BUILD_TYPE=RelWithDebInfo 
          -DWITH_ZENFS=ON 
          -DWITH_TERARK_ZIP=OFF
          -DWITH_BYTEDANCE_METRICS=OFF
          -DWITH_TOOLS=ON
          -DWITH_TESTS=OFF
DEVICE=$1

./build/db_bench \
  --zbd_path=$DEVICE \
	--benchmarks=fillrandom \
	--use_existing_db=0 \
	--histogram=1 \
	--statistics=0 \
  --stats_per_interval=1 \
  --stats_interval_seconds=60 \
  --max_background_flushes=6 \
	--max_background_compactions=15 \
	--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=15 \
	--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=10 \
	--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_db_1 \
	--benchmark_write_rate_limit=209715200 \
	--zenfs_gc_ratio=0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment