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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-26-2006, 06:12 AM
|
#1
|
Member
Registered: Mar 2006
Posts: 71
Rep:
|
RAM usage
Hi,
As you already know,linux takes alot of RAM,but it doesn't need it.So it uses like 500 MB RAM,but when an other app needs it,it gives a part of it to the new app launched.People say that linux does this because it is better and faster.Let's get to my question.When I type top in the terminal it shows me the memory usage with the ''unnecessary'' RAM usage included.How can I see how much RAM it really uses,so without the ''unnecessary'' RAM usage?So how can I see how much RAM it really uses ffor the running processes?I hope you'll understand my question,I couldn't explain it really good.
Thanx in advance
|
|
|
03-26-2006, 06:35 AM
|
#2
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep:
|
Code:
$ free -m
total used free shared buffers cached
Mem: 1009 202 807 0 21 89
-/+ buffers/cache: 92 917
Swap: 486 0 486
The line in bold shows how much is actively being used by programs currently
|
|
|
03-26-2006, 07:10 AM
|
#3
|
Member
Registered: Mar 2006
Posts: 71
Original Poster
Rep:
|
Thanx.Why does it say that I have 694 MB total RAM,while I have 704 MB RAM in my motherboard?
Last edited by Deelk; 03-26-2006 at 07:11 AM.
|
|
|
03-26-2006, 07:16 AM
|
#4
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep:
|
Some of it is used for the kernel and isn't accessible by user space programs
|
|
|
03-26-2006, 07:33 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,317
|
Deelk, perhaps what you are looking for is the RES size from top - see man top.
|
|
|
03-26-2006, 08:46 AM
|
#6
|
Member
Registered: Mar 2006
Posts: 71
Original Poster
Rep:
|
phil.d.g:Thanx
syg00:I've already found it.
I have a little question,but I don't think I have to open a new thread just for that.So here it goes.How can I open a file via the terminal?I want to open an avi file in the folder /home/admin/Desktop/goran/
thanx
|
|
|
03-26-2006, 09:18 AM
|
#7
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep:
|
Well you launch the app that you use to "view" that file and normally pass the filename as an argument, for example I would use mplayer to watch videos so:
Code:
$ mplayer /home/admin/Desktop/goran/file.avi
If I were viewing a text file then I would use vim like this:
|
|
|
03-26-2006, 09:34 AM
|
#8
|
Member
Registered: Mar 2006
Posts: 71
Original Poster
Rep:
|
Thank you very much,it works
|
|
|
03-26-2006, 06:31 PM
|
#9
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
just a note.
even at this the stats given for RAM usage on Linux are basically useless.
rss for instance multi-counts the shared shared pages common to many other apps etc.
moving into the future thankfully the 2.6.16 kernel adds new reporting and i'm sure apps to parse this won't be far behind.
this will hopefully allow us all to trim some of the fat.
|
|
|
03-26-2006, 10:08 PM
|
#10
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,317
|
Quote:
Originally Posted by foo_bar_foo
moving into the future thankfully the 2.6.16 kernel adds new reporting
|
Got a reference I can go look at ???
|
|
|
03-27-2006, 04:03 PM
|
#12
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,317
|
Cheers ...
|
|
|
All times are GMT -5. The time now is 09:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|