file descriptor leak in 5.2-RC

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Sun Dec 28 15:57:18 PST 2003


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/


More information about the freebsd-current mailing list