I've recently been experimenting with AdGuard on my new Flint 2 MT600 router - Openwrt and Linux is somewhat new to me. A lot of Googling tells me that AdGuard can use a lot of ram, especially if you start adding large filter lists. So after adding a hagezi filter to my AdGuard I checked the ram usage - and discovered that the way GL displays ram usage in the System->Overview menu seems to be different than how the Luci menu reports it on the main Status page.
The context text on the main GL Overview screen claims "The memory shown is the memory available to the Linux system. The total memory is less than the physical memory because some of it is allocated to the Wi-Fi subsystem or other boot areas." Nothing on the GL screen appears to reflect how much ram is dedicated to subsystem etc, but Luci appears to indicate that 38% of the 1GB ram is system reserved, leaving 62% (620.96 MB) for the OS. I know that systems need to reserve memory to function, but 38% of 1GB just for hardware seems somewhat excessive to me.
What made me look into this deeper was when I noticed the Luci System Processes screen show that my AdGuard process was using 131% of ram? Does that mean I'm now into swapped memory from the flash drive?
Anyway, Luci indicates I have 620.96MB total ram available after system reservations, and I'm using 530MB of that 620.96MB - that works out to 85% ram usage, not the 53% based on the total 1GB displayed by Luci. Or the 33% ram used shown on the GL menu chart.
I'm sure there are valid reasons why the different screens show different ram usages, and I simply do not understand what they reflect. My biggest concern would be if AdGuard is using too much ram (131% ???) and if that is a problem.
EDIT - I also checked the CLI using the TOP command, which seems to reflect a combination of what both GL and Luci are displaying.
Mem: 513176K used, 499968K free, 5660K shrd, 62188K buff, 145244K cached
Thanks!
GL System RAM:
Luci RAM:
Luci Processes: