• D
    An configurable option to write data using write instead of mmap. · c1006d42
    Dhruba Borthakur 提交于
    Summary:
    We have seen that reading data via the pread call (instead of
    mmap) is much faster on Linux 2.6.x kernels. This patch makes
    an equivalent option to switch off mmaps for the write path
    as well.
    
    db_bench --mmap_write=0 will use write() instead of mmap() to
    write data to a file.
    
    This change is backward compatible, the default
    option is to continue using mmap for writing to a file.
    
    Test Plan: "make check all"
    
    Differential Revision: https://reviews.facebook.net/D5781
    c1006d42
db_bench.cc 40.2 KB