Subject: Re: Time to bump the default open files limit?
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 06/20/2002 18:37:33
>Further, imagine you hit the limit on the shared file table.  How do
>you track which processes are currently hogging open files, or track
>the dynamic usage patterns over time?  In the end, I gave up and
>configured a kernel with MAXUSERS=2048, or something equally overconfigured.

c'mon...this is unix, dudes.  :)

% fstat | awk '$4\!="wd"&&$4\!="FD"{print$3}' | uniq -c | sort -n | tail -3
  17 26847
  23 6943
  31 4708
% ps 4708
  PID TT  STAT      TIME COMMAND
 4708 ??  S<s   77:13.99 xntpd -p /var/run/xntpd.pid 

ah, but the machine has lots of addresses, so it's not leaking.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."