Chip Bennett writes:
> Pfiles should be rewritten to not stop processes.  I had to go look at
> the code to make sure you were right on this.  If lsof can gather open
> file info without stopping processes, why can't pfiles do that.

lsof does it because it reads the volatile kernel structures on the
running system.  Often that works because things aren't changing right
at the moment when you look at them.  But it's also possible that you
get back garbage.

pfiles stops the process because it uses the debugging interfaces,
just as (say) mdb or gdb.

> Or, if there is some additional reliability/consistency to be gained by
> stopping the process, perhaps pfiles could be modified to have an option
> that causes it stop the process, but by default doesn't, just to be
> safe.

The long-term answer, I think, is that we need stable kernel
interfaces that will provide the information that lsof needs to work.

-- 
James Carlson, Solaris Networking              <james.d.carl...@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to