GithubHelp home page GithubHelp logo

Comments (4)

leozzx avatar leozzx commented on April 20, 2024

Cachelib doesn't support NVM cache only, you have to specify at least a small portion of DRAM memory.
Can I know why you don't want to use a small memory?

from cachelib.

xiedeyantu avatar xiedeyantu commented on April 20, 2024

Cachelib doesn't support NVM cache only, you have to specify at least a small portion of DRAM memory. Can I know why you don't want to use a small memory?

I know that cachelib realizes the seamless connection between DRAM and SSD cache. I want to mainly use SSD cache because cachelib optimizes SSD a lot. For example, if I configure 1T SSD, the size of key is 1024 bytes and the size of value is 1MB. What is the recommended minimum memory?

from cachelib.

leozzx avatar leozzx commented on April 20, 2024

Cachelib doesn't support NVM cache only, you have to specify at least a small portion of DRAM memory. Can I know why you don't want to use a small memory?

I know that cachelib realizes the seamless connection between DRAM and SSD cache. I want to mainly use SSD cache because cachelib optimizes SSD a lot. For example, if I configure 1T SSD, the size of key is 1024 bytes and the size of value is 1MB. What is the recommended minimum memory?

I would say at least 10MB, because we have 4MB for a slab + other overhead. But it might not be the best config, you can try it out with our Cachebench tool.
Just FYI, we have a very similar internal use case that treats us as SSD cache, they configs 256MB for DRAM cache.

from cachelib.

xiedeyantu avatar xiedeyantu commented on April 20, 2024

thanks!

from cachelib.

Related Issues (20)

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.