Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2005 22:19:27 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Lisa Casey <lisa@jellico.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: kernel: file: table is full
Message-ID:  <4282BD2F.2050304@mac.com>
In-Reply-To: <000501c55687$c09fd0c0$14d71840@lisakc>
References:  <000501c55687$c09fd0c0$14d71840@lisakc>

next in thread | previous in thread | raw e-mail | index | archive | help
Lisa Casey wrote:
> I am getting this error message ( /kernel: file: table is full) on my
> FreeBSD 4.6 box just before the system seems to "freeze" or "lock up".

BTW, 4.6 is fairly old.  Please try to update to 4.10 or later.

> I googled it then went to the handbook and read that I need to tune
> kern.maxfiles in my kernel. My question is:  Is this something I can adjust
> using /etc/sysctl.conf? If so (and I think I can) what is the syntax I would
> use (I have not had a need to mess with sysctl.conf before).

echo "kern.maxfiles=9876" >> /etc/sysctl.conf

> I am using the generic kernel. How can I know what the value of maxfiles is
> currently in my generic kernel and how high might I want to raise it?

If you want to see what the current value is, do "sysctl kern.maxfiles".  How 
large you can increase it is a complex question, it depends on what other 
options are configured and how much kernel memory is being reserved, but you 
can make this much bigger if you need to.

Anyway, it might be a good idea to run fstat and see what is using all of your 
file descriptors; maybe tuning that would be better than tuning the system...

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4282BD2F.2050304>