LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-11-2003, 08:53 PM   #1
snow
LQ Newbie
 
Registered: Dec 2002
Distribution: RedHat 7.1
Posts: 22

Rep: Reputation: 15
memory management?


alright, I was curious which processes were sucking up my already pitiful hardware setup

I ran: ps aux, vmstat, top, and free -mo => one or two probably would have given me enough info, but I"m a newbie and I"m checking stuff out

here's the output I seem to be getting:

the swap (huge because I have more harddrive than hardware) is not being used at all as far as I know-- everything is reporting 0;

the mem used is reporting around 150-170 (~~150 in console, and 170 while runniing mozilla and a few xterms) of about 186 w/ 9 megs for buffers-- 192 megs total

the top percentages-- I actually added them-- are around 40% (are these percentages of the "used" mem, of "total"?)-- where'd the other 40-50% go?

anyways-- I am running a junker-- I realize that, but it seems like some of this should add up

**most importantly-- is there something I can do about the swap-- or is it only used when there is major system consumption-- and not, basically idle like I am now

anyways, a lot of rambling for a simple question

thanx

Nate Snow(broke-a$$ high school student)
 
Old 02-11-2003, 09:01 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Check whether there's a line like
Code:
/dev/hda6        swap             swap        defaults         0   0
in your /etc/fstab ...

Cheers,
Tink
 
Old 02-11-2003, 09:07 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
And more importantly, I believe you should be told about Linux memory usage. It's smart. It uses all your RAM to make things run faster. What a brilliant idea So, since this is happening, it looks like you will "run out" of memory, however it shares it much better than you may think. As long as the swap does exist as Tink has suggest, you are probably fine. Search this site for swap info, there's gonna be at least a page if not 10 It's a hot topic when one is just learning about the way Linux actually uses memory.

Cool
 
Old 02-11-2003, 09:25 PM   #4
snow
LQ Newbie
 
Registered: Dec 2002
Distribution: RedHat 7.1
Posts: 22

Original Poster
Rep: Reputation: 15
yep

/dev/hdb3 swap swap defaults 0 0


as far as the memory:

I was kinda wondering if it just loaded stuff into the memory-- mozilla is slow starting and then lightning fast; but how do I know which processes I can axe if I don't have a good representation of how much relative mem they're consuming. and what memory is it not reporting in ps, etc? I mean, the programs only account for about half of the memory. It seems like it should have a listing like system or kernel or mem manager= 40%

If you've got a quick answer-- great. If not, I'll read up on memory management, and I will read the pages about swap's on the site. Thanx a lot

Nate
 
Old 02-11-2003, 09:30 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
top. I think top is probably going to help with what you are looking for.



Cool
 
Old 02-12-2003, 01:35 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Another very nice tool for monitoring
process status & memory usage :)

It displays processes as coloured blobs
in a lava-lamp, their size representing
their memory usage, their vertical position
their CPU usage and the brightness of the
colour their activity ... :)

Once you come to know what process
gets what colour (and they always get
same one!) it's quite intuitive ;)

Cheers,
Tink
 
Old 02-12-2003, 01:37 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Whoa, that's pretty cool!

How well does it work for systems that run many processes all the time?

Cool
 
Old 02-12-2003, 01:57 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi Master ...

Works great here, for me and a few colleagues :)

One of them has 256MB RAM and still gets a
swapper usage of 150MB ... go figure how well
it works ;)

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
memory management navaladi Mandriva 2 02-18-2005 06:47 AM
Memory management Mojojo Linux - Hardware 11 08-31-2003 10:29 AM
memory management exigent Linux - General 1 08-17-2003 08:28 PM
Memory Management hhegab Linux - General 3 08-07-2002 10:20 PM
Memory Management mrsolo Linux - General 7 06-26-2002 12:55 AM

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

All times are GMT -5. The time now is 04:21 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
Open Source Consulting | Domain Registration