Free Memory
Actually, 60 MB free RAM is probably no reason to worry. The built-in busybox free command (linux command that displays information about memory usage) & the "Tools - System Information" web gui page do not show you the memory used by the kernel cache. The linux kernel can use almost all free memory for cache, but will free it up when a process requests more memory. Install the entware procps-free package to see the complete memory information.
Example from my router:
built-in free command:
It seems I have only 68MB of free RAM (71 if I add the buffers)
free from procps-free:
The used & free numbers are the same, but you can see that 144MB is used by the kernel cache. So, running/sleeping processes only actually consume 24MB and 215MB is still available (see the "-/+ buffers/cache" line).
Edit:
You can get even more memory stats via "cat /proc/meminfo" (it also includes the cache information & you do not need to install entware for this).
RMerlin can maybe add the cache information to the webgui, so that people do not get worried by "low memory conditions".
Actually, 60 MB free RAM is probably no reason to worry. The built-in busybox free command (linux command that displays information about memory usage) & the "Tools - System Information" web gui page do not show you the memory used by the kernel cache. The linux kernel can use almost all free memory for cache, but will free it up when a process requests more memory. Install the entware procps-free package to see the complete memory information.
Example from my router:
built-in free command:
Code:
/usr/bin/free
total used free shared buffers
Mem: 239860 171236 [B]68624[/B] 0 2480
-/+ buffers: 168756 [B]71104[/B]
Swap: 0 0 0
free from procps-free:
Code:
/opt/bin/free
total used free shared buffers cached
Mem: 239860 171236 68624 0 2524 [B]144368[/B]
-/+ buffers/cache: [B]24344[/B] [B]215516[/B]
Swap: 0 0 0
Edit:
You can get even more memory stats via "cat /proc/meminfo" (it also includes the cache information & you do not need to install entware for this).
Code:
cat /proc/meminfo
MemTotal: 239860 kB
MemFree: 68624 kB
Buffers: 2524 kB
[B]Cached: 144368 kB[/B]
SwapCached: 0 kB
Active: 22596 kB
Inactive: 130468 kB
HighTotal: 131072 kB
HighFree: 6264 kB
LowTotal: 108788 kB
LowFree: 62360 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 6176 kB
Mapped: 3424 kB
Slab: 10064 kB
SReclaimable: 1712 kB
SUnreclaim: 8352 kB
PageTables: 468 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 119928 kB
Committed_AS: 14256 kB
VmallocTotal: 1015800 kB
VmallocUsed: 5496 kB
VmallocChunk: 1006680 kB
RMerlin can maybe add the cache information to the webgui, so that people do not get worried by "low memory conditions".
Last edited: