• S
    Slowdown when writing to the last write buffer · d72b3177
    sdong 提交于
    Summary: Now if inserting to mem table is much faster than writing to files, there is no mechanism users can rely on to avoid stopping for reaching options.max_write_buffer_number. With the commit, if there are more than four maximum write buffers configured, we slow down to the rate of options.delayed_write_rate while we reach the last one.
    
    Test Plan:
    1. Add a new unit test.
    2. Run db_bench with
    
    ./db_bench --benchmarks=fillrandom --num=10000000 --max_background_flushes=6 --batch_size=32 -max_write_buffer_number=4 --delayed_write_rate=500000 --statistics
    
    based on hard drive and see stopping is avoided with the commit.
    
    Reviewers: yhchiang, IslamAbdelRahman, anthony, rven, kradhakrishnan, igor
    
    Reviewed By: igor
    
    Subscribers: MarkCallaghan, leveldb, dhruba
    
    Differential Revision: https://reviews.facebook.net/D52047
    d72b3177
可在Tags中查看这些版本中当前仓库的状态.
HISTORY.md 28.9 KB