This project is a fork of Redis, adapted for systems with multiple memory tiers. New memory technologies include memories that have very high bandwidth at the cost of latency, slower large capacity at lower cost, sharing memory among multiple machines in a rack, and so on.
The overall performance of a system can be improved if frequently accessed ("hot") data is kept in a faster tier while "warm" data that still needs to be readily available in memory (rather than disk or similar slow storage) yet is not as critical, may be kept in a slower memory tier.
This README doesn't describe usual usage of Redis. We assume you already have general experience with Redis.
Generally, TieredMemDB is close to vanilla Redis, and can be used on the same set of systems. You can even build without tier support, as all functionality of Redis should be left intact. To actually get the benefits of memory tiers, you need the following extra dependencies:
* ndctl and daxctl (v66 or later)
When building from git, you also need to check out the memkind submodule:
% git submodule update --init
and install:
* autoconf
Building TieredMemDB is as simple as:
% make
As usual, you can -- and probably want to -- confirm the built code works well:
% make test
In case of building error saying libmemkind.a is missing you can try and clean your repository (before that, please make sure to commit all your changes, if any):
% git clean -dfx
and then re-run the make command.
To prepare a tarball with TieredMemDB packed along with memkind, easy to use in another environment, you have to initialize memkind submodule (as in the above steps) and execute:
% make git-tarball
Such tarball is prepared in a parent directory (named like: "tmdb-redis-.tar.xz"). After extracting the package it's only required to build TMDB with a simple 'make' command.
If you want to get in touch with the maintenance team of this project, please file an issue on the GitHub page of this repository or reach out to Lin, Xiang [email protected] or Chen, Xiaobo [email protected].