Coder Social home page Coder Social logo

Comments (9)

IrineSistiana avatar IrineSistiana commented on June 22, 2024

lazy cache 是实验性功能,毕竟破坏了 dns 协议 ttl 的功能,不兼容是正常的。如果出问题建议直接关掉。

你的 mosdns 似乎是修改版。原版的 mosdns 应该不会打印上述 log。“unpacking entry”

from mosdns.

GreatMichaelLee avatar GreatMichaelLee commented on June 22, 2024

lazy cache 是实验性功能,毕竟破坏了 dns 协议 ttl 的功能,不兼容是正常的。如果出问题建议直接关掉。

你的 mosdns 似乎是修改版。原版的 mosdns 应该不会打印上述 log。“unpacking entry”

我感觉是cache本身的性能问题(或者是go的问题?),导致dnsmasq后端被阻塞,所以会有delta peak效应,暂时的workaround就是关掉mosdns的cache用dnsmasq端的cache。另外,是用的原版啊,我看了lede仓库的make file是用的这里的啊

image

from mosdns.

IrineSistiana avatar IrineSistiana commented on June 22, 2024

我感觉是cache本身的性能问题(或者是go的问题?),导致dnsmasq后端被阻塞,所以会有delta peak效应,暂时的workaround就是关掉mosdns的cache用dnsmasq端的cache。另外,是用的原版啊,我看了lede仓库的make file是用的这里的啊

阻塞不占 cpu,如果是 dnsmasq cpu 占用高,最可能的就是 mosdns 并发了大量请求打在了 dnsmasq 上。开 debug 日志可以看到 lazy cache 有没有往上游 dnsmasq 发送请求。

另外,我搜了源代码,mosdns 真不会打印 “unpacking entry” 然后报告载入了的列表有多少条。这功能我之前想加的但是鸽了。

搜到了。这是 v2dat 的日志。

from mosdns.

sunshineyxc avatar sunshineyxc commented on June 22, 2024

我就是出现了‘mosdns 并发了大量请求打在了 dnsmasq 上。开 debug 日志可以看到 lazy cache 有没有往上游 dnsmasq 发送请求。’ 导致出国查询dns失败,如何解决?

from mosdns.

cqjerry avatar cqjerry commented on June 22, 2024

更新到v5.2.1后,发现 lazy_cache 一直报 failed to update。是安装问题还是BUG呢?

from mosdns.

CYaNu avatar CYaNu commented on June 22, 2024

我直接建了个debian 用mosdns做了个服务 比在lede等op下 效率更高

from mosdns.

asnon avatar asnon commented on June 22, 2024

更新到v5.2.1后,发现 lazy_cache 一直报 failed to update。是安装问题还是BUG呢?

我也是,请问你现在解决了么?

from mosdns.

yishion819 avatar yishion819 commented on June 22, 2024

我也遇到这种情况了……关闭cache会好一些,并且版本从v4~v5都试过,cpu占用会相当的高

from mosdns.

yishion819 avatar yishion819 commented on June 22, 2024

刷回21或者19版本的op,负载正常了

from mosdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.