From owner-freebsd-questions Fri Aug 25 11: 6:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from thelab.hub.org (nat199.100.mpoweredpc.net [142.177.199.100]) by hub.freebsd.org (Postfix) with ESMTP id 09DA637B422 for ; Fri, 25 Aug 2000 11:06:38 -0700 (PDT) Received: from localhost (scrappy@localhost) by thelab.hub.org (8.9.3/8.9.3) with ESMTP id PAA49276; Fri, 25 Aug 2000 15:06:37 -0300 (ADT) (envelope-from scrappy@hub.org) X-Authentication-Warning: thelab.hub.org: scrappy owned process doing -bs Date: Fri, 25 Aug 2000 15:06:37 -0300 (ADT) From: The Hermit Hacker To: Alfred Perlstein Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Monitoring Max Files Open ... In-Reply-To: <20000824220330.I1209@fw.wintelcom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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'? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message