From owner-freebsd-questions Fri Aug 25 11:30:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 11AD337B423 for ; Fri, 25 Aug 2000 11:30:37 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e7PIUZn25169; Fri, 25 Aug 2000 11:30:35 -0700 (PDT) Date: Fri, 25 Aug 2000 11:30:35 -0700 From: Alfred Perlstein To: The Hermit Hacker Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Monitoring Max Files Open ... Message-ID: <20000825113035.A1209@fw.wintelcom.net> References: <20000824220330.I1209@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from scrappy@hub.org on Fri, Aug 25, 2000 at 03:06:37PM -0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * The Hermit Hacker [000825 11:06] wrote: > On Thu, 24 Aug 2000, Alfred Perlstein wrote: > > > * The Hermit Hacker [000824 21:01] wrote: > > > > > > Just wondering if anyone knows of a command in FreeBSD that will allow me > > > to monitor 'peak' open files? I hit the 4136 limit the other day with a > > > database server and up'd it to 8192, but would like to give myself a bit > > > of a warning if I come close to that, and figured a 'peak' number like > > > 'netstat -m' gives for mbufs would help ... > > > > > > thanks ... > > > > download and compile this: > > > > http://people.freebsd.org/~alfred/nfiles.tgz > > > > kldload it and do a 'sysctl -a | grep files' > > gives: > > thelab# sysctl -a | grep files > kern.maxfiles: 2088 > kern.maxfilesperproc: 2088 > kern.usedfiles: 348 > p1003_1b.mapped_files: 1 > > any way of adding in one more that is 'kern.peakusedfiles'? Not as easily as I whipped up that one, I don't think there's hooks available for deterimining that. sorry, -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message