Quoth Mike Tancsa:

> Jan 29 21:37:05 ns3 /kernel: file: table is full
> 
> I have maxusers set to 128
> ns3# sysctl -a | grep -i files
> kern.maxfiles: 4136
> kern.maxfilesperproc: 4136

Try running `pstat -T' and see what number of file descriptors is
generally in use.

FYI, I've had to bump it up to 16384 on a news server; 8192 wasn't enough
during peak times.

I have this as /usr/local/etc/rc.d/0sysctl.sh (the 0 so it gets run first 
during boot, before other daemons get started):-

#!/bin/sh
#

sysctl -w kern.maxfiles=16384
sysctl -w net.inet.tcp.always_keepalive=1
sysctl -w net.inet.tcp.keepidle=1800

You probably won't need to increase kern.maxfilesperproc; each sendmail
process typically has < 10 fd's open (log, network connection, two queue
files in /var/spool/mqueue, pipes to delivery agent).


        -- Niels.


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to