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.

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.

But I'm now off subject for the DTrace list.

IMHO,
Chip

> -----Original Message-----
> From: dtrace-discuss-boun...@opensolaris.org [mailto:dtrace-discuss-
> boun...@opensolaris.org] On Behalf Of Lars Bruun-Hansen
> Sent: Friday, December 12, 2008 5:05 AM
> To: dtrace-discuss@opensolaris.org
> Subject: Re: [dtrace-discuss] lsof vs Dtrace
> 
> A few comments to what has already been posted:
> 
> pfiles
> It is true that you can find the same information as what lsof is
> producing by using a script that uses the Solaris 'pfiles' command.
One
> such example is "PCP" (http://www.unix.ms/pcp/). I have to warn
against
> this. [i]pfiles will stop the process while it is being investigated.
> Many processes will not like this[/i]. I've screwed up quite a few
> daemons by executing a 'pfiles' against them while they were running.
> Bottom line:  pfiles is not a solution to the problem on a production
> system. Period !
> 
> 
> lsof.
> Yes, lsof exists for Solaris and you can get pre-compiled binary for
> example from www.sunfreeware.com. However
> (1) It does not work inside a zone
> (2) it is not stable because it is written against parts of Solaris
> that are undocumented/evolving/unsupported.
> Personally I can live with (2), but not with (1) because these days
> just about everything on Solaris is running inside a zone (at least
> when you are talking servers in corporate landscape).
> 
> So unless any of the Dtrace probes will eventually come up with
> something that can generate this information then I do not see any way
> forward for Solaris on this one.
> 
> Solaris needs a solution for this.
> --
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss@opensolaris.org


_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to