LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-09-2003, 02:17 PM   #1
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
Unhappy Slackware Memory leak?


Basic 9.1 install... ext3... 256meg swapfile...

running Top

my free system memory gets gobbled up at about 4kb a sec. Even when only running a term and top.

Is this the cache building up?
When will it stop?

I have turned off all but primary processes. And when I add up all the memory used in Top... it is no ware neer the total memory used.

Any ideas?
 
Old 11-09-2003, 03:21 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
The memory reporting in 'top' is often confusing; if there are 10 processes of 'foo' using a total of 10MB of memory, it'll show each one as using 10MB.

Go to a console and type 'free' to see how much memory you really do have available:

Code:
$ free
             total       used       free     shared    buffers     cached
Mem:        515824     346680     169144          0      59448     157632
-/+ buffers/cache:     129600     386224
Swap:      1020088      13656    1006432
Under the 'used' column, the second number is the amount of memory actually in use, IIRC. It looks like I have 129MB in use, out of 512MB, and I have about 74 processes running. You probably don't need to worry about memory leaks
 
Old 11-27-2003, 10:09 PM   #3
mmmooo
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
I'm actually having the same problem, but with a slackware 8.1 install. I've upgraded a bunch obviously (kernel to 2.4.22, sshd, etc). Only thing left running now is sendmail,sshd and a few minor processes by inetd (pop3/talk). memory still disappears from `free` at about 4k/s. Have no idea where it goes, but I think it is the kernel. Not much ram on the machine (its a really old box). I've checked everything, the only ideas left are somehow a leak in the kernel, or a bad ram stick.

Memory: 191372k/196608k available (1686k kernel code, 4848k reserved, 635k data, 116k init, 0k highmem)

total used free shared buffers cached
Mem: 191488 186148 5340 0 3896 110064

any ideas would be greatly appriciated.
 
Old 12-08-2003, 10:04 PM   #4
cimmer
LQ Newbie
 
Registered: Dec 2003
Posts: 17

Rep: Reputation: 0
i have been using slack since 1997. i just installed off the 9.1 iso and there is definitely a leak somewhere here. i compiled a fresh 2.4.23 kernel straight from kernel.org, moving off the distro 2.4.22 kernel. i compiled everything statically and have no modules inserted. i killed everything but system processes and memory was dissapearing at about 8k every 2-3 seconds, yet no process is claiming responsibility. i've never run into this before. i'm looking into it and will post back if i find anything out. fyi, my memory usage went from 30 megs in console (normal) to 70 megs in about 15 minutes, so the leak does not appear to be linear.
 
Old 12-08-2003, 10:29 PM   #5
cimmer
LQ Newbie
 
Registered: Dec 2003
Posts: 17

Rep: Reputation: 0
well that was quick.

https://listman.redhat.com/archives/.../msg00124.html

that should answer your questions. this is the first time i've used ext3, hence my first run in with this. if you don't dig the idle memory usage for whatever reason, you should be able to go back to ext2 and be fine.

mad love.

edit:
forgive the redhat post :>

Last edited by cimmer; 12-08-2003 at 10:30 PM.
 
Old 12-09-2003, 02:04 PM   #6
mmmooo
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
well, that makes perfect sense, no reason to switch to ext2. 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
memory leak ? os2 Programming 1 05-19-2005 01:45 PM
what is memory leak blackzone Programming 6 11-05-2004 10:32 AM
possible memory leak?? matt80 Linux - General 2 07-01-2004 11:07 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM
Memory Leak FredrikN Linux - General 4 09-17-2002 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:45 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