Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-27-2010, 10:43 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Question 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.
Old 03-27-2010, 11:38 AM   #2
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 108

Rep: Reputation: 26
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.
Old 03-28-2010, 01:52 PM   #3
LQ Newbie
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks very much and that confirms my understanding as well. Much appreciate taking the time to respond.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to decipher memory command "free" in terminal? linus72 Linux - General 4 07-22-2009 09:54 AM
Question regarding this line "Free taken as in free speech, not free beer" SHENGTON Linux - Newbie 11 01-12-2009 08:40 AM
Help me... wipe or free "cache" memory ! minhstone Red Hat 2 01-21-2008 08:07 PM

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration