After reading https://forum.openwrt.org/t/what-is-the-correct-way-to-setup-a-swap-partition-file/28243 and https://forum.openwrt.org/t/solved-openwrt-performance-on-tp-link-ac1750-archer-c7/23239/10 I have more questions than I originally started with, so here goes:
- Would it be safe to setup a swap partition on an already-configured extroot drive? The drive is a USB external HDD (not flash) and so I'm hoping the advice in the first link above about "grind[ing] it into the ground quickly" does not apply here.
- If the answer to 1. is "yes", what kind of performance gains could I expect to acheive by doing so? The router already has 128MB of RAM which I know is a fairly decent amount for a consumer-level router, but I think I still need more...read on to find out why.
- What is this "SQM" feature that the second link above constantly mentions? What kind of internet performance gains could I expect to achieve by enabling it? My connection is 50mbps down/5mbps up so it seems as though I shouldn't reach the bottlenecks described in that link, as my connections won't even go that fast to begin with!
While 3. is just a question that the linked thread has raised in my mind, 1. and 2. relate to a single core goal of mine, which is to enable LAN-wide ad blocking on the router itself, rather than having to setup separate browser add ons or otherwise-unnecessary apps on every device that I use.
To this end I have tried to append a huge (31 MB) list of domains to block on to
/etc/hosts, redirecting them all to
0.0.0.0, but this doesn't work, presumably because the file is too big to be loaded by
dnsmasq. I've tried to confirm this by scouring the output from
logread, but I'm too inexperienced with the Linux CLI to really understand what any of the messages mean. Is there a way to do any of this through the LuCI web interface?
I've tried using the
adblock package to facilitate this but it also seemed too difficult to configure, even though its author touts it as a "zero config" package. The lack of clear descriptions in LuCI of what each and every blocklist actually blocks is a PITA, and I couldn't get any of them to load anyway, with the only apparent reason for that being the single word "error" next to "Adblock Status" in Services > Adblock > Runtime Information. I know I could dig deeper with a
logread etc. but once again, most of those messages mean nothing to me and I don't have the time nor patience to spend hours debugging the problem.
Since I have used the hosts file in Windows for this purpose for many years, I was hoping that my goal would be achievable through the same method in OpenWRT as well. Please LMK whether I'm barking up the wrong tree or there is merit to the idea. Any other suggestions of how to achieve my goal without extra non-OpenWRT software would also be greatly appreciated. MTIA!