On Wed, Nov 20, 2024 at 04:06:08PM +0300, Leonid Evdokimov wrote:
> On Tue, Nov 19, 2024 at 8:05 PM Ercolino de Spiacico
> <bellocar...@hotmail.com> wrote:
> > If given the possibility, I would be very happy to map a file in RAM 
> > knowing that
> > this is handled differently from the "standard" conf-file.
> 
> I agree with this point and I'm developing libddt (dense domain table)
> that is basically a mmap()'able tire representing a list of domains.
> The data structure resembles the one libpsl uses to store
> publicsuffix.org database.
> 
> Preliminary results for a test-case of 500k domains were ~2 MiB of RAM
> usage and sub-10ms resolution latency.
> 
> However, I got no replies for my call-for-test-cases[1] a few months
> ago, so I moved my focus to other sub-projects of that project for a
> while.
> 
> I would be grateful if you can share your block-lists with me, so I
> can test my code with more cases.
> 
> Also, please tell me, if you have any interest in testing the
> patch-set. We can't know if it'll be merged to the main dnsmasq repo,
> but extra testing and feedback kinda increases chances of that
> happening :-)
> 
> [1] 
> https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2024q3/017627.html
> 
This might interest me too.  I run dnsmasq with a 'blacklist' on two
systems.  One is a ThinkPad t470 laptop with 8Gb of memory and more disk
space than I know what to do with so I doubt if reducing dnsmasq's
memory footprint will make much difference there.  However I'm also
running dnsmasq with a blacklist on an Asus DSL-AC68U router (running
ASUSWRT-Merlin) and that has only 256Mb memory so reducing the amount
that dnsmasq uses could well be a good thing.

The blacklist I use comes from:-

    https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

I run a trivial awk script to convert it so I can just put the
converted file into /etc/dnsmasq.d.  An example of the converted file
is:-

    address=/uk2.thor.rtk.io/
    address=/www.rtk.io/
    address=/mt.rtmark.net/
    address=/my.rtmark.net/
    address=/token.rubiconproject.com/
    address=/runative-syndicate.com/
    address=/pixel.runative-syndicate.com/
    address=/s.sh/
    address=/log-1.samsungacr.com/
    address=/log-2.samsungacr.com/

Currently the file has a bit over 121k entries and is about 3.7Mb.

At the moment I can't see a way to monitor memory usage on the
DSL-AC68U, top just says 'no process info in /proc'.  I can install
things via opkg on it.  There's 'collectd-mod-memory' which says it's
a "physical memory usage input plugin".


-- 
Chris Green

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to