All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dave Gilbert (Home)" <gilbertd@treblig.org>
To: linux-kernel@vger.kernel.org
Subject: file handles - who ate them?!
Date: Wed, 07 Aug 2002 15:02:55 +0100	[thread overview]
Message-ID: <3D51288F.1090808@treblig.org> (raw)

Hi,
   I had a bad case of running out of file handles over the weekend and 
wondered:

    1) If there are any tools for trying to track down what ate them 
all.  Looking at the state of the system today I see 2541 
(allocated)/763 (used)/ 8192 (max).  I guess I'd like to know when it 
hit the peak and what the state of the system was around that time (to 
find out if it was a particular cron job etc). I can see what is using 
them now - but that isn't too much use.

   2) Why is there a file-nr-max? Is it the case that the kernel 
allocates file handles as it needs them (i.e. the 2541 above) - but 
never frees back?  Is it just as a stop to stop rogue programs taking 
all RAM? (i.e. why don't we just let the allocated amount grow as 
needed). Is there a reason I shouldn't just set this to a huge figure?

   3) Is it possible to change what happens on hitting the max 
condition? - in someways for me it would have been better if it had 
panic'd and rebooted rather than sitting there and sulking not being 
able to open files. (Getting it to log a dump of open files at this time 
would be the ideal).

(2.4.16, x86)

Dave


                 reply	other threads:[~2002-08-07 13:59 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=3D51288F.1090808@treblig.org \
    --to=gilbertd@treblig.org \
    --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.