Earlier quoted context omitted.
In our own workloads, writers are always going after the same pages in their index updates, which inevitably led to deadlocks in BerkeleyDB. As a result, we get much higher throughput with fully serialized writers than with "concurrent" writers. A microbench might show greater concurrency on simple write tasks, but in a real live system with elaborate schema, there's no payoff for us. As always, you have to profile y…
Is this the reason for your observation that LMDB is oriented towards read workloads? I can see how the extra code locking/concurrency code would expand the library size out of the CPU cache, though.
RocksDB – A persistent key-value store for fast storage environments
61–70 of 75 posts
Re: RocksDB – A persistent key-value store for fast storage environments
#62Earlier quoted context omitted.
Paging hyc_symas. Howard Chu isn't shy about talking about benchmark results and he can be found here and on twitter.
Hello hello! Pretty sure what actually happened in these is that the HDD's internal cache was still active, while the Crucial M4 SSD has no internal cache. The only other explanation is that I screwed up my partition offset on the SSD but I already double-checked that and the partitions were all 2MB aligned.
If the cache was being used, the HDD results are not actually synchronous, a power loss event would result in data loss.
Re: RocksDB – A persistent key-value store for fast storage environments
#63Re: RocksDB – A persistent key-value store for fast storage environments
#64Earlier quoted context omitted.
Can this be used as a drop-in replacement for LevelDB on queue technologies like ApolloMQ that use LevelDB as the default?
This can be used as a drop-in replacement. It disk format is compatible with leveldb. But once you upgrade to RocksDB, you won't be able to switch back to Leveldb (unless you restore ur data from a backup). One definite use-case for RocksDB is a message queue that has a high number of puts/gets/deletes. Also, please look at options.h to determine what options to tune. A not-tuned system will not show you much perf di…
Re: RocksDB – A persistent key-value store for fast storage environments
#65Earlier quoted context omitted.
The primary enhancements over LevelDB seem to be parallel compactions of disjoint ranges, to take advantage of cheap seeks on flash storage, and the ability to parameterize core algorithms and data structures to suit a particular anticipated workload. All very cool; anything else major? Also, there aren't JNI bindings... are there? Thanks for the contribution. Just started using LevelDB on a project, but deployment w…
Thanks for your comments Jon. RocksDB shares some of its genes with LevelDB.. something like a parent-child relationship. Please check out Universal Comaction Style, multi-threaded-compaction, pipelined memtables. I used to have JNI bindings that I pulled in from https://github.com/fusesource/leveldbjni but it was difficult for me to update the JNI everytime we added new apis to RocksDB. It would be great if somebody…
Re: RocksDB – A persistent key-value store for fast storage environments
#66I'm surprised that the C++ code is not using the RAII idiom in some obvious places. For example: https://github.com/facebook/rocksdb/blob/master/db/db_impl.c There are many places with bracketed calls to mutex_.Lock and mutex_.Unlock(). An example: mutex_.Unlock(); LogFlush(options_.info_log); env_->SleepForMicroseconds(1000000); mutex_.Lock() Why didn't the authors use the RAII idiom here? Even if there are no excep…
Re: RocksDB – A persistent key-value store for fast storage environments
#67Earlier quoted context omitted.
> we've built a more-or-less clone of LevelDB in Java, with a similar goal of extracting more performance on high-powered servers (and better integration with our Java codebase). This sounds quite interesting; have you considered open-sourcing it?
Yes, we'd like to release it someday, but it won't be any time soon unfortunately. There are a lot of dependencies on other parts of our codebase, e.g. for configuration and monitoring, which would need to be cleaned up. We will probably at least publish a report describing the work in more detail, some time in the next few months, on our blog ( http://blog.scalyr.com ).
Re: RocksDB – A persistent key-value store for fast storage environments
#68I'm surprised that the C++ code is not using the RAII idiom in some obvious places. For example: https://github.com/facebook/rocksdb/blob/master/db/db_impl.c There are many places with bracketed calls to mutex_.Lock and mutex_.Unlock(). An example: mutex_.Unlock(); LogFlush(options_.info_log); env_->SleepForMicroseconds(1000000); mutex_.Lock() Why didn't the authors use the RAII idiom here? Even if there are no excep…
fixed your link: https://github.com/facebook/rocksdb/blob/master/db/db_impl.c... Take another look! There's a guard object used at the function scope to ensure the lock is released, and this block is bracketed to release and reacquire the lock, not acquire and release. There may be a case for a guard object that does the release/reacquire, but its definitely not a slam dunk like acquire/release
Re: RocksDB – A persistent key-value store for fast storage environments
#69Very nice work, and the wiki is also quite nice -- I wish more projects had a page like https://github.com/facebook/rocksdb/wiki/Rocksdb-Architectur... . It's really nice to see a clear, terse summary of what makes this project interesting relative to its predecessors. At my company (scalyr.com), we've built a more-or-less clone of LevelDB in Java, with a similar goal of extracting more performance on high-powered se…
SkyDB using LMDB gets 3GB/sec on a standalone PC. https://groups.google.com/forum/#!msg/skydb/CMKQSLf2WAw/zBO1...
Re: RocksDB – A persistent key-value store for fast storage environments
#70Earlier quoted context omitted.
RocksDB has an LSM architecture, similar in nature to HBase, leveldb, etc. But the implementation is based on a Theorem that we will be publishing shortly. I am working on the Theorem with a colleague of mine. Cache Oblivious B-trees is an interesting paper. Similarly fractal trees. Most of them optimize the case when index nodes are not in memory. However, in our use-cases, we typically configure the system in such…
Can you share with us the statement of that theorem? What is "UniversalStyleCompaction", and why is it capitalized and missing spaces? How does a Bloom filter for range scans work? Standard Bloom filters (as you know) are for existence only.
http://webcache.googleusercontent.com/search?q=cache:fTxlRmb...