AdGuardHome Adguard Home uses 97% of RAM

odiovidio

Occasional Visitor
I've read a number of threads regarding RAM usage and Adguard Home with no real consensus on a good way to reduce the memory footprint.

I'm on GT-AX6000 fw388.1 and using Adguard Home (Edge) with the default install from AMTM (also unbound with the defaults as the upstream)

When I do a reboot, the router is at 59% RAM utilization, which I'm fine with. As soon as I access the Adguard Home web interface, the RAM jumps to 97% and stays there forever. Although it doesn't seem to cause any performance issues, 97% mem utilization sounds like a lot and I'd like to try to reduce it.

I also have a 2GB swap file on USB, however it doesn't seem to get used. I noticed /proc/sys/vm/swappiness was set to zero, so I changed that to 60, but it didn't seem to help matters....Also, it goes back to zero on a reboot. Anyone know why?
 

ColinTaylor

Part of the Furniture
97% memory utilisation is perfectly normal, regardless of the specific addons you're using. This has been explained endlessly.
 

visortgw

Very Senior Member
I've read a number of threads regarding RAM usage and Adguard Home with no real consensus on a good way to reduce the memory footprint.

I'm on GT-AX6000 fw388.1 and using Adguard Home (Edge) with the default install from AMTM (also unbound with the defaults as the upstream)

When I do a reboot, the router is at 59% RAM utilization, which I'm fine with. As soon as I access the Adguard Home web interface, the RAM jumps to 97% and stays there forever. Although it doesn't seem to cause any performance issues, 97% mem utilization sounds like a lot and I'd like to try to reduce it.

I also have a 2GB swap file on USB, however it doesn't seem to get used. I noticed /proc/sys/vm/swappiness was set to zero, so I changed that to 60, but it didn't seem to help matters....Also, it goes back to zero on a reboot. Anyone know why?
As it's been repeated "hundreds" of times within the forum, there is no need to worry about managing RAM usage. LINUX takes care of it!
 

Phil Mcavity

Occasional Visitor
I've read a number of threads regarding RAM usage and Adguard Home with no real consensus on a good way to reduce the memory footprint.

I'm on GT-AX6000 fw388.1 and using Adguard Home (Edge) with the default install from AMTM (also unbound with the defaults as the upstream)

When I do a reboot, the router is at 59% RAM utilization, which I'm fine with. As soon as I access the Adguard Home web interface, the RAM jumps to 97% and stays there forever. Although it doesn't seem to cause any performance issues, 97% mem utilization sounds like a lot and I'd like to try to reduce it.

I also have a 2GB swap file on USB, however it doesn't seem to get used. I noticed /proc/sys/vm/swappiness was set to zero, so I changed that to 60, but it didn't seem to help matters....Also, it goes back to zero on a reboot. Anyone know why?
Haha I was just going to post this exact same thing. I guess we don't need to worry...
 

SomeWhereOverTheRainBow

Part of the Furniture
I've read a number of threads regarding RAM usage and Adguard Home with no real consensus on a good way to reduce the memory footprint.

I'm on GT-AX6000 fw388.1 and using Adguard Home (Edge) with the default install from AMTM (also unbound with the defaults as the upstream)

When I do a reboot, the router is at 59% RAM utilization, which I'm fine with. As soon as I access the Adguard Home web interface, the RAM jumps to 97% and stays there forever. Although it doesn't seem to cause any performance issues, 97% mem utilization sounds like a lot and I'd like to try to reduce it.

I also have a 2GB swap file on USB, however it doesn't seem to get used. I noticed /proc/sys/vm/swappiness was set to zero, so I changed that to 60, but it didn't seem to help matters....Also, it goes back to zero on a reboot. Anyone know why?
I will only "echo" what all the others have said- this seems like a normal memory percentage usage. Having a swap will be helpful when adguardhome runs automatic updates for filter lists. Asus has saw fit to choose zero to be the best default swappiness for the newer kernels. I am not sure if you should be concerned with adjusting the swappiness, I would let others advise on that; however, if you are intending to use the swap sooner it wouldn't hurt to run swappiness at 60. That is a typical default swappiness number of older asuswrt implementations and is even present as a default in current openwrt kernels.
 
Last edited:

Martinski

Senior Member
I noticed /proc/sys/vm/swappiness was set to zero, so I changed that to 60, but it didn't seem to help matters....Also, it goes back to zero on a reboot. Anyone know why?
If you want to set the "swappiness" value whenever the USB disk partition is mounted (and therefore upon reboot as long as the USB disk is attached) you should add the command in the "/jffs/scripts/post-mount" script before the "swapon" command (which activates the swap file):
Bash:
echo 60 > /proc/sys/vm/swappiness
 

zoomer.nospam

New Around Here
If you want to set the "swappiness" value whenever the USB disk partition is mounted (and therefore upon reboot as long as the USB disk is attached) you should add the command in the "/jffs/scripts/post-mount" script before the "swapon" command (which activates the swap file):
Bash:
echo 60 > /proc/sys/vm/swappiness
Thank you! Now my RT-AX86U has stopped restarting every two days!
1675002698530.png
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top