LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Like to understand the linux "free" command with respect to cache and free memory (https://www.linuxquestions.org/questions/linux-server-73/like-to-understand-the-linux-free-command-with-respect-to-cache-and-free-memory-798243/)

bruzzese 03-27-2010 09:43 AM

Like to understand the linux "free" command with respect to cache and free memory
 
Was wondering if anyone can explain briefly the relationship of "cache" and free memory in the "free" memory command. Thanks.

fang0654 03-27-2010 10:38 AM

From what I understand, the kernel cache's frequently used files in the RAM under cache. These files are only put in unused memory, and the kernel will give up any cached memory to any process that needs memory. In essence, your available memory is your free memory (unused at all), and the cached memory (being used to cache files). The second line of the 'free' command shows you what your actual free/used memory is.

bruzzese 03-28-2010 12:52 PM

Thanks very much and that confirms my understanding as well. Much appreciate taking the time to respond.


All times are GMT -5. The time now is 04:27 PM.