cljackhammer
New Around Here
38 days of uptime running Adguard, Skynet and Unbound.
How much swap are you using? I am curious to see about its level of use.38 days of uptime running Adguard, Skynet and Unbound.
View attachment 44629
How much swap are you using? I am curious to see about its level of use.
I am surprised you are doing all that with only a 2gb swap, and for 38 days. I am amazed and baffled all at once. Are you running any other of the amtm scripts? What about aiprotect or QoS?See below.
View attachment 44638
Au contraire, mon frère!I am surprised you are doing all that with only a 2gb swap, and for 38 days.
Application wise- anything past 1GB, I thought it was routine to atleast have a swap double the size of the ram capacity. (~4GB since RAM is ~2GB). It is so odd that the router doesn't even flench with AdGuardHome, Skynet, and unbound running on them. The NVRAM usage is getting pretty full. JFFS is at a reasonable size.Au contraire, mon frère!
He is doing it with 0 used Swap - what a waste on the usb device: defining 2gb of space, but not needing it!
Nevertheless interesting: The AXE16000 does not even need/use 50% of the RAM - so clearly no need for Swap at all!
No bun-fighting allowed, just friendly discussions.I can smell a SWAP file bun-fight brewing ....
Au contraire, mon frère!
He is doing it with 0 used Swap - what a waste on the usb device: defining 2gb of space, but not needing it!
Nevertheless interesting: The AXE16000 does not even need/use 50% of the RAM - so clearly no need for Swap at all!
I am curious to know what router applications are also being utilized. The NVRAM is getting quite full.Yeah, having a 2GB RAM will certainly help minimize significantly the use of swap during daily router operations, but there might be other factors as well.
First, what's the current value of "swappiness" in this particular router? Is it the default ZERO like found in some AX routers? Has it been modified to something else once the swap file was activated?
Also, we don't know the size of all the blocked/allowed/filter lists being used by Adguard & Skynet. For example, small/medium size lists are less likely to trigger swapping when the router has 2GB RAM.
In any case, it's still nifty to clearly see the positive effects/advantages of just doubling RAM size from 1GB.
Eh, what would you set that swappiness value at? Are we talking an ordinary swap, or are you thinking about trying to figure out how to get zram to work?I insist on 20GB swap. Can't explain why.
Incorrect. See the other thread about swap and what the swappiness value means.Swappiness = 0 means the system will never use swap.
swappiness = 0 is the default value on some routers (like my RT-AX86U). Again, see that other thread.Mine is the default 60. How did you change yours?
Eh, what would you set that swappiness value at?
I completely agree; however, at the same time one way to encourage swap use is to increase the swappiness value. If left at 0, it is hard to say beyond the shadow of doubt that the swap will get used when needed aside from what has already been mentioned about in the other thread. We know at somepoint it will trigger, but not until it is very close to the OOM. One way to test this theory is to obserdly force RAM usage until it is full. A good way of doing such is to load too many adlist on either adguardhome or diversion. The user will find out quick if the swappiness of zero will allow their swap to be used when it is truly necessary.Incorrect. See the other thread about swap and what the swappiness value means.
swappiness = 0 is the default value on some routers (like my RT-AX86U). Again, see that other thread.
I don't want to repeat yet again what was already discussed to death in that other thread. But in summary, it's trivial to force RAM usage beyond 100% and see that swap is being used (even with swappiness=0).I completely agree; however, at the same time one way to encourage swap use is to increase the swappiness value. If left at 0, it is hard to say beyond the shadow of doubt that the swap will get used when needed. One way to test this theory is to obserdly force RAM usage until it is full. A good way of doing such is to load too many adlist on either adguardhome or diversion. The user will find out quick if the swappiness of zero will allow their swap to be used when it is truly necessary.
My RT-AX86U has swappiness of 0 and it only has 1GB of RAM.My working theory on why the new AX models have a default swappiness of zero is because the amount of ram some of them have. I suspect this default is only true for the models that have 2GB of ram. Correct me if I am wrong on this though because I might be.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!