LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Comparing Cached Free Memory with Top, Meminfo, and Free (https://www.linuxquestions.org/questions/linux-software-2/comparing-cached-free-memory-with-top-meminfo-and-free-4175459362/)

dman777 04-23-2013 09:14 PM

Comparing Cached Free Memory with Top, Meminfo, and Free
 
with:

cat /proc/meminfo && free -k && top -n1 | head

I am trying to compare the cached ram that is free for use. For these amount info in:

top: ###### cached
meminfo: ##### inactive
free: ##### free for buffers/cached

They are not the same or that close. Why is this?

syg00 04-24-2013 06:26 PM

Because they are different metrics.
"Inactive" is a subset of "cached+buffers" - the numbers in the second line of "free" (to which I presume you are referring) are a calculated indication of "total" free memory on the system.

TobiSGD 04-27-2013 10:03 AM

Moved: This thread is more suitable in Linux - Software and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 12:57 PM.