Date: Thu, 3 Aug 2000 15:54:23 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Laurence Barry <laurence@herculeez.com> Cc: FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG> Subject: Re: nfiles Message-ID: <20000803155423.A3001@dan.emsphone.com> In-Reply-To: <39898D03.6185C6C3@herculeez.com>; from "Laurence Barry" on Thu Aug 3 16:17:23 GMT 2000 References: <39898D03.6185C6C3@herculeez.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 03), Laurence Barry said: > I need to determine the total number of files open on a system. The > only way I can think to do this is a sysctl() call with > mib[0]=CTL_KERN and mib[1]=KERN_FILE, then trawl through the file > structure that is returned. There must be a simpler way. Figure out how pstat -T does it: $ pstat -T 294/3240 files 0M/1173M swap space -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000803155423.A3001>