Date: Tue, 23 Sep 2003 17:11:16 +0200 From: Sheldon Hearn <sheldonh@starjuice.net> To: freebsd-questions@FreeBSD.org Subject: kern.openfiles doesn't agree with fstat Message-ID: <20030923151116.GM36958@starjuice.net>
next in thread | raw e-mail | index | archive | help
Hi folks, I've got an ipfilter-enabled RELENG_4 firewall that acts as a DHCP and SMB server for our office LAN. It's running into its upper limit of files, as reported by kern.openfiles. However, when I try to use fstat to report on processes that hold open file handles, the numbers disagree: kern.maxfiles: 9992 kern.maxfilesperproc: 4496 kern.openfiles: 8265 # fstat | awk '$5 ~ /^\// {print $2}' | sort | uniq -c | sort -nr 99 httpd 63 mysqld 50 smbd 48 getty 45 screen 37 sshd 35 bash 30 nfsd 27 sh 24 nfsiod ... The total number of filehandles reported in this way is about 600. Why would these two tools disagree in this way? Ciao, Sheldon.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030923151116.GM36958>