• H
    [RocksDB] Introduce Fast Mutex option · d897d33b
    Haobo Xu 提交于
    Summary:
    This diff adds an option to specify whether PTHREAD_MUTEX_ADAPTIVE_NP will be enabled for the rocksdb single big kernel lock. db_bench also have this option now.
    Quickly tested 8 thread cpu bound 100 byte random read.
    No fast mutex: ~750k/s ops
    With fast mutex: ~880k/s ops
    
    Test Plan: make check; db_bench; db_stress
    
    Reviewers: dhruba
    
    CC: MarkCallaghan, leveldb
    
    Differential Revision: https://reviews.facebook.net/D11031
    d897d33b
port_posix.cc 2.4 KB