Re: coretemp(4)/amdtemp(4) and sysctl nodes

2010-12-08 Thread Dag-Erling Smørgrav
Mark Johnston mark...@gmail.com writes: Aren't the dev.cpu.X and the coretemp sysctls matched up by the use of SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)) in coretemp's sysctl definition? What does the sysctl context have to do with identifying the parent oid? They're intended to go hand

getting a list of open files versus PID nos.?

2010-12-08 Thread Chuck Robey
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

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Matthew Fleming
On Wed, Dec 8, 2010 at 2:18 PM, Chuck Robey chu...@telenix.org wrote: 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

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Bruce Cran
On Wed, 8 Dec 2010 14:54:57 -0800 Matthew Fleming mdf...@gmail.com wrote: This is what lsof is for. I believe there's one in ports, but I have never tried it. Is there any advantage to using lsof instead of fstat(1) (fstat -p pid)? -- Bruce Cran

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Anonymous
Bruce Cran br...@cran.org.uk writes: On Wed, 8 Dec 2010 14:54:57 -0800 Matthew Fleming mdf...@gmail.com wrote: This is what lsof is for. I believe there's one in ports, but I have never tried it. Is there any advantage to using lsof instead of fstat(1) (fstat -p pid)? procstat(1) can

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Matthew Fleming
On Wed, Dec 8, 2010 at 3:01 PM, Bruce Cran br...@cran.org.uk wrote: On Wed, 8 Dec 2010 14:54:57 -0800 Matthew Fleming mdf...@gmail.com wrote: This is what lsof is for.  I believe there's one in ports, but I have never tried it. Is there any advantage to using lsof instead of fstat(1) (fstat

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Garrett Cooper
On Wed, Dec 8, 2010 at 3:47 PM, Matthew Fleming mdf...@gmail.com wrote: On Wed, Dec 8, 2010 at 3:01 PM, Bruce Cran br...@cran.org.uk wrote: On Wed, 8 Dec 2010 14:54:57 -0800 Matthew Fleming mdf...@gmail.com wrote: This is what lsof is for.  I believe there's one in ports, but I have never

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread richo
On 08/12/10 17:18 -0500, Chuck Robey wrote: 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

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Andriy Gapon
on 09/12/2010 01:47 Matthew Fleming said the following: On Wed, Dec 8, 2010 at 3:01 PM, Bruce Cran br...@cran.org.uk wrote: On Wed, 8 Dec 2010 14:54:57 -0800 Matthew Fleming mdf...@gmail.com wrote: This is what lsof is for. I believe there's one in ports, but I have never tried it. Is

Re: getting a list of open files versus PID nos.?

2010-12-08 Thread Garrett Cooper
On Wed, Dec 8, 2010 at 3:52 PM, Garrett Cooper gcoo...@freebsd.org wrote: On Wed, Dec 8, 2010 at 3:47 PM, Matthew Fleming mdf...@gmail.com wrote: On Wed, Dec 8, 2010 at 3:01 PM, Bruce Cran br...@cran.org.uk wrote: On Wed, 8 Dec 2010 14:54:57 -0800 Matthew Fleming mdf...@gmail.com wrote: This