Flint 2 - Confused About RAM Usage (GL vs Luci)

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:


from what i understand ( and i noticed the same numbers) this is not the actual use, but "Virtual Memory Size". Got the answers from AI ( grok) .
Mine is for example 197 %, but no issues what so ever.

1 Like

OK, I guess that makes sense.

I'm an old boomer - I need to get a handle on all this new fangled AI stuff lol.

Thanks!

To check the memory usage, use the command FREE

Thanks for the tip!

I note that FREE also includes swap file memory - it's reassuring to see nothing reported there, that was my primary concern.

BusyBox v1.33.2 (2024-12-05 01:20:08 UTC) built-in shell (ash)


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M

OpenWrt 21.02-SNAPSHOT, r15812+1082-46b6ee7ffc

root@GL-MT6000:~# free
total used free shared buff/cache available
Mem: 1013144 284668 499432 5660 229044 667012
Swap: 0 0 0