[Dnsmasq-discuss] Slow DNSMasq with > 100, 000 entries in additional addresses file

Chen Wei weichen302 at icloud.com
Thu Mar 2 09:02:24 GMT 2017


On Mon, Dec 26, 2016 at 09:51:23PM -0500, TheWerthFam wrote:
> Yousong,
> Do you know what version this was patched against?

I have updated the patch for 2.77test4.

https://github.com/infinet/dnsmasq/tree/fastlookup-v2.77test4


> On 12/26/2016 09:17 PM, Yousong Zhou wrote:
> >On 27 December 2016 at 08:39, TheWerthFam <thewerthfam at gmail.com> wrote:
> >>Using DNSMasq 2.76 on the Openwrt platform with a raspberry pi 3 like device
> >>for home networking 1GB RAM, dual core 1 GHZ processor).  Additionally I'm
> >>using the the adblock set of scripts found @
> >>(https://github.com/openwrt/packages/tree/master/net/adblock/files) to block
> >>malware and porn sites. The porn sites list is about 800,000 entries, about
> >>10x the number of sites adblock normally uses.  With the full list of
> >>malware and porn domains loaded,
> >>dnsmasq takes 115M of memory and normally sits around 50% CPU usage with
> >>moderate browsing usage.  CPU and RAM usage isn't really a problem other
> >>
> >>The adblock script takes downloads different lists, creates a file for each
> >>list in the format:
> >>local=/40def14.codns.com/
> >>local=/944413269.3322.org
> >>local=/domainnottogoto.com/
> >>
> >>Are there dnsmasq setting that will improve the performance?  or should it
> >>be configured differently to achieve this goal?
> >>Perhaps unbound would be better suited?
> >>
> >>Cheers
> >>     Derek
> >There was a patch posted in 2015 trying to optimise this.  It's worth a try.
> >
> >[1] [PATCH v2] Optimize ipset/server/local/address/rebind-domain-ok
> >performance, http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2015q1/009257.html
> >
> >                 yousong


-- 
Chen Wei



More information about the Dnsmasq-discuss mailing list