Fedora Linux Support Community & Resources Center
  #1  
Old 30th October 2006, 05:15 AM
mlissner Offline
Registered User
 
Join Date: Jun 2006
Location: Berkeley
Age: 32
Posts: 58
Memory Leak? What's Eating my Memory?

It seems like my memory has died on me. I'm a bit confused.

If I run cat /proc/meminfo, I get the following information:
Code:
MemTotal:       774536 kB
MemFree:         30484 kB
Buffers:         62860 kB
Cached:         469948 kB
SwapCached:          0 kB
Active:         303440 kB
Inactive:       383404 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       774536 kB
LowFree:         30484 kB
SwapTotal:     2048184 kB
SwapFree:      2048184 kB
Dirty:              52 kB
Writeback:           0 kB
AnonPages:      154000 kB
Mapped:          84008 kB
Slab:            25108 kB
PageTables:       6584 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   2435452 kB
Committed_AS:   504128 kB
VmallocTotal:   247800 kB
VmallocUsed:     13872 kB
VmallocChunk:   232948 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB
Something it seems is eating all of my memory. I ran top, sorted by memory, and looked for anything that might be the culprit, but nothing is popping up as using 700+ MB of my RAM.

Does anybody have any theories or suggestions as to how I can look for the offending process or perhaps get rid of it?

Right now I'm running firefox, amarok, gnome, and that's about it. I've tried restarting to no avail. I don't know what else to try, but it's certainly giving me troubles.

Thoughts, ideas?

Thanks in advance.
Reply With Quote
  #2  
Old 30th October 2006, 10:20 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,048
MemTotal: 774536 kB
MemFree: 30484 kB
Buffers: 62860 kB
Cached: 469948 kB


Your machine has 774536 kB

Ther is 30 MB free
MemFree: 30484 kB

file buffers and caches are using
Buffers: 62860 kB
Cached: 469948 kB

so your ssytem is using about 160 MB .

The cache is used when needed by the programs .
Your machine has lots of memory and there is nothing wrong.. The spare memory is just being used for other things until needed.
You have tmpfs and vfs and many things that will use memory until they have to page.
If you open goobs of programs, then the least used parts will swap out after some time, to be used for these others things, like more cache or tmpfs.

The only reason you have 30 mb free is you haven't used enough to fill it all up.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 1st November 2006, 05:59 AM
mlissner Offline
Registered User
 
Join Date: Jun 2006
Location: Berkeley
Age: 32
Posts: 58
That all sounds like a bunch of gibberish to me, but it's convincing if nothing else. Thanks for the help. I have other problems that I've just identified, but I'll post them in a new thread entitled "Getting rid of malicious software". That is if I can't find the answers myself first.

Thanks.
Reply With Quote
  #4  
Old 1st November 2006, 06:09 AM
mwette Offline
Registered User
 
Join Date: Nov 2005
Location: Los Angeles area
Posts: 887
Hi mlissner. I didn't understand either. Here is what I get.
My machine has 2gig of RAM. /proc/meminfo reports that 1.4gig
under "Cached". I an "apropos cache" and came up with this
interesting call: "slabtop". It reports use of cache buffers in
the kernel. My guess is that the kernel sucks up all memory to
use as buffers for things like disk i/o, network i/o, etc. I am
guessing this is normal, and that the cache use will adjust to
needs of processes as you bring them up.
Reply With Quote
  #5  
Old 1st November 2006, 06:10 AM
Dan Online
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 23,210
mlissner:

SlowJet just gave you an accurate and precise description of what is going on. Linux handles memory much differently than windows.

Dan
Reply With Quote
  #6  
Old 1st November 2006, 06:23 AM
mlissner Offline
Registered User
 
Join Date: Jun 2006
Location: Berkeley
Age: 32
Posts: 58
I have no doubt about that. None at all. I completely believe SlowJet in his analysis, and I'm not surprised that Linux is doing something useful with my memory while I'm not (and this is probably something somebody much wiser than I engineered it to do).

What exactly it is doing however, I don't entirely understand at this point, nor do I think I need to considering that according to SlowJet, the whole thing is running fine memory wise. If he says it looks fine and there's nothing to worry about, I'm happy with that.

I'm waiting until another day to explore the higher levels of memory usage. Tonight isn't the night....
Reply With Quote
  #7  
Old 1st November 2006, 06:28 AM
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,850
If you run something like gnome-system-monitor you will get a more acurate measure of actual (what I like to think of as "active") memory useage.
When you start using a lot of swap is when you should start to worry.
__________________
Mark N.

Perpetual Newbie
--
I wanted to proclaim myself "The Typo King" but there's way too much competion. :p

411874 Get Counted
Reply With Quote
  #8  
Old 1st November 2006, 06:33 AM
Dan Online
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 23,210
Understood, mlissner. It's about late:30 out here too. However, if you think that's interesting, Wait until the anacron runs Beagle. Happens about the same time every day. Searches and indexes, and looks like it eats tons of memory. But it's just cache. As soon as anything else needs it, it becomes available. Didn't know that though, as a newbie. So the first time I heard the HDD start chugging for no reason, and watched the memory monitor keep going up (in Redhat 9), I almost blew a gasket!

Dan
Reply With Quote
  #9  
Old 1st November 2006, 06:38 AM
mlissner Offline
Registered User
 
Join Date: Jun 2006
Location: Berkeley
Age: 32
Posts: 58
Funny. I've yet to need Beagle, but I'm looking forward to the day.

The link to my latest post on my woes (if you're into the soap of it all) is here:
http://forums.fedoraforum.org/forum/...369#post664369
Reply With Quote
  #10  
Old 1st November 2006, 06:43 AM
Dan Online
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 23,210
Quote:
Originally Posted by mlissner
Funny. I've yet to need Beagle, but I'm looking forward to the day.

The link to my latest post on my woes (if you're into the soap of it all) is here:
http://forums.fedoraforum.org/forum/...369#post664369
Hah! In my eperience, Beagle couldn't find its own behind, in a hall of mirrors, at high noon, using both hands!

Dan
Reply With Quote
  #11  
Old 1st November 2006, 06:50 AM
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,850
Quote:
Originally Posted by TangledWeb
Hah! In my eperience, Beagle couldn't find its own behind, in a hall of mirrors, at high noon, using both hands!

Dan
And professor Farnsworth's smelloscope (Futurama if you're not familiar)
__________________
Mark N.

Perpetual Newbie
--
I wanted to proclaim myself "The Typo King" but there's way too much competion. :p

411874 Get Counted
Reply With Quote
Reply

Tags
eating, leak, memory

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


Current GMT-time: 18:16 (Friday, 25-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat