LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-26-2004, 03:16 PM   #1
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Memmory Leaks?


Hi,

I've been running linux for a while now. And with good results.
However, i've noticed recently, strange things are going on with
the RAM. I'm using Gkrellm, great app, nice to be able to glance
over and see what my system is up to. My system has 512 MB of
pc 2100 ram, and is running kernel 2.6.5. When i first boot, i have
about 414 MB of RAM left, cool, not a problem, the system is swift,
and does it's job well. It's mainly a server only, does my file sharing,
internet sharing, proxy, email, the lot. I mainly leave it in X when not
used, like i say there's ample memmory left, but i've started to notice,
when left overnight memmory drops permanently to about 126 MB. It's
making me wonder, if maybee memmory is being used and not freed up
correctly. A reboot sorts it out, but again by morning it's dropped. Are
there any memmory monitoring tools out there that could help me find out
what is going on? Or is there somthing that maybee i have'nt come across
yet, a patch? vulnerability? Nothing unusual in the logs, nothing that stands
out as odd anyway. And i'm still unsure when this started to happen, i mainly
just use the server as a gateway, so i'm not on it directly a lot of the time,
unless i'm upgrading it. It has started acting up a little lately, somtimes loosing the net completely. I put this down now to lack of memmory.

Any help appreciated...

Cheers
 
Old 04-26-2004, 08:32 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"but i've started to notice,
when left overnight memmory drops permanently to about 126 MB. It's
making me wonder, if maybee memmory is being used and not freed up
correctly. "

"It has started acting up a little lately, somtimes loosing the net completely. I put this down now to lack of memmory."

The way that Linux reports memory usage is different than you would intuitively think. The way that your memory usage is being reported is normal. Here is a thread which explains how memory usage is reported in Linux:

http://www.linuxquestions.org/questi...threadid=91829

Which is not to deny that you are having problems but your memory usage statistics probably do not indicate that your problems are caused by misuse of memory.

I suggest that you post your question in Linux-Networking and see if one of the networking guys can tell you what could possibly cause your problem.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites

Last edited by jailbait; 04-26-2004 at 08:39 PM.
 
Old 04-26-2004, 08:51 PM   #3
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
as jailbait suggested, linux uses memory differently than you're probably used to in windows. unused memory is wasted memory, so linux uses it, keeping libraries and stuff cached so if they're needed again, they're ready. you might have noticed that the first time you start up a big program like mozilla, evolution, etc. it takes noticeably longer than subsequent times. that's because a lot of things are still in the memory cache so they can be used again if needed. if you start something else and need more memory than is free, linux dynamically just starts using what's in the cache, starting from the oldest stuff in there.

you can use the free command (or free -m) to see the status of your memory. that will show what's used, what's free, what's buffered, what's in swap, etc. here's a shot of mine:
Code:
[1] sero:~ $ free -m
             total       used       free     shared    buffers     cached
Mem:           503        498          4          0         96        164
-/+ buffers/cache:        237        265
Swap:         1145          0       1145
take note especially of what your swap space is doing. under normal use, it shouldn't be accessed hardly at all, esp. if you have 512MB of ram. as you can see, mine is still at 0, and my box has been up for 4 or 5 days. if it is being used a lot, that could mean something's wrong.
 
Old 04-26-2004, 09:24 PM   #4
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
whoops, read free wrong. Post is irrelevant.

Last edited by Onemessedupjedi; 04-26-2004 at 09:26 PM.
 
Old 04-27-2004, 11:10 PM   #5
psyborgue
LQ Newbie
 
Registered: Apr 2004
Distribution: Custom Distro
Posts: 12

Rep: Reputation: 0
I'm suspecting memory holes in perhaps gtk-gnutella. Try upgrading. I had similar problems with it a while back,
 
  


Reply



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
nat and memmory Ammad Linux - Networking 1 09-03-2005 09:26 AM
Variables and memmory allocation xailer Programming 4 12-08-2003 06:59 PM
Memmory Constraining at boot time /-\guesser\-/ Linux - General 0 10-20-2003 02:51 PM
memmory problem benke Linux - Newbie 2 09-28-2003 08:04 AM
Memory Leaks? stampede96 Linux - Software 3 02-20-2003 12:52 PM

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

All times are GMT -5. The time now is 02:36 PM.

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