LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 05-16-2001, 09:39 PM   #1
ther-a-pea
LQ Newbie
 
Registered: May 2001
Posts: 23

Rep: Reputation: 15
Question


OK.

Red Hat 7.1 Workstation (Not deluxe) complete install...
Ximian Gnome complete install.......

Now, my system is pretty darn bitchin........ but when I check the CPU/Mem usage applet, I am always seeing the CPU bar going from 0-50% then back to zero, kinda like a heartbeat.... And the memory useage seems to just climb the longer the system has been up and running......

Anyone got any ideas why?? Are there 'memory leaks' like in windoze?
Are there any 'Memory Compactors' out there for Linux like there are for Windowz?
Is there a program that will track down runaway threads or loose programs???

Here are my system specs if it helps.....

Intel P-III 1000
Asus CUSL2-C Mainboard
VisionTek GeForce3
Creative Labs SoundBlaster Live! X-Gamer 5.1
256mb Micron PC-133 RAM
46g IBM Deskstar (Win2k)
30g Western Digital (Red Hat)
Pioneer 16x DVD
Philips 8x4x32 CD-RW

I thought my system would just FLY with linux, and it really does most times.... But sometimes it slows down. And there is the fact that the CPU is always 'working'... And the free memory seems to dissappear......

ANYONE have any ideas on what to do??

Thanks.
 
Old 05-16-2001, 10:36 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,822

Rep: Reputation: 120Reputation: 120
Since you said "CPU/Mem usage applet"; I hear the word java. Java is both a memory and CPU hog. It's quite possible that your monitoring program is the one eating up the CPU. I'd suggest that you get to a command line and use 'top'. It will tell you everything you want to know and possibly more than you need to know.
 
Old 05-16-2001, 10:44 PM   #3
ther-a-pea
LQ Newbie
 
Registered: May 2001
Posts: 23

Original Poster
Rep: Reputation: 15
didn't work :(

Well,

I shut off all of my applets (there was only two, heh heh) and then turned off everything else I could think off.

It really didn't make a big difference.... top reported that I was still using 215 megs of memory.. it went down my 1 meg.....

How do I tell what things I need running and what I don't.....
 
Old 05-16-2001, 10:57 PM   #4
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,822

Rep: Reputation: 120Reputation: 120
What does top report as being the biggest hog? Try sorting my mem usage with 'M'. Look at the top man page or top help with 'h' while running top.
 
Old 05-17-2001, 12:28 AM   #5
ther-a-pea
LQ Newbie
 
Registered: May 2001
Posts: 23

Original Poster
Rep: Reputation: 15
Hmmmmm....

It reports that Nautilus is the biggest hog........
 
Old 05-17-2001, 09:01 PM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Smile Re: didn't work :(

Quote:
Originally posted by ther-a-pea
Well,

I shut off all of my applets (there was only two, heh heh) and then turned off everything else I could think off.

It really didn't make a big difference.... top reported that I was still using 215 megs of memory.. it went down my 1 meg.....

How do I tell what things I need running and what I don't.....
When you say 'using' 215 meg of memory what was it being used for, my system has 256MB in and heres what 'free' reports being used:

total used free shared buffers cached
Mem: 255808 103636 152172 0 3508 56400
-/+ buffers/cache: 43728 212080
Swap: 136544 0 136544

So I appear to be using 103MB, but of that 103MB 3.5MB is used for buffers and 53MB is being used as disk cache. If I was to access a few more files and execute a few more programs them I would use all my free memory for caches and buffers. When a program needs to use the RAM these buffers would be flushed and the memory give to the program. You need to look at what the memory is being used for as much as how much is being used. The good old UNIX 'always-full' memory model.

Cheers.

Jamie...
 
Old 05-17-2001, 09:24 PM   #7
ther-a-pea
LQ Newbie
 
Registered: May 2001
Posts: 23

Original Poster
Rep: Reputation: 15
Red face What free said....

Here is what free told me

Mem total:255508
Mem Used:240380
Mem Free:15128
Mem Shared: 0
Mem Buffers: 8716
Mem Cached: 149376

-/+ buffers/Cache Used:82288
-/+ buffers/Cache Free:173220

Swap total:530104
Swap Used: 8
Swap Free: 530096

What does this all mean?

Man, I REALLY hate being the newbie :-) heh heh. I must sound like a total idiot!!
 
Old 05-17-2001, 09:44 PM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Cool

What this really means is that of your 240MB of used memory, 149MB is used for disk caching.

When you run a program like Netscap it is read from the harddisk into memory and executed. When you shut it the program terminates, yet the data read from the HDD is kept in memory so long as that memory isn't needed for anything else. If you then start Netscape again a few moments later (or even hours if the machine hasn't needed the memory for anything else) the OS won't read all the data off the hard disk again, it will simply used the 'cached' copy that is in memory from the last time. This helps to speed things along as even very fask disks are *very* slow compared to memory. A similar process happens when you save things to disk, its stored in memory and then written to disk when its convienient for the OS.

So you're really using about 91MB of memory, the rest is just being used for caching becuase its not needed for anything else. If you had lots of programs running or a program that was chewing all your memory this figure for disk cache would be very small.

Hope that explains things a little. Its just touching the surface.

Cheers!

JAmie...
 
Old 05-17-2001, 11:36 PM   #9
ther-a-pea
LQ Newbie
 
Registered: May 2001
Posts: 23

Original Poster
Rep: Reputation: 15
Whew!

ACtually, that makes me feel ALOT better :-)

I was really worried that I needed to go grab more memory :-)

Thanks,

Rob.
 
Old 10-03-2003, 11:06 AM   #10
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
still missing some memory

This thread has been helpful for me, however it has not answered all of my questions on the subject. Essentially I cannot account for all of the memory.

Using a compination of top and free, I've found that I still cannot account for 60-90 megs worth of ram. Is there anything else that might be eating it up? Could 60-90 megs be "missing" from rounding error - everything is displayed in MBs in top.

Any thoughts?

Thanks.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cpu and memory utilization laxmi_cs Linux - General 2 08-29-2005 04:06 PM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 03:32 PM
CPU and memory usage suguname Linux - Newbie 3 02-01-2005 01:45 PM
rh 9 - old box - new memory - new cpu iamjustauser Linux - Hardware 4 07-26-2004 01:04 PM
CPU, Load and Memory ... KnightAzul Linux - General 1 09-17-2003 11:57 AM


All times are GMT -5. The time now is 08:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration