Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2008 19:05:08 +1000
From:      Aristedes Maniatis <ari@ish.com.au>
To:        Jeremy Chadwick <koitsu@FreeBSD.org>
Cc:        freebsd-stable Stable <freebsd-stable@freebsd.org>
Subject:   Re: sysctl maxfiles
Message-ID:  <DD7C3A8F-B239-4519-A5C5-D2D5F4BC36BD@ish.com.au>
In-Reply-To: <20080927030204.GB40195@icarus.home.lan>
References:  <98425339-23F8-4A90-8CF1-2E85DD82D857@ish.com.au> <20080927030204.GB40195@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help

On 27/09/2008, at 1:02 PM, Jeremy Chadwick wrote:

> Anyway, I'd like to know why you have so many fds open  
> simultaneously in
> the first place.  We're talking over 11,000 fds actively open at  
> once --
> this is not a small number.  What exactly is this machine doing?  Are
> you absolutely certain tuning this higher is justified?  Have you  
> looked
> into the possibility that you have a program which is exhausting fds  
> by
> not closing them when finished?  (Yes, this is quite common; I've seen
> bad Java code cause this problem on Solaris.)


Well, there was a runaway process which looks like it is leaking fds.  
We haven't solved it yet, but the fact that the maxfiles per machine  
and the maxfiles per process were so close together was really causing  
us grief for a while.



> You're asking for trouble setting these values to the equivalent of
> unlimited.  Instead of asking "what would happen", you should be  
> asking
> "why would I need to do that".
>
> Regarding memory implications, the Handbook goes over it.

Unfortunately I've been unable to find it.  While we fix the fd leak  
I'd like to know how high I can push these numbers and not cause other  
problems.

Ari Maniatis



-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DD7C3A8F-B239-4519-A5C5-D2D5F4BC36BD>