On Tue, 30 Aug 2022 17:10:17 -0700
American Citizen <[email protected]> wrote:

> > Is there any CLI command which gets this right? 

$ cat /proc/meminfo

To get the amount of memory being used for anything, subtract MemTotal from 
MemFree. Some
of that memory can be immediately freed upon demand though (the page cache) so 
to get the
amount of memory th

To get the amount of memory that either i used and can't be immediately freed 
upon demand,
subtract MemTotal from MemAvailable.

That's what the kernel developers themselves wrote, at least. Hopefully no CLI 
tool will
be more accurate than they are. I dunno what CLI tools do, but they probably 
just parse
/proc/meminfo to get their data.

Reply via email to