Code Monkey home page Code Monkey logo

tieredmemdb's Introduction

TieredMemDB

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.

Building TieredMemDB

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
* memkind (included in tarballs)

Building TieredMemDB is as simple as:

% make

As usual, you can -- and probably want to -- confirm the built code works well:

% make test

The crux of TieredMemDB is the tiered allocator, which beside MALLOC=libc and MALLOC=jemalloc supported by Redis adds:

% make MALLOC=memkind

but in release tarballs this is already the default.

Rebasing TieredMemDB

The set of patches over base Redis that comprises TieredMemDB can be applied onto your modified versions of Redis as well. To do that, or to update Redis to a new minor version (because of eg. a security update), you rebase the tree available on GitHub, or ask git to produce a patch, with our branch checked out:

% git diff 6.2.6 @

which can then be applied via patch over, in this case, Redis 6.2.6.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.