LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-02-2011, 05:39 PM   #1
KennyDee
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
LXTask vs TOP,Memory usage,Who's lieing?


I recently started using PCLinuxOS LXDE 2011.06,I just checked the memory usage on both apps mentioned
and I was quite surprised from the major difference:
LXTask - 267MB
TOP - 597272k (583MB)

Obviously one of em is reporting it incorrectly,Any idea which? I'd appreciate some input on this.
 
Old 09-02-2011, 06:03 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Quote:
Originally Posted by KennyDee View Post
Obviously one of em is reporting it incorrectly
Noooo - not necessarily.
That presumes they are reporting the same thing. A definitive definition of "memory usage" under Linux has defied the combined nous of the kernel devs (last I looked).
Generally the confusion is between whether cache/buffers are included in the numbers or not. Lots of threads here on this - have a look at "free -m" (note the second line), and see what correlates with what.
 
Old 09-02-2011, 09:19 PM   #3
KennyDee
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
FreeM was more in line with top,Anyhow,After some googlin' around i was able to sort out LXTask,Seems that by default it shows cached memory as free,I unchecked that option and it's now
reporting it correctly so I guess this is solved,Thanks for your help.
 
Old 09-04-2011, 12:53 AM   #4
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
Most people consider the highlighted numbers below to be ones you should be watching. In my example, I'm using 586MB RAM and have almost 2.5GB RAM free.

Code:
$ free -m
             total       used       free     shared    buffers     cached
Mem:          3031       1855       1176          0        680        588
-/+ buffers/cache:        586       2445
Swap:          512          0        511
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
free, top and htop show different memory usage wulp Linux - General 2 07-13-2011 12:22 AM
TOP command: calculation of memory usage samiralmousawi Linux - Server 7 07-29-2008 03:16 PM
Memory usage using TOP FantaJ Linux - Newbie 2 03-05-2008 12:35 PM
How do I read the memory usage in top? jaakkop Linux - Hardware 1 03-10-2006 10:12 AM
Memory usage reported using TOP Kdiver58 Linux - Newbie 1 02-03-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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