From owner-freebsd-questions Thu Dec 18 21:01:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA22271 for questions-outgoing; Thu, 18 Dec 1997 21:01:27 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA22256 for ; Thu, 18 Dec 1997 21:01:22 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id FAA23259; Fri, 19 Dec 1997 05:01:05 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199712190501.FAA23259@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Andrew N. Edmond" cc: questions@freebsd.org Subject: Re: open file descriptors? In-reply-to: Your message of "Thu, 18 Dec 1997 20:02:24 MST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Dec 1997 05:01:05 +0000 From: Brian Somers Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > How can you tell how many file descriptors are open throughout the whole > FreeBSD operating system? I have 4096 in the sysctl kern.maxfiles > setting, but I need to write a trigger script to let me know when that > reaches 75% of available open files. > > Is there a kernel setting I can look at for the # of file descriptors in > use? pstat -T > andy > > ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: > \-/ :::::::: Andrew N. Edmond - finger for PGP key :::::::::: \-/ > /-\ :::::: ............ :::::: /-\ > \-/ ::: edmond@lycaeum.org :::::: an1@anon.nymserver.com ::: \-/ > /-\ : Director of the Lycaeum :: the Nymserver Administrator : /-\ > \-/ ::: www.lycaeum.org :::::: www.nymserver.com ::: \-/ > ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: > -- Brian , , Don't _EVER_ lose your sense of humour....