Subject: Problems with File descriptors
To: None <netbsd-users@netbsd.org>
From: Juan Romero <juan@xtraeme.dyndns.org>
List: netbsd-users
Date: 08/21/2002 21:45:32
Hello everybuddy , Im installing geeklog in my NetBSD box :

#####################################################################

	xtraeme:/root# uname -a
	NetBSD xtraeme.dyndns.org 1.6F NetBSD 1.6F (xtrakernel) #6: Mon Aug 19
	21:19:33 GMT 2002
	root@xtraeme.dyndns.org:/usr/src/sys/arch/i386/compile/xtrakernel i386
	xtraeme:/root#

#####################################################################

Ive installed this packages for what mysql & php works nice :

	xtraeme:/root# pkg_info |grep php
	ap-php-4.1.2        Apache module for PHP4
	php-4.1.2           HTML-embedded scripting language
	php-mysql-4.1.2     PHP4 extension for MySQL databases
	xtraeme:/root# 

And now type the command for add the database geeklog.sql to my db ,
which i create previously :

	xtraeme:/home/zug# mysqladmin -u root -p create unixbsd
	Enter password: 
	xtraeme:/home/zug# mysql -u root -p unixbsd < unixbsd.sql
	Enter password: 
	ERROR 1 at line 981: Can't create/write to file
	'./unixbsd/gl_userindex.MYD' (Errcode: 23)
	Exit 1
	xtraeme:/home/zug#

In the man errno , the Errcode: 23 , say this :


	 23 ENFILE Too many open files in system.  Maximum number of
	 file descriptors allowable on the system has been reached and
	 a requests for an open cannot be satisfied until at least one has been closed.


Good , there's my values for sysctl over kern.maxfiles :

	xtraeme:/home/zug# sysctl -a|grep kern.maxfiles
	kern.maxfiles = 3000
	xtraeme:/home/zug#

How set the the correct values for maximum number of file descriptors
???

Thanks 

Juan RP { Hispabsd Member }