On 2006/08/27 17:09, Mackan wrote:
> I did "sysctl -w kern.maxfiles=10000" to  increase the value from
> 1772 to 10000, and put the same value in /etc/sysctl.conf

Keep an eye on kern.nfiles, if it's higher than expected take a
look at fstat and check there isn't a problem. I had a box where a
program was holding too many files open and ran this as part of
a script from cron while I was determining what was causing the
problem:

nfiles=`/sbin/sysctl -n kern.nfiles`
[ $nfiles -ge 1500 ] && echo kern.nfiles=$nfiles && fstat && ps wwalxkossiz

> I think 1772 files seems to be too low as default. Is it?

Depends what the machine is used for; considering the defaults
in login.conf(5) it doesn't seem that bad. If you have raised the
login.conf values you should probably have raised maxfiles too.

> And is 10000 a too high value?

Depends, again.

Reply via email to