• A
    Use non-mmapd files for Write-Ahead Files · 7fdd5f5b
    Abhishek Kona 提交于
    Summary:
    Use non mmapd files for Write-Ahead log.
    Earlier use of MMaped files. made the log iterator read ahead and miss records.
    Now the reader and writer will point to the same physical location.
    
    There is no perf regression :
    ./db_bench --benchmarks=fillseq --db=/dev/shm/mmap_test --num=$(million 20) --use_existing_db=0 --threads=2
    with This diff :
    fillseq      :      10.756 micros/op 185281 ops/sec;   20.5 MB/s
    without this dif :
    fillseq      :      11.085 micros/op 179676 ops/sec;   19.9 MB/s
    
    Test Plan: unit test included
    
    Reviewers: dhruba, heyongqiang
    
    Reviewed By: heyongqiang
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D9741
    7fdd5f5b
db_test.cc 92.4 KB