From owner-freebsd-current@FreeBSD.ORG Mon Jun 7 15:09:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9F0F16A4CE for ; Mon, 7 Jun 2004 15:09:57 +0000 (GMT) Received: from parts-unknown.org (dsl093-170-248.sfo4.dsl.speakeasy.net [66.93.170.248]) by mx1.FreeBSD.org (Postfix) with SMTP id 6C4F143D4C for ; Mon, 7 Jun 2004 15:09:57 +0000 (GMT) (envelope-from benfell@parts-unknown.org) Received: (qmail 7094 invoked by alias); 7 Jun 2004 15:09:56 -0000 Date: Mon, 7 Jun 2004 08:09:56 -0700 From: "David A. Benfell" To: current@freebsd.org Message-ID: <20040607150956.GA7084@parts-unknown.org> Mail-Followup-To: current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-stardate: [-29]2233.08 X-moon: The Moon is Waning Gibbous (74% of Full) User-Agent: Mutt/1.5.6i Subject: file descripter leak in current with Qmail? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 15:09:57 -0000 Hello all, I'm running current, with qmail and spamassassin. Having finally caught on to the new kernel build process (ahem), I'm now having problems with the qmail UIDs (mostly for qmaild but occasionally qmails) exceeding the openfiles limit. When I used sysctl to interrogate kern.openfiles, it said 1836. I have not altered the default maximum. When I shut down qmail, it promptly dropped to something like 180. When I restarted qmail, it went back up to something like 194 but system responsiveness dropped through the floor. In basically the time it's taken me to write this much, kern.openfiles has climbed to something like 261. So I guess I have a couple of idiot questions to ask here: Is the kern.openfiles limit something (relatively) new? I was running current before on this box but hadn't gotten through a build because I hadn't caught on to the new kernel build process since before 5.2 was released. Qmail was not a problem before. Is the correct response to this problem to raise the limit? If so, I presume this would be done in rc.conf; what would be the corresponding variable in rc.conf? In the time I've composed this far, system responsiveness seems to have returned to normal and kern.openfiles has dropped to something like 221. So I assume the responsiveness issue had to do with qmail trying to catch up. I'm in between quarters in school right now, so I have a little time to play with this if needed. -- David Benfell, LCP benfell@parts-unknown.org --- Resume available at http://www.parts-unknown.org/resume.html