From owner-freebsd-questions@FreeBSD.ORG Sat Dec 27 23:03:38 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7727016A4CE for ; Sat, 27 Dec 2003 23:03:38 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A23843D39 for ; Sat, 27 Dec 2003 23:03:37 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id hBS73bB3020751 for ; Sat, 27 Dec 2003 23:03:37 -0800 (PST) Received: from [192.168.2.8] (12-228-114-247.client.attbi.com [12.228.114.247]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 3.0) with ESMTP id hBS73alx022439 for ; Sat, 27 Dec 2003 23:03:37 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v609) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD-questions From: paul beard Date: Sat, 27 Dec 2003 23:03:33 -0800 X-Mailer: Apple Mail (2.609) Subject: kern.maxfiles questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2003 07:03:38 -0000 I'm still having some issues with file descriptors being used up. Symptomatically, my http listener will become sluggish and some cgi processes I use will time out. The logs have a raft of these messages: Dec 27 22:46:13 red /kernel: kern.maxfiles limit exceeded by uid 80, please see tuning(7). Dec 27 22:47:12 red /kernel: kern.maxfiles limit exceeded by uid 1004, please see tuning(7). I can't even query sysctl, but after stopping httpd and postfix (the processes being run by those UIDs) I can finally get this information. [/usr/home/paul]:: sysctl kern.openfiles kern.maxfiles kern.openfiles: 257 kern.maxfiles: 4040 and on further examination I am finding some swap shortages (this machine has 512 Mb of real memory but only the same amount of swap). what tunables can be twiddled, assuming swap doesn't solve this? FreeBSD red.paulbeard.org 4.9-RELEASE FreeBSD 4.9-RELEASE #3: Sun Dec 21 14:01:26 PST 2003 root@red.paulbeard.org:/usr/obj/usr/src/sys/RED i386 -- Paul Beard paulbeard [at] mac.com