(memtable중 max_file_size의 크기는 write_buffer_size보다 크게 성정할수 있지만 실제 memtable중에서는 sst의 size는 write_buffer_size로서 제한이 됩니다) (max_file_size는 memtable에 들어가 있는 sst 의 size만 아니라 disk level에 들어가 있는 sst의 size도 같이 지정합니다)
sync; echo 3 > /proc/sys/vm/drop_caches
for j in {2097152,4194304,8388608,16777216,33554432}
do
for i in {2097152,4194304,8388608,16777216,33554432}
do
echo "write_buffer_size is $j" | tee -a result.txt
CMD="./db_bench --benchmarks="fillseq,stats" --use_existing_db=0 --num=1000000 --write_buffer_size=$j --max_file_size=$i"
CMD="./db_bench --benchmarks="fillrandom,stats" --use_existing_db=0 --num=1000000 --write_buffer_size=$j --max_file_size=$i"
RESULT=$($CMD)
echo "$RESULT" | tee -a result.txt
echo | tee -a result.txt
done
done