I have been using OpenWRT for a while now (but definitely not an expert user)
Trying to install adguardhome
I get the following error:
Collected errors:
verify_pkg_installable: Only have 8600kb available on filesystem /overlay, pkg adguardhome needs 9900
IMO you are looking in the wrong direction. AGH is quite resource-intensive and, on top of that, complicated to set up on OpenWrt. At the same time, there are great alternatives, developed specifically for OpenWrt, much more efficient, much easier to set up, and with official support of the developers. So personally I don't know why some people are using AGH on OpenWrt, and this especially makes no sense on low-end or older devices. As a contributor to the adblock-lean project, I can recommend you to try it out, although the other alternatives are also good, each one in its own way.
Thank you again. Your comment is very useful.
Just to say, I have been using adblock for a while, but I decided to try something else, as I felt it was taking time to provide the DNS.
I will read about adblock-lean first, since you are a contributor
(PS: I managed to get exroot working which is always helpful)
adblock-lean's main advantage is optimizations of blocklist processing, consuming less memory, less CPU power and usually significantly less time. So I think you will like it. Let us know in the support thread. Just make sure to uninstall any other adblocker before installing adblock-lean. You can always reinstall it if you want to go back.
I take this opportunity to ask about the above.
My understanding was that 16/128 was on the upper side. Would you recommend something larger?
Just to say that I am a 'maniac' for low-power devices
Therefore my requirements is a (very) low-power router, for a small apartment. Any thoughts? My current router is ±4W on the wall
(it is interesting that very few people report about power consumption of routers)
depends on your use case, but adblocking requires a lot of RAM, since the block lists have to be stored somewhere, the more RAM the better, same applies to flash too, obviously, but again, depends on usage.
the beefier SoC, RAM and flash, the more power will it use.
I'll try to put 128MB of RAM in proportion in terms of adblocking. With adblock-lean, you should be able to fairly comfortably fit around 250k-350k domains in memory and probably have a bit (not much) of free memory left for your other router functionality. The 'small' preset of adblock-lean is designed for this memory capacity. Smaller than that, there is only the 'mini' preset for 64MB which is not very useful anymore because modern versions of OpenWrt can barely even run with 64MB of RAM. The largest built-in preset we have is 'large', which is designed for 512MB+ devices and currently includes around 850k domains. So essentially 128MB these days is very close to the minimum memory capacity. Still usable but definitely not on the high side.
In terms of power consumption, it's a bit of a long story to type in right here right now, but generally: memory doesn't consume much power. So memory capacity doesn't really affect power consumption. Same for flash capacity.
The things which do:
SOC specifics: instruction set, frequency, core count, manufacturing node and power restrictions
Workload
Software optimizations for the SOC
Sorry - this is not a very helpful answer in practical terms. I'm writing this mainly to explain that this actually is complicated and there just isn't a way to provide a general insight into power consumption in a forum post. But if you want to learn more about this, you can google each of the terms above which you do not understand and "power consumption".
The OP is referring to an archer c7-v5, so one ath10k radio, which needs more RAM than 'normally expected' (normalizing this, you might compare this to a ~75-80 MB RAM device in practice). 70'000-80'000 blocked domains is probably the maximum there (and AGH completely out of the picture), but this is something to carefully tune and check on lower-end devices.
I wonder how much free memory you have when adblock-lean is running with this preset? You can check this way: free -m
(would be nice if you posted the output)
If running close to the limit of available memory, I recommend you to edit the adblock-lean config file - /etc/adblock-lean/config - and set initial_dnsmasq_restart to "1". When this option is enabled, adblock-lean will unload the blocklist from memory and restart dnsmasq before updating the blocklist. This helps to free up memory required for processing of the new blocklist during automatic (or manual) updates.
Honestly, it's quite amazing that you are able to run all that stuff with 128MB of memory. Anyway, you definitely should set the option I mentioned above.
Probably you would need to change the DNS server your phone uses, in the settings of the phone. I don't know if it's possible, probably depends on the phone. Maybe the wireguard app for the phone has this option? You could ask in the support thread I linked to above, maybe someone there has an idea, or create a new thread in 'Installing and using OpenWrt' for this question.