Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2001 23:59:31 -0500
From:      Scott Lambert <lambert@lambertfam.org>
To:        freebsd-security@FreeBSD.ORG
Subject:   Re: /kernel: file: table is full
Message-ID:  <20010713235931.B5133@laptop.lambertfam.org>
In-Reply-To: <20010713152141.B42739@techometer.net>; from emechler@techometer.net on Fri, Jul 13, 2001 at 03:21:41PM -0700
References:  <200107132215.PAA25291@mail24.bigmailbox.com> <20010713152141.B42739@techometer.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This question is probably not appropriate for -security but...

On Fri, Jul 13, 2001 at 03:21:41PM -0700, Erick Mechler wrote:
> Bump up the 'maxusers' config option in your kernel configuration file.  
> If you're using the standard 32 that ships with GENERIC, I would suggest
> going to at least 64 (depending on how much RAM, CPU, etc. you have).  If
> you have a decent machine, try 128.
 
You could instead change the sysctls.  They are adjustable at run time.
root@laptop ~
23:55:26 Fri Jul 13 # sysctl kern.maxfiles
kern.maxfiles: 16424

root@laptop ~
23:55:41 Fri Jul 13 # sysctl -w kern.maxfiles=18000
kern.maxfiles: 16424 -> 18000

root@laptop ~
23:55:59 Fri Jul 13 # sysctl kern.maxfiles
kern.maxfiles: 18000

To make your settings come back on reboot create /etc/sysctl.conf with:

kern.maxfiles=16424
kern.maxfilesperproc=12000

Choose your own numbers for the right hand side.  No re-compile required.
No reboot required; I think.  You will have to restart samba so 
kern.maxfilesperproc can take effect.

> At Fri, Jul 13, 2001 at 03:15:27PM -0700, petko popadiyski said this:
> :: While running smbclient i have received :
> :: Can't load /usr/local/etc/smb.conf - run testparm to debug it
> :: load_client_codepage: cannot open file
> :: /usr/local/etc/codepages/codepage.850. Error was Too many open files in system load_unicode_map: cannot open file
> :: /usr/local/etc/codepages/unicode_map.850. Error was Too many open files in system
> :: ERROR: Could not determine network interfaces, you must use a interfaces config line
> :: Then I tried to execute other programs :
> :: ~% pine
> :: /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libncurses.so.5"
> :: ~% ee pismo
> :: /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libncurses.so.5"
> :: 
> :: so i look at the log and saw :
> :: Jul 14 00:41:40 admin /kernel: file: table is full
> :: Jul 14 00:41:44 admin last message repeated 127 times
> :: Jul 14 00:41:44 admin /kernel: pid 13660 (make), uid 0: exited on signal 11 (cor
> :: e dumped)
> :: Jul 14 00:41:45 admin /kernel: file: table is full
> :: Jul 14 00:42:09 admin last message repeated 322 times
> :: Jul 14 00:42:09 admin /kernel: pid 6202 (navigator-linux-), uid 1000: exited on
> :: signal 10 (core dumped)
> :: many of my process were killed . How ca I prevent such crashes? and what causeed the crash.?
> :: I am running freebsd-4.3 stable and
> :: Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> :: /dev/ad0s2a    148823    33736   103182    25%    /
> :: /dev/ad0s3e    988622   854925    54608    94%    /disk2
> :: /dev/ad0s2f   3615212  3046492   279504    92%    /usr
> :: /dev/ad0s2e     99183     7302    83947     8%    /var
> :: /dev/ad0s1   14813488 14443024   370464    97%    /win-c
> :: procfs              4        4        0   100%    /proc
> :: 
> :: 
> :: 
> :: 
> :: ------------------------------------------------------------
> :: YourName@CannabisMail.com for FREE ! http://www.CannabisMail.com
> :: 
> :: To Unsubscribe: send mail to majordomo@FreeBSD.org
> :: with "unsubscribe freebsd-security" in the body of the message
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message

-- 
Scott Lambert                          Unix SysAdmin -- Looking for work.
lambert@lambertfam.org     http://www.lambertfam.org/~lambert/resume.html
Two and a half years Sr. SysAdmin experience with FreeBSD in a small, 
15,000 dial-up accounts, 19,000+ e-mail accounts, ISP.
The last 5 months have included exposure to Solaris 7, True64 5, and Linux.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




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