I installed Adguard on Xiaomi AX3000T and downloaded normal sized Hagezi blocklist (173k lines ) along with basic AdguardDNS filter (105k lines) and 4 smaller ones, totaling 325k lines. Every time I update the DNS filters or even add/delete custom entries, router reboots, presumably due to OOM. Is it really expected to happen given the very small amount of blocked entries and relatively high memory (256 MB RAM) on the device? Should I decrease the /tmp allocation, since it's half of available memory currently
Have you tried using adblock-lean? It's simple to setup and it suggests sensible sized lists based on the ram in your device
To diagnose the issue you're having, you could run "logread -f" in a ssh session to see what the last messages in the log are before the router reboots.
256MB RAM is also a small amount of memory.
You could try to install zram kmod, for memory compression.
Yes I used that before for a while but wanted that easy to use dashboard
I did just that and the last message is Adguard entry about refreshing blocklist:
daemon.err AdGuardHome[3826]: 2025/04/15 20:33:36.877940 [info] filtering: updated filter 1: 2424005 bytes, 105560 rules
Just to confirm its related to OOM I run with only 60k list and there are no problems with that.
Is it really for 8 MB worth of text? I constantly run with ~70 MB RAM free, how can that happen?
Keep in mind 256MB is empty RAM, /tmp will allocate space, then AGH on top of that, and finally the lists.
That's true, free ram is constantly over 60 MB.
Also isn't tmpfs only "soft" provisioned so it can shrink in size as need from the kernel arises? /tmp contents are at best 20 MB
Perhaps it will solve your problem Virtual Memory see the section