Re: file descriptor leak in 5.2-RC

From: Bjoern A. Zeeb <bzeeb-lists_at_lists.zabbadoz.net>
Date: Sun, 28 Dec 2003 23:56:51 +0000 (UTC)
On Sat, 27 Dec 2003, David Malone wrote:

> > during the machine is running on high load and after going to single
> > user mode. You can clearly see, that even though kern.openfiles still
> > shows a high number, pstat -f only finds very few files.
>
> Ahhh crud - the kern.file sysctl isn't completly calculated from
> the list of all open files - it iterates through all the processes
> to form the final list. Could you try rerunning pstat with the patch
> below - it walks the full open file list, rather than checking each
> process (this may leak open file info to people within jails on the
> machine, hopefully that is not a problem for you...)

[patch snipped]

can we somehow inlcude this w/o leaking information ? I have not
looked at it up to now but perhaps su only for none-jailed processes ?

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT
56 69 73 69 74				http://www.zabbadoz.net/
Received on Sun Dec 28 2003 - 14:57:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:35 UTC