LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-27-2010, 09:43 AM   #1
bruzzese
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, 10:38 AM   #2
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
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, 12:52 PM   #3
bruzzese
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.
 
  


Reply



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 08:54 AM
Question regarding this line "Free taken as in free speech, not free beer" SHENGTON Linux - Newbie 11 01-12-2009 07:40 AM
Help me... wipe or free "cache" memory ! minhstone Red Hat 2 01-21-2008 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:36 PM.

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