-
Notifications
You must be signed in to change notification settings - Fork 337
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
[Bug] lazy cache导致dnsmasq CPU占用率过高 #705
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
阻塞不占 cpu,如果是 dnsmasq cpu 占用高,最可能的就是 mosdns 并发了大量请求打在了 dnsmasq 上。开 debug 日志可以看到 lazy cache 有没有往上游 dnsmasq 发送请求。
搜到了。这是 v2dat 的日志。 |
我就是出现了‘mosdns 并发了大量请求打在了 dnsmasq 上。开 debug 日志可以看到 lazy cache 有没有往上游 dnsmasq 发送请求。’ 导致出国查询dns失败,如何解决? |
更新到v5.2.1后,发现 lazy_cache 一直报 failed to update。是安装问题还是BUG呢? |
我直接建了个debian 用mosdns做了个服务 比在lede等op下 效率更高 |
我也是,请问你现在解决了么? |
我也遇到这种情况了……关闭cache会好一些,并且版本从v4~v5都试过,cpu占用会相当的高 |
刷回21或者19版本的op,负载正常了 |
在提交之前,请确认
mosdns 版本
v5.1.3
操作系统
Openwrt LEDE 当前最新仓库代码+PW最新版本
Bug 描述和复现步骤
如题所示,5.1.3如果设置为dnsmasq上游,且启用lazy cache的时候,在main sequence里查询lazy cache,会导致dnsmasq 周期性的CPU浪涌,关掉cache能减缓这种现象。通过openwrt上netdata和htop可以观测到(htop就不贴了)
使用的配置文件
mosdns 的 log 记录
The text was updated successfully, but these errors were encountered: