LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2012, 09:53 AM   #1
newbie0101
Member
 
Registered: Nov 2011
Posts: 47

Rep: Reputation: Disabled
free -m condtradicts with System Monitor


hello guys, i have reinstalled Debian on my laptop and i see an interesting thing.
when i run command "free -m" i get this:
Code:
free -m
             total       used       free     shared    buffers     cached
Mem:          3873       3839         34          0         13       3597
-/+ buffers/cache:        228       3645
Swap:         5444          0       5444
System Monitor shows around 250 MiB of memory is being used but free shows 3.8G.

why both show differences and why is 3.5G cached ?
thanks

Last edited by newbie0101; 01-14-2012 at 09:57 AM.
 
Old 01-14-2012, 11:40 PM   #2
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
The Linux kernel makes effective use of free memory by using it as a page cache. The output you get from "free" gives you a better breakdown of how your memory is being used, but the output is terse and some of the terms it uses can be confusing: "used" includes both memory that is being used by running processes and memory that is in use by the page cache. Pages are removed from the page cache if a running (or new) process needs more memory than is available in the "free" column, so it's nothing to get worried about.

I don't use Debian or System Monitor, but I assume it's reporting the information found in the "-/+ buffers/cache:" row. These numbers compensate for the page cache, and only show the amount of memory being used by running processes and the remaining amount of memory that can be requested by processes respectively.
 
  


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
Script to monitor system file system. dezavu Linux - Server 5 09-13-2011 01:04 AM
Automatically monitor free space anon091 Linux - Newbie 12 07-24-2009 03:48 PM
free -m shows 2GB used but gnome-system-monitor shows 1GB anjanesh Linux - General 1 03-04-2009 04:49 AM
free network monitor in linux xcoolaryan Linux - Networking 0 01-05-2005 05:01 AM
Free flatscreen TV or Monitor offer! Poisonjam General 6 08-07-2004 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:03 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