asuswrt-merlin.ng icon indicating copy to clipboard operation
asuswrt-merlin.ng copied to clipboard

Improve memory displays

Open kjbracey2 opened this issue 3 years ago • 3 comments

Separate out cache memory from the memory displays, avoiding confusion.

In the router status, "free" is changed from being MemFree to being (MemFree + Cached - Shmem + SReclaimable + Buffers), so it includes probably-claimable memory. This is equivalent to htop's cache + buffers + free. "Used" is then physical total minus that, equivalent to htop's used + shared, plus the reserved memory not counted in Linux's total.

In the Tools, existing fields are left as-is, but new "Used" and "Available" rows are added. "Used" is equivalent to htop's used + shared, so matches the router status display, except that we're not including reserved memory. "Available" is the kernel's MemAvailable value - a good high-level space available indication.

Follows discussion at https://www.snbforums.com/threads/ax88u-high-ram-usage-maybe.76650/

kjbracey2 avatar Jan 09 '22 13:01 kjbracey2

There are still people getting confused by this: https://www.snbforums.com/threads/fix-this-bug-pls-big-file-size-copy-and-the-memory-getting-full-ver-386-4.76947/

kjbracey2 avatar Jan 22 '22 08:01 kjbracey2

awesome

JackMerlin avatar Jan 30 '22 19:01 JackMerlin

Is this included?

Eldenroot avatar Jul 06 '22 10:07 Eldenroot