facebook / rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.
http://rocksdb.org
GNU General Public License v2.0
28.73k stars 6.34k forks source link

Question:How to run Rocksdb Multi-thread in YCSBC? #9902

Closed renjc0816 closed 2 years ago

renjc0816 commented 2 years ago

Ok it`s due to i am newbee, but is there anyone konw how to run Multi-thread rocksdb in YCSBC? (Not YCSBC Multi-thread itselfs) o(╥﹏╥)o

jay-zhuang commented 2 years ago

does this help: https://github.com/Colins110/YCSB-C-RocksDB

adamretter commented 2 years ago

I contributed the original RocksDB code to YCSB, however as YCSB is in Java, it uses the RocksJava API.

The JNI interface has some overhead, so the results with RocksJava will be less than those of using RocksDB from C or C++. If you want C or C++ then @jay-zhuang's suggestion is likely the way to go. Otherwise if you want Java you can use https://github.com/brianfrankcooper/YCSB/tree/master/rocksdb

renjc0816 commented 2 years ago

Thanks for your help, i don`t konw how to reply comment so i add a new comment here. Maybe it's because I didn't describe it clearly enough... I run rocksdb in YCSBC ok but in single thread,now i want to run Multi-thread rocksdb in YCSBC.The parameter of '-threads 8' only change the threads of ycsbc itself not rocksdb,i want know how to make rocksdb run in Multi-thread (rocksdb default in single thread) not YCSBC. Could anyone help me?....o(╥﹏╥)o....