Michael Ernest
2011-Dec-23 17:19 UTC
[dtrace-discuss] dtrace-discuss Digest, Vol 80, Issue 6
Have you considered the mdb dcmd ::pfiles? mfe at inker:~/Code/dtrace/examples$ *pfexec mdb -k* Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc pcplusmp scsi_vhci zfs ip hook neti sockfs arp usba uhci fctl s1394 stmf stmf_sbd md lofs random idm sd crypto fcp cpc fcip smbsrv nfs ufs logindmux ptm nsmb sppp nsctl sdbc rdc sv ii ipc ]> *::ps ! grep clock-applet*R 1744 1 1705 1705 101 0x4a004000 ffffff01e5183018 clock-applet> *ffffff01e5183018::pfiles*FD TYPE VNODE INFO 0 CHR ffffff01d1180440 /devices/pseudo/mm at 0:null 1 CHR ffffff01d1180440 /devices/pseudo/mm at 0:null 2 CHR ffffff01d1180440 /devices/pseudo/mm at 0:null 3 DOOR ffffff01d6751400 /var/run/name_service_door [door to ''nscd'' (procffffff01d3483000)] ... 22 PORT ffffff01e5571b80 [event port (port=ffffff01d12fb240)] 23 SOCK ffffff01e55ae800 socket: AF_INET 192.168.15.108 40101 remote: AF_INET 128.241.90.58 80 I don''t know whether this poses no risk for a heavily involved process. It is however simpler than using DTrace, which is not well-suited for walking a collection of data. Regards, Michael On Fri, Dec 23, 2011 at 4:00 AM, <dtrace-discuss-request at opensolaris.org>wrote:> Send dtrace-discuss mailing list submissions to > dtrace-discuss at opensolaris.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.opensolaris.org/mailman/listinfo/dtrace-discuss > or, via email, send a message with subject or body ''help'' to > dtrace-discuss-request at opensolaris.org > > You can reach the person managing the list at > dtrace-discuss-owner at opensolaris.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of dtrace-discuss digest..." > > > Today''s Topics: > > 1. dtrace script (Anne Adema) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 23 Dec 2011 11:03:17 +0100 > From: Anne Adema <aron.adema at gmail.com> > To: dtrace-discuss at opensolaris.org > Subject: [dtrace-discuss] dtrace script > Message-ID: <4EF451E5.5010103 at gmail.com> > Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" > > Hi > > Does anyone has a dtrace script which determine in a life system the > amount of open files per process id in a Non Global Zone. > > It is not possible with pfiles because of underlying problem > > Here is the direct quote from the manpages: > > WARNINGS > The following proc tools stop their target processes while > inspecting them and reporting the results: pfiles, pldd, and > pstack. > > A process can do nothing while it is stopped. Stopping a > heavily used process in a production environment, even for a > short amount of time, can cause severe bottlenecks and even > hangs of these processes, causing them to be unavailable to > users. Some databases could also terminate abnormally. Thus, > for example, a database server under heavy load could hang > when one of the database processes is traced using the above > mentioned proc tools. Because of this, stopping a UNIX pro- > cess in a production environment should be avoided. > > SunOS 5.10 > > GZ> lsof -z <zonename> -p pid > > Does not give the right output. > > ls /proc/<pid>/fd | wc -l gives not the open files per process id. > > I''m not familiar with dtrace programming. So maybe anyone create a > dtrace script which > > show in a life system (without the change of interruption of process) me in > life contiunue the amount of open files per process id in a non global > zone. > > Thanks Anne Adema > > you can mail me aron.adema at gmail.com > > -- > With regards, > > > Ir. A. Adema BSc > e-mail: aron.adema at gmail.com or > anne at famadema.com > GSM: +31 6 55687405 > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20111223/f0a9da64/attachment-0001.html > > > > ------------------------------ > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org > > End of dtrace-discuss Digest, Vol 80, Issue 6 > ********************************************* >-- Michael Ernest Inkling Research, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20111223/cd8dc335/attachment-0001.html>
Apparently Analagous Threads
- 6386915 pfiles reports IP_NEXTHOP set when it isn''t
- Hanging ssh sessions with openssh-5.1p1 and Solaris 8 & 10
- Dovecot should raise the limit of file descriptors at startup...
- No such file or directory - but it is there.
- [Bug 1566] New: superfluous descriptor duplications in sftp-server