too many open files

Florin Andrei fandrei at mail.rds.ro
Tue Apr 25 12:33:46 UTC 2000


	I'm running bind-8.2.2_P5 on Red Hat Linux 6.2 (it's the original bind
provided with the distribution); the machine is a more-or-less regular
PentiumIII setup.

	I have many IP alias interfaces on eth0 - about 1000 aliases or so. When i
start bind, the process starts listening on the first 500 interfaces with
no problem:

==================================================
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.166].53
(eth0:490)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.170].53
(eth0:491)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.174].53
(eth0:492)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.178].53
(eth0:493)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.182].53
(eth0:494)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.186].53
(eth0:495)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.190].53
(eth0:496)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.194].53
(eth0:497)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.198].53
(eth0:498)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.202].53
(eth0:499)
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.206].53
(eth0:500)
==================================================

	But after that, whoops!... Here is what i get in /var/log/messages:

==================================================
Apr 25 15:14:01 olc named[32110]: fcntl(dfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: fcntl(sfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.210].53
(eth0:501)
Apr 25 15:14:01 olc named[32110]: fcntl(dfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: fcntl(sfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.214].53
(eth0:502)
Apr 25 15:14:01 olc named[32110]: fcntl(dfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: fcntl(sfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.218].53
(eth0:503)
Apr 25 15:14:01 olc named[32110]: fcntl(dfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: fcntl(sfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.222].53
(eth0:504)
Apr 25 15:14:01 olc named[32110]: fcntl(dfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: fcntl(sfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:01 olc named[32110]: listening on [172.16.7.226].53
(eth0:505)
Apr 25 15:14:02 olc named[32110]: fcntl(dfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:02 olc named[32110]: fcntl(sfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:02 olc named[32110]: listening on [172.16.7.230].53
(eth0:506)
Apr 25 15:14:02 olc named[32110]: fcntl(dfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:02 olc named[32110]: fcntl(sfd, F_DUPFD, 20): Too many open
files
Apr 25 15:14:02 olc named[32110]: listening on [172.16.7.234].53
(eth0:507)
===========================================================

	This kind of messages stops here, and after that this is what i get:

===========================================================
Apr 25 15:14:02 olc named[32110]: socket(SOCK_DGRAM): Too many open files
Apr 25 15:14:02 olc named[32110]: deleting interface [172.16.7.238].53
Apr 25 15:14:02 olc named[32110]: socket(SOCK_DGRAM): Too many open files
Apr 25 15:14:02 olc named[32110]: deleting interface [172.16.7.242].53
Apr 25 15:14:02 olc named[32110]: socket(SOCK_DGRAM): Too many open files
Apr 25 15:14:02 olc named[32110]: deleting interface [172.16.7.246].53
Apr 25 15:14:02 olc named[32110]: socket(SOCK_DGRAM): Too many open files
Apr 25 15:14:02 olc named[32110]: deleting interface [172.16.7.250].53
Apr 25 15:14:02 olc named[32110]: socket(SOCK_DGRAM): Too many open files
Apr 25 15:14:02 olc named[32110]: deleting interface [172.16.7.254].53
Apr 25 15:14:02 olc named[32110]: socket(SOCK_DGRAM): Too many open files
Apr 25 15:14:02 olc named[32110]: deleting interface [172.16.8.2].53
Apr 25 15:14:02 olc named[32110]: socket(SOCK_DGRAM): Too many open files
Apr 25 15:14:02 olc named[32110]: deleting interface [172.16.8.6].53
==================================================

	These ones are going just like that until eth0:1000 is reached.
	After that, it is difficult to stop named other than 'kill -9'

	How can i enable bind to listen to MANY (virtual) interfaces?

-- 
Florin Andrei
mailto:florin at linuxstart.com	http://members.linuxstart.com/~florin/
tel: +40-93-261162



More information about the bind-users mailing list