You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Yoni Fogel 26840f8a78 Refs Tokutek/ft-engine#40 Rename c_restrict_to_range to c_set_bounds, delete c_pre_acquire_range_lock 13 years ago
buildheader Refs Tokutek/ft-engine#40 Rename c_restrict_to_range to c_set_bounds, delete c_pre_acquire_range_lock 13 years ago
cmake closes #5485 #5368 clean up cmake and get darwin portability: 13 years ago
cmake_modules only append -fimplicit-templates if -fno-implicit-templates is already there because of mysql/mariadb 13 years ago
examples fix example compilation with bdb >=5 13 years ago
ft Refs Tokutek/ft-engine/#40 Add c_restrict_to_range function to force cursor to keep track of prelocked range 13 years ago
include remove c++ api and db-benchmark-test 13 years ago
locktree #17 test env open with open file limit 13 years ago
portability #17 test env open with open file limit 13 years ago
scripts remove unused check.copyright.py 13 years ago
src Refs Tokutek/ft-engine#40 Rename c_restrict_to_range to c_set_bounds, delete c_pre_acquire_range_lock 13 years ago
third_party/xz-4.999.9beta refs #5138 merge 49cfc8d... from xz-utils. fixes incorrect usage of restrict keyword 13 years ago
toku_include #6 don't do cmake install if we're a subproject of mysql 13 years ago
util demangle partitioned counter functions, and export read_partitioned_counter, closes #23 13 years ago
utils cleanup pmprof a bit 13 years ago
.gitignore Update .gitignore for tags and jemalloc symlink 13 years ago
CMakeLists.txt remove c++ api and db-benchmark-test 13 years ago
COPYING refs #6566 add COPYING file to fractal tree 13 years ago
CTestConfig.cmake refs #4871 use lex1:8080 to submit results to, lets us use /etc/hosts to submit from other machines 13 years ago
CTestCustom.cmake #17 fix a memory leak 13 years ago
DartConfig.cmake closes #5784 don't run valgrind on tdb-recover because it's statically linked and we can't change --soname-synonyms for just one child 13 years ago
README-TOKUDB refs #6566 fix typo in license text 13 years ago
README.md add note about 32-bit systems 13 years ago
bash.suppressions [t:4814] merging cmake work to mainline 13 years ago

README.md

TokuKV

TokuKV is a high-performance, transactional key-value store, used in the TokuDB storage engine for MySQL and MariaDB.

TokuKV is provided as a shared library with an interface similar to Berkeley DB.

To build the full MySQL product, see the instructions for ft-engine. This document covers TokuKV only.

Building

TokuKV is built using CMake >= 2.8.8. Out-of-source builds are recommended. You need a C++11 compiler, though only GCC >= 4.7 and Apple's Clang are tested. You also need zlib and valgrind development packages (yum install valgrind-devel zlib-devel or apt-get install valgrind zlib1g-dev).

You will also need the source code for jemalloc, checked out in third_party/.

git clone git://github.com/Tokutek/ft-index.git ft-index
cd ft-index
git clone git://github.com/Tokutek/jemalloc.git third_party/jemalloc
mkdir build
cd build
CC=gcc47 CXX=g++47 cmake \
    -D CMAKE_BUILD_TYPE=Debug \
    -D USE_BDB=OFF \
    -D BUILD_TESTING=OFF \
    -D CMAKE_INSTALL_PREFIX=../prefix/ \
    ..
cmake --build . --target install

This will build libtokudb.so and libtokuportability.so and install it, some header files, and some examples to ft-index/prefix/. It will also build jemalloc and install it alongside these libraries, you should link to that if you are planning to run benchmarks or in production.

Platforms

TokuKV is supported on 64-bit Centos, should work on other 64-bit linux distributions, and may work on OSX 10.8 and FreeBSD. TokuKV is not supported on 32-bit systems.

Transparent hugepages is a feature in newer linux kernel versions that causes problems for the memory usage tracking calculations in TokuKV and can lead to memory overcommit. If you have this feature enabled, TokuKV will not start, and you should turn it off. If you want to run with transparent hugepages on, you can set an environment variable TOKU_HUGE_PAGES_OK=1, but only do this for testing, and only with a small cache size.

Examples

There are some sample programs that can use either TokuKV or Berkeley DB in the examples/ directory. Follow the above instructions to build and install TokuKV, and then look in the installed examples/ directory for instructions on building and running them.

Testing

TokuKV uses CTest for testing. The CDash testing dashboard is not currently public, but you can run the tests without submitting them.

There are some large data files not stored in the git repository, that will be made available soon. For now, the tests that use these files will not run.

Many of the tests are linked with both TokuKV and Berkeley DB, as a sanity check on the tests themselves. To build these tests, you will need Berkeley DB and its header files installed. If you do not have Berkeley DB installed, just don't pass USE_BDB=ON.

In the build directory from above:

cmake -D BUILD_TESTING=ON [-D USE_BDB=ON] ..
ctest -D ExperimentalStart \
      -D ExperimentalConfigure \
      -D ExperimentalBuild \
      -D ExperimentalTest

Contributing

Please report bugs in TokuKV here on github.

We have two publicly accessible mailing lists:

We are also available on IRC on freenode.net, in the #tokutek channel.

License

TokuKV is available under the GPL version 2, with slight modifications. See README-TOKUDB.