Martineau
Part of the Furniture
FYI The official documentation by the authors Optimise unbound CPU/Memory was not written with tiny routers in mind, so the advice/recommendations seem rather strange/inappropriate.@skeal, I can't explain it well, but with a 4 core CPU (RT-AX88U), I thought I would see if the defaults were too conservative.
Code:# no threads and no memory slabs for threads num-threads: 4 # v1.01 as per @L&LD (default 1) msg-cache-slabs: 8 #v1.01 as per @L&LD (default 2) rrset-cache-slabs: 8 #v1.01 as per @L&LD (default 2) infra-cache-slabs: 8 #v1.01 as per @L&LD (default 2) key-cache-slabs: 8 #v1.01 as per @L&LD (default 2) # tiny memory cache key-cache-size: 16m #v1.01 as per @L&LD (default 8m) msg-cache-size: 16m #v1.01 as per @L&LD (default 8m) rrset-cache-size: 32m #v1.01 as per @L&LD (default 16m) cache-max-ttl: 21600 cache-min-ttl: 5 prefetch: yes prefetch-key: yes serve-expired: yes serve-expired-ttl: 3600 incoming-num-tcp: 600 outgoing-num-tcp: 100 ip-ratelimit: 100 edns-buffer-size: 1472 # v1.01 as per @dave14305 minimal config
This is what my router has been running for at least 4 hours now with no issues so far.
After I made the changes from the defaults above, I issued an 'rs' command and could immediately see an increase in responsiveness from surfing to running amtm and the 'u' and 'uu' commands to accessing my NAS too.
I can't guess what the other settings in tiny memory cache do, so I don't think I will be fooling around with those (yet!).
Seeing as you have the same AX model as me, maybe you'd like to try these settings (edit carefully!) and see if you see the same improvements too.
Interestingly, the 's' command in unbound_manager now only shows 37% (with light network usage), but it feels faster than when it was in the 90% range with the previous settings.
However ensuring 'rrset-cache-size:' is 2X 'msg-cache-size:' seems valid for the router, but the "num-threads:" value may not be valid if the load isn't actually capable of being processed across the physical CPUs in a router?
Last edited: