Adam and everybody here :
How are you!
have a D script :
sched:::sleep
/curlwpsinfo->pr_stype == SOBJ_SHUTTLE/
{
bedtime[curlwpsinfo->pr_addr] = timestamp ;
}
sched:::wakeup
/execname == "nscd" && bedtime[args[0]->pr_addr]/
{
@[stringof(curpsinfo->pr_fname), stringof(args[1]->pr_fname)] =
quantize(timestamp - bedtime[args[0]->pr_addr]);
bedtime[args[0]->pr_addr] = 0;
}
sched:::wakeup
/bedtime[args[0]->pr_addr]/
{
bedtime[args[0]->pr_addr] = 0;
}
dtrace -s nscd.d
result report:
# dtrace -s nscd.d
dtrace: script ''nscd.d'' matched 25 probes
^C
nscd pt_chmod
value ------------- Distribution ------------- count
32768 | 0
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
131072 | 0
nscd mail.local
value ------------- Distribution ------------- count
16384 | 0
32768 |@@@@@@@@@@@@@ 1
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
131072 | 0
nscd in.ftpd
value ------------- Distribution ------------- count
32768 | 0
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 4
131072 | 0
nscd in.telnetd
value ------------- Distribution ------------- count
32768 | 0
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
131072 |@@@@@@@@@@@@@ 1
262144 | 0
nscd inetd
value ------------- Distribution ------------- count
16384 | 0
32768 |@@@@@@@@@@@@@ 2
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@ 4
131072 | 0
nscd cron
value ------------- Distribution ------------- count
16384 | 0
32768 |@@@@@@@@@@@@@@@@@@@@@@@@@ 7
65536 |@@@@@@@@@@@@@@@ 4
131072 | 0
nscd sendmail
value ------------- Distribution ------------- count
16384 | 0
32768 |@@@@@@@ 2
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 10
131072 | 0
nscd java
value ------------- Distribution ------------- count
32768 | 0
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 111
131072 |@@@ 9
262144 | 0
#
curpsinfo->pr_fname ''s result is nscd .
args[1]->pr_fname ''s result is pt_chmod , cron , java and so
on.
what''s mean for value colume ?
what''s mean for count colume ?
above result report can deduce what conclusion?
Thanks very much for any help !
---------------------------------
??????-3.5G???20M??
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070314/87a238cc/attachment.html>
Sun.betty writes:> @[stringof(curpsinfo->pr_fname), stringof(args[1]->pr_fname)] = quantize(timestamp - bedtime[args[0]->pr_addr]);[...]> what''s mean for value colume ?It''s the value that you''ve quantized. In this case, you''re quantizing on the timestamp delta, so 16384 means "all values from 16384 to 32767 nanoseconds," 32768 means "all values from 32768 to 65535 nanoseconds," and so on. See the "Aggregations" section of the dtrace guide.> what''s mean for count colume ?It''s the number of events that were in that range. The histogram ("@@@") shows this information graphically.> above result report can deduce what conclusion?That a lot of applications make door calls into nscd? Not sure what you''re looking for here. -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677