From owner-freebsd-bugs Thu Jan 23 18:16: 6 2003 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 868FB37B401 for ; Thu, 23 Jan 2003 18:16:05 -0800 (PST) Received: from web10108.mail.yahoo.com (web10108.mail.yahoo.com [216.136.130.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 142DD43F3F for ; Thu, 23 Jan 2003 18:16:05 -0800 (PST) (envelope-from fritzb88@yahoo.com) Message-ID: <20030124021604.42949.qmail@web10108.mail.yahoo.com> Received: from [207.17.136.129] by web10108.mail.yahoo.com via HTTP; Thu, 23 Jan 2003 18:16:04 PST Date: Thu, 23 Jan 2003 18:16:04 -0800 (PST) From: Budiyanto Fritz Subject: bugs /kernel: file: table is full To: freebsd-bugs@FreeBSD.ORG Cc: fritzb88@hotmail.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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