MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
2014-05-23 10:56:18 -04:00
buildbot add buildbot compiler suppressions file 2013-07-10 14:35:59 -04:00
buildheader #218 cursor set range with bound 2014-04-25 13:41:57 -04:00
cmake added optimization for normal static libraries Tokutek/mongo#983 2014-03-06 17:05:15 -05:00
cmake_modules #244 skip jemalloc build if it is not in the third party directory 2014-05-21 11:51:26 -04:00
examples added cpack component identifications to all install targets Tokutek/mongo#869 2013-12-20 17:58:48 -05:00
ft #247 fix loader->close fd leak when NOFILE limit exceeded 2014-05-23 10:56:18 -04:00
locktree #206 fix memory leaks in lock tree tests 2014-04-23 09:10:19 -04:00
portability Merge branch 'malloc-enginestatus' 2014-04-29 13:38:12 -04:00
scripts Modified watch.stress-tests.bash script so that it correctly computes the sum of ALL tests passing and failing 2014-03-05 14:45:11 -05:00
src #247 fix loader->close fd leak when NOFILE limit exceeded 2014-05-23 10:56:18 -04:00
third_party/xz-4.999.9beta refs #5138 merge 49cfc8d... from xz-utils. fixes incorrect usage of restrict keyword 2013-04-17 00:02:30 -04:00
tools fixes #200 Remove windows logic, which has not been supported in years. 2014-03-05 12:11:39 -05:00
util fixes #248 Convert to a tree on omt clone if it must support marks 2014-05-22 18:57:56 -04:00
.gitignore Update .gitignore for tags and jemalloc symlink 2013-05-30 16:04:17 -07:00
bash.suppressions [t:4814] merging cmake work to mainline 2013-04-17 00:00:25 -04:00
CMakeLists.txt moved/cleaned up gcc-ar/gcc-ranlib checking #245 2014-05-20 14:39:56 -04:00
COPYING refs #6566 add COPYING file to fractal tree 2013-04-17 00:01:36 -04:00
CTestConfig.cmake refs #4871 use lex1:8080 to submit results to, lets us use /etc/hosts to submit from other machines 2013-04-17 00:01:14 -04:00
CTestCustom.cmake #17 fix a memory leak 2013-06-24 17:06:15 -04:00
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 2013-04-17 00:01:24 -04:00
README-TOKUDB tokutek/ft-index#76 add US Patent 8,489,638 2013-10-04 16:49:53 -04:00
README.md added tokumx to readme 2014-02-12 11:01:20 -05:00

TokuKV

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

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

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

Building

TokuKV is built using CMake >= 2.8.9. 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 development packages (yum install zlib-devel or apt-get install 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 USE_VALGRIND=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 for TokuDB:

and two for TokuMX:

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.