linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* oom killer on swapless music player
@ 2004-10-21  3:57 Anthony DiSante
  0 siblings, 0 replies; only message in thread
From: Anthony DiSante @ 2004-10-21  3:57 UTC (permalink / raw)
  To: linux-kernel

I run a linux box in my car as an mp3 player.  It just has a perl script 
that outputs to an LCD on the parallel port, and does a continuous loop 
accepting keyboard/remote control input, and forks to play songs via madplay 
or mpg321.  When the forked process finishes, it signals the parent script, 
which then starts the next song in the playlist.

The box has a 600MHz VIA CPU, 256MB of DDR RAM, and no swap space (the 
partitions are all mounted read-only since it's in a car).

This was running mostly fine on 2.4.25, but I recently upgraded to 2.6.8 to 
switch to udev and for a few other reasons.  Now after playing for about 2 
hours, the RAM is full, and the oom killer starts taking out the music 
script and/or madplay.  Under 2.4.25, I ran a small "freeram" C program 
whenever the memory usage was >70%, which just malloc()ed a bunch of memory 
and then exited, clearing the disk cache out of RAM.  But now, under 2.6.8, 
that doesn't work, because the buffer/cache is only 1 or 2 megs full; nearly 
all the 256MB of RAM shows up in the "used" column when I run the "free" 
program.  And after the oom killer has killed my music script, there's 
almost nothing else running -- I boot directly to my script, bypassing 
everything in /etc/init.d/ -- but the RAM is still full.

What has changed from 2.4 to 2.6 that makes this happen?  And... what 
exactly is it that's happening?  Does some program (my script, madplay, alsa 
drivers) have a severe memory leak that 2.4 somehow didn't care about?  Or 
did I configure something incorrectly in my 2.6 kernel?

Thanks,
Anthony DiSante
http://nodivisions.com/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-21  4:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-21  3:57 oom killer on swapless music player Anthony DiSante

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).