pmwkaa / ioarena

Embedded storage benchmarking tool
Other
132 stars 24 forks source link

Rocksdb build fails #2

Closed kk00ss closed 8 years ago

kk00ss commented 8 years ago

I've managed to build Rocksdb locally in a different directory, but ioarena build script fails with

db/compaction_job.o: In function `rocksdb::CompactionJob::Run()':
/usr/include/c++/4.9/thread:136: undefined reference to `pthread_create'

Which is strange.

pmwkaa commented 8 years ago

Now sure how can i help here. Try to remove cmake cache files and rebuild again:

rm -rf CMakeFiles CMakeCache.txt
cmake -DENABLE_ROCKSDB=ON .
make
kk00ss commented 8 years ago

Can I just copy binaries into some folder and configure ioarena to use them ?

pmwkaa commented 8 years ago

CMake script tries to find first a library installed in system, if it fails then make an attempt to build a shipped one.

https://github.com/pmwkaa/ioarena/blob/master/CMakeLists.txt#L32

kk00ss commented 8 years ago

I've executed make install for multiply databases - still build script builds them all. I've tried to change find_package to find_library - same result. But thank you for such a tool. As for LMDB - there is a way to speedup writes by using multiply environments (different B-trees so write lock on one of them doesn't stop all the write operations - but I don't know whether it is possible to create transactions that will use multiply environments) - by sharding operations between them using key-prefix. I'll do separate tests of RocksDB.