Skip to content

Instantly share code, notes, and snippets.

View omegaga's full-sized avatar

Jianhong Li omegaga

  • San Francisco
View GitHub Profile
# overwrite
bpl=10485760;mcz=2;del=300000000;levels=6;ctrig=4; delay=8; stop=12; wbn=3; mbc=10; mb=67108864;wbs=67108864; dds=0; sync=0; r=15000000; t=1; vs=4096; bs=65536; cs=1048576; of=500000; si=1000000; dbpath=/mnt/pmfs/rocks; ./db_bench --benchmarks=fillseq --disable_seek_compaction=1 --mmap_read=0 --num=$r --threads=$t --value_size=$vs --block_size=$bs --cache_size=$cs --bloom_bits=10 --cache_numshardbits=4 --open_files=$of --verify_checksum=1 --db=$dbpath --sync=$sync --disable_wal=1 --compression_type=snappy --compression_ratio=0.5 --disable_data_sync=$dds --write_buffer_size=$wbs --target_file_size_base=$mb --max_write_buffer_number=$wbn --max_background_compactions=$mbc --level0_file_num_compaction_trigger=$ctrig --level0_slowdown_writes_trigger=$delay --level0_stop_writes_trigger=$stop --num_levels=$levels --delete_obsolete_files_period_micros=$del --min_level_to_compress=$mcz --max_bytes_for_level_base=$bpl --use_existing_db=0 --stats_interval=$si --statistics=0 --histogram=0 --stats_per_interval