PDA

View Full Version : Debian + 6.1.1 = Memory Leak?



street_samurai
2005-09-14, 15:23
Hi,

I'm running Debian 3.1 (Sarge) with Slimserver 6.1.1.

I noticed last night that my RAM memory was at near 100% usage. Rebooted. Back down to 18%. Waited around for a while. Back at 100%.

Top shows that nothing is using that much memory. Slimserver is using around 35mb.

So I reboot again. Stop slimserver. Wait. Memory stays around 18% usage.

Start Slimserver. Memory again climbs to 100%.

I searched briefly in bugzilla and didn't see anything about this bug in there.

Anyone else seeing something similar? Any suggestions on fixing? Should I install a daily?

Thanks in advance.

ss.

radish
2005-09-14, 16:57
Well if the slim server proc isn't using it, then it isn't a leak. Most likely disk cache or something.

MrC
2005-09-14, 17:09
To add a little more, Unix systems will utilize all RAM, and swap out what is not currently used. This is normal. There's no sense clearing RAM and then finding you might just need the pages again.

I doubt perl has a memory leak, but to comfort yourself, look at the resident set size of the perl process for slim. It should not continue to grow beyond a certain point. If you are going to use top, look at the RSS column.

street_samurai
2005-09-14, 18:36
Thank you both for the prompt response.

I'll play around a little more and convince myself that it isn't Slimserver thats causing the problem.

Sorry to expose my linux noobiness on the slimserver forum!

ss.

MrC
2005-09-14, 18:59
No need to apologize for anything. Questions are always welcome - we all learn something.

Robin Bowes
2005-09-15, 01:39
street_samurai wrote:
> Thank you both for the prompt response.
>
> I'll play around a little more and convince myself that it isn't
> Slimserver thats causing the problem.
>
> Sorry to expose my linux noobiness on the slimserver forum!
>

Try typing "free" in a shell. You should see something like this:

[root@dude ~]# free
total used free shared buffers cached
Mem: 1554780 1522700 32080 0 274752 772640
-/+ buffers/cache: 475308 1079472
Swap: 1469816 27500 1442316

This says tht I'm using 1,522,799 kB of RAM (the server has 1.5GB) but
if you take away memory used for buffers and cache I'm only actually
using 475,308 kB.

R.
--
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

street_samurai
2005-09-16, 14:34
Brilliant!

total used free shared buffers cached
Mem: 906736 902624 4112 0 52996 673352
-/+ buffers/cache: 176276 730460

Amazing how long you can use Linux and still not know very much about how it works. I knew about free but didn't totally understand the +/- buffers line.

Thanks you very much for explaining!

ss.

pfarrell
2005-09-16, 14:50
On Fri, 2005-09-16 at 14:34 -0700, street_samurai wrote:
> total used free shared buffers cached
> Mem: 906736 902624 4112 0 52996 673352
> -/+ buffers/cache: 176276 730460

So you've got about a full CD worth of memory in buffers
or several CDs of flac or many....

> Amazing how long you can use Linux and still not know very much about
> how it works.

Its a cult. We only let knowledge out very slowly
after you've paid your dues.

I've been using Linux for something like 5 years, and
*nix for 15 or 20. Mostly as a developer, not a
sys-admin. But I learn something all the time,
at least once a week.

On of the curses of modern systems is that no one can learn
all about them. 25 or 30 years ago, you could
actually understand significant parts of an OS like
Multics or Tops-10.


--
Pat
http://www.pfarrell.com/music/slimserver/slimsoftware.html