Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure caching using NVMe only? #80

Closed
xiedeyantu opened this issue Nov 24, 2021 · 4 comments
Closed

How to configure caching using NVMe only? #80

xiedeyantu opened this issue Nov 24, 2021 · 4 comments

Comments

@xiedeyantu
Copy link
Contributor

I don't want to use memory, or use a small memory configuration. How to use cachebench for configuration and pressure measurement?Could you give me some advice.

@leozzx
Copy link
Contributor

leozzx commented Nov 24, 2021

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?

@xiedeyantu
Copy link
Contributor Author

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?

@leozzx
Copy link
Contributor

leozzx commented Nov 29, 2021

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.

@xiedeyantu
Copy link
Contributor Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants