All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony DiSante <orders@nodivisions.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: oom killer on swapless music player
Date: Wed, 20 Oct 2004 23:57:19 -0400	[thread overview]
Message-ID: <4177339F.9010409@nodivisions.com> (raw)

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/

                 reply	other threads:[~2004-10-21  4:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4177339F.9010409@nodivisions.com \
    --to=orders@nodivisions.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.