Create a gist now

Instantly share code, notes, and snippets.

# To run:
# for c in 0 1 ; do s=1; bash r.sh ./rdb 24 $s $c 70 >& r.s${s}.c${c} ; done
# grep ^overwrite r.s0.c*
# r.s0.c0:overwrite : 2.717 micros/op 368063 ops/sec; 14.0 MB/s
# r.s0.c1:overwrite : 0.872 micros/op 1146993 ops/sec; 43.8 MB/s
--- saved into run.sh
dbdir=$1
dop=$2
sync=$3
concurmt=$4
secs=$5
rm -rf $dbdir; mkdir $dbdir
./db_bench --benchmarks=overwrite --use_existing_db=0 --sync=$sync --db=$dbdir --wal_dir=$dbdir --disable_data_sync=0 --num=104857600 --num_levels=6 --key_size=8 --value_size=32 --block_size=4096 --cache_size=107374182400 --cache_numshardbits=6 --compression_type=snappy --min_level_to_compress=3 --compression_ratio=0.5 --level_compaction_dynamic_level_bytes=true --bytes_per_sync=8388608 --cache_index_and_filter_blocks=0 --benchmark_write_rate_limit=0 --hard_rate_limit=3 --rate_limit_delay_max_milliseconds=1000000 --write_buffer_size=134217728 --max_write_buffer_number=16 --target_file_size_base=33554432 --max_bytes_for_level_base=536870912 --verify_checksum=1 --delete_obsolete_files_period_micros=62914560 --max_grandparent_overlap_factor=8 --max_bytes_for_level_multiplier=8 --statistics=0 --stats_per_interval=1 --stats_interval_seconds=60 --histogram=1 --allow_concurrent_memtable_write=$concurmt --enable_write_thread_adaptive_yield=$concurmt --memtablerep=skip_list --bloom_bits=10 --open_files=-1 --duration=$secs --level0_file_num_compaction_trigger=4 --level0_slowdown_writes_trigger=12 --level0_stop_writes_trigger=20 --max_background_compactions=16 --max_background_flushes=7 --threads=$dop --merge_operator="put" --seed=1454699926 --batch_size=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment