getting a list of open files versus PID nos.?
Chuck Robey
chuckr at telenix.org
Wed Dec 8 22:45:31 UTC 2010
I think, *maybe* that I have located what's been giving me all of those machine
lockups. I was all ready to replace the mobo & cpu when I noticed a panic error
of being out of open files. The message suggested just adding the ability for
more open files, but if it's what I think it is, that would only mean it would
take longer to panic, but it would still be tossing panics at me.
What I want to see is a list of all Pids and how many open files there are
associated with each Pid? And maybe a "ps ax" list, so I can associate an
application with a pid. I would set things up so it would do this every 15
minutes, and it might just point me at my real problem here.
Any idea what would be the best way to get a list of all openfiles versus each
open pid? I would be happy to write up a python script to give me application
versus count of open files list, if I could start with that files versus pids thing.
More information about the freebsd-hackers
mailing list