[Mailman-Developers] Thanks Everyone - First Big Mailing

Dan Wilder dan@ssc.com
Fri, 11 Jan 2002 09:39:08 -0800


On Fri, Jan 11, 2002 at 09:18:12AM -0800, Peter C. Norton wrote:
> On Fri, Jan 11, 2002 at 08:39:41AM -0800, Marc Perkel wrote:
> > I'm going to upgrade python to the latest and greatest. If I get the exim
> > processes down I shouldn't overload the file handles - but - in the 2.4 kernel
> > - how do I increase the number of open files?

I jumped into the middle of this thread.  I'm assuming "linux".
If that's wrong, ignore this post.

Take a look at /usr/src/linux/Documentation/proc.txt

It may have changed in 2.4, but in 2.2, you set max file descriptors:

echo 8192 >/proc/sys/fs/file-max
echo 24576 >/proc/sys/fs/inode-max

for example.  proc.txt from 2.2 indicates you should set inode-max
between three and four times file-max.  Biggest number you can set
for file-max is 1024*1024.

The proc.txt also discusses how to evaluate your settings.

Once you arrive at reasonable settings, have your init scripts set them.

> The kernel ships by default with about 8k file descriptors available.  If
> the system just does email, then you probably have a ulimit setting of 1024
> by default, and you can change that by (as root) doing a ulimit -n 2048, or
> 4096, or whatever and spawning the shell that starts exim, or the shell that
> starts postfix - whichever is exhausting its resources.
> 
> There used to be some header twiddling you had to do in 2.2 to get select()
> to work properly, but I don't think thats an issue anymore.
> 
> -- 
> The 5 year plan:
> In five years we'll make up another plan.
> Or just re-use this one.
> 
> _______________________________________________
> Mailman-Developers mailing list
> Mailman-Developers@python.org
> http://mail.python.org/mailman/listinfo/mailman-developers
> 

-- 
-----------------------------------------------------------------
 Dan Wilder <dan@ssc.com>   Technical Manager & Editor
 SSC, Inc. P.O. Box 55549   Phone:  206-782-8808
 Seattle, WA  98155-0549    URL http://embedded.linuxjournal.com/
-----------------------------------------------------------------