LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2007, 11:39 AM   #1
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Arrow Memory usage - quick question


Just a quickie.....

When I look at memory usage using

Code:
free -m
I can see:

Total: 503
Used: 150
Free: 352
Shared: 0
Buffers: 4
Cached: 133

This is purely a text based install with nothing running - am I right in thinking that the actual amout of RAM free is FREE + BUFFERS + CACHED? = 489Mb
 
Old 11-09-2007, 12:05 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Nope, USED+FREE (150+352=502)
 
Old 11-09-2007, 12:11 PM   #3
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Rep: Reputation: 33
cashed is one on cpu chip it self.

Your system have privilege to use it only.
I think.
 
Old 11-09-2007, 12:12 PM   #4
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
I believe when it says free thats what it means, in your case you have 352mb of free memory. The Buffers: 4 Cached: 133 is a brake down of the Used: 150

You can also take a look at the top command or vmstat and get a idea of memory usage.
 
Old 11-09-2007, 12:12 PM   #5
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Rep: Reputation: 33
Quote:
Originally Posted by Lenard View Post
Nope, USED+FREE (150+352=502)
yes, dont get too exited. hehe you only have what you paid for.
just kidding.
 
Old 11-09-2007, 12:14 PM   #6
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Original Poster
Rep: Reputation: 30
Worded that wrongly - how do i see how much is actually being used by processes? There is nothing running using 150mb! This is a bare bones install
 
Old 11-09-2007, 02:16 PM   #7
PMorph
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 213

Rep: Reputation: 31
As for what is available for applications to use, you can sum up the "free" and "cached", at least.
Portions from "cached" will be handed over to applications if you're getting low on "free".

Last edited by PMorph; 11-09-2007 at 02:17 PM.
 
Old 11-09-2007, 03:18 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by The_JinJ View Post
Worded that wrongly - how do i see how much is actually being used by processes? There is nothing running using 150mb! This is a bare bones install
Code:
ps aux| awk ' $6 ~ /[0-9]+/ {total+=$5} END{print total/1024}'
That adds up the resident memory sizes of processes.



Cheers,
Tink
 
  


Reply


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
Quick Hard Drive Usage question DragonM15 Linux - Hardware 12 03-21-2007 01:14 AM
Question about memory usage stefaandk Linux - Newbie 3 08-03-2005 03:22 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 05:45 AM
Memory usage question oneandoneis2 Linux - General 2 06-27-2004 01:29 PM
memory usage question bmicielli Linux - Hardware 3 12-27-2003 08:15 PM


All times are GMT -5. The time now is 04:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration