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

[Feature request] 提供将lazy_cache写入内存的选项 #778

Closed
notch1p opened this issue Dec 30, 2023 · 4 comments
Closed

[Feature request] 提供将lazy_cache写入内存的选项 #778

notch1p opened this issue Dec 30, 2023 · 4 comments

Comments

@notch1p
Copy link

notch1p commented Dec 30, 2023

希望添加的功能

对于一般的机器来说目前的lazy_cache是没有问题的。但是对于树莓派这种使用TF卡作为存储的单板机来说频繁写入容易降低寿命。希望能够增加一个小开关让用户选择是否将缓存写入内存,毕竟Pi 5有8G内存,不用用也挺浪费的。

祝元旦快乐

@likevi9528
Copy link

size: 1024
dump_interval: 600
调大这两个试试,或者关闭dump_file选项

@sbwml
Copy link

sbwml commented Jan 7, 2024

缓存本来就是在内存里,dump 只是让你重启服务时,可以从文件中重新读取缓存到内存里使用。如果考虑到存储器读写问题,只需要增加 dump 间隔

@notch1p
Copy link
Author

notch1p commented Jan 7, 2024

原来如此。我还有一个小问题,内存中的缓存大小的管理应该是自动的吧?想说能不能手动指定占用大小,还是说其实没必要。

@sbwml
Copy link

sbwml commented Jan 8, 2024 via email

@notch1p notch1p closed this as completed Jan 10, 2024
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

3 participants