Igor Canadi e8d40c31b3 [RocksDB perf] Cache speedup
Summary:
I have ran a get benchmark where all the data is in the cache and observed that most of the time is spent on waiting for lock in LRUCache.

This is an effort to optimize LRUCache.

Test Plan:
The data was loaded with fillseq. Then, I ran a benchmark:

    /db_bench --db=/tmp/rocksdb_stat_bench --num=1000000 --benchmarks=readrandom --statistics=1 --use_existing_db=1 --threads=16 --disable_seek_compaction=1 --cache_size=20000000000 --cache_numshardbits=8 --table_cache_numshardbits=8

I ran the benchmark three times. Here are the results:
AFTER THE PATCH: 798072, 803998, 811807
BEFORE THE PATCH: 782008, 815593, 763017

Reviewers: dhruba, haobo, kailiu

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D14571
2013-12-11 08:33:29 -08:00
..
2013-10-23 14:38:52 -07:00
2013-11-16 11:21:34 +00:00
2013-12-11 08:33:29 -08:00
2013-12-09 14:06:52 -08:00
2013-12-09 14:06:52 -08:00
2013-12-01 11:32:54 -08:00
2013-11-07 11:31:56 -08:00
2013-12-03 12:42:15 -08:00
2013-12-03 12:42:15 -08:00
2013-11-12 21:22:32 -08:00
2013-12-03 14:28:48 -08:00
2013-12-03 12:42:15 -08:00