开发者

Redis - configure parameters vm-page-size and vm-pages

开发者 https://www.devze.com 2023-03-23 02:26 出处:网络
Using Redis, I am currently parameterizing the redis.conf for using virtual memory. Regarding I have 18 millions of keys (max 25 chars) as hashtables with 4 fields (maximum 256 chars)

Using Redis, I am currently parameterizing the redis.conf for using virtual memory.

Regarding I have 18 millions of keys (max 25 chars) as hashtables with 4 fields (maximum 256 chars)

My server has 16 Go RAM.

I wonder how to optimize the parameters vm-page-size (more than 64 ?) and vm-pages.

Any id开发者_Python百科eas ? Thanks.


You probably don't need to in this case - your usage is pretty close to standard. It's only when your values are large ( > ~4k iirc) that you can run into issues with insufficient contiguous space.

Also, with 16GB available there won't be much swapping happening, which makes the vm config a lot less important.

0

精彩评论

暂无评论...
验证码 换一张
取 消