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

求助缓存设置优化 #1683

Open
lalasou opened this issue Feb 24, 2024 · 4 comments
Open

求助缓存设置优化 #1683

lalasou opened this issue Feb 24, 2024 · 4 comments

Comments

@lalasou
Copy link

lalasou commented Feb 24, 2024

serve-expired yes
serve-expired-ttl 2592000 #这个值设置大点如果不是热域名 也不怎么更新预读吧?
prefetch-domain yes
serve-expired-prefetch-time 21600 #6小时更新预读 是只更新热域名对吧?
dualstack-ip-selection yes
dualstack-ip-selection-threshold 25
max-reply-ip-num 30
cache-size 26668

大概7天左右 家庭环境下(人不多5人)会有12m左右的缓存

然后 阿里云 腾讯Google dns开始限制了 log 一堆 “Handshake with 223.5.5.5 failed, Connection reset by peer ”

stop 删了缓存 启动 不报错了

按照介绍 缓存预读取只会更新经常访问的域名
按理说 即使 cache-size 和serve-expired-ttl 设置大些 应该也没问题啊

@PikuZheng
Copy link
Contributor

建议先看看日常使用会缓存多少
smartdns --cache-print /etc/smartdns/smartdns.cache | wc -l

@lalasou
Copy link
Author

lalasou commented Feb 25, 2024

smartdns --cache-print /etc/smartdns/smartdns.cache | wc -l

上次重启 刚删的缓存

cache-checkpoint-time 43200
12小时 5074

@lalasou
Copy link
Author

lalasou commented Feb 25, 2024

移动宽带 非公网
路由器 红米6000 性能可以

@PikuZheng
Copy link
Contributor

所以设置上那么大 实际上没有多少的
ttl建议不要改

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