Date: Thu, 23 Jan 2003 18:16:04 -0800 (PST) From: Budiyanto Fritz <fritzb88@yahoo.com> To: freebsd-bugs@FreeBSD.ORG Cc: fritzb88@hotmail.com Subject: bugs /kernel: file: table is full Message-ID: <20030124021604.42949.qmail@web10108.mail.yahoo.com>
index | next in thread | raw e-mail
Hi all,
I wanted to submit a bug (apparently the web gnats is
currently closed).
If you open large number of socket, and exit the
program, without closing the file descriptor, will
cause file table full on the kernel.
I have these setup on the kernel:
MAXFILES (140000)
NMBCLUSTERS (140000)
My program:
for (i = 0; i < 100000; i++) {
fd[i] = socket(..);
}
for (i = 0; i < 100000; i++) {
close(fd[i]);
}
Version:
FreeBSD 4.7
TO-REPEAT:
I just simply terminate the program in the middle
before it has a chance to close the socket. This will
cause kernel file table full when you re-run the
program again. Possibly file descriptor is not clean
up properly when you deal with large number of file
descriptor.
fstat does not show any file descriptor leaking
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030124021604.42949.qmail>
