rocksdb/port
Haobo Xu d897d33bf1 [RocksDB] Introduce Fast Mutex option
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
2013-06-01 23:11:34 -07:00
..
win reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
atomic_pointer.h merge 1.5 2012-08-28 11:43:33 -07:00
port_example.h merge 1.5 2012-08-28 11:43:33 -07:00
port_posix.cc [RocksDB] Introduce Fast Mutex option 2013-06-01 23:11:34 -07:00
port_posix.h [RocksDB] Introduce Fast Mutex option 2013-06-01 23:11:34 -07:00
port.h merge 1.5 2012-08-28 11:43:33 -07:00
README reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
stack_trace.cc [RocksDB] Print stack trace to stderr instead of stdio. 2013-04-22 20:38:02 -07:00

This directory contains interfaces and implementations that isolate the
rest of the package from platform details.

Code in the rest of the package includes "port.h" from this directory.
"port.h" in turn includes a platform specific "port_<platform>.h" file
that provides the platform specific implementation.

See port_posix.h for an example of what must be provided in a platform
specific header file.