PMC (performance counters) problems - kernel panic in 6-beta1
Suleiman Souhlal
ssouhlal at FreeBSD.org
Fri Jul 29 10:04:02 GMT 2005
Hi,
On Jul 29, 2005, at 5:11 AM, Joseph Koshy wrote:
>
>
>
>> Another question, what is the difference of -s versus -S and -p
>> versus
>> -P, respectively?
>>
>
> -S and -P turn on sampling. -S does 'whole system' sampling. -P is
> process specific (i.e., the counters only count when the target
> process(es)
> are running).
>
> So:
>
> # pmcstat -S instructions -O /tmp/foo.out
>
> will collect samples.
>
> # pmcstat -g -R /tmp/foo.out
>
> will convert the sample log to gprof(1) compatible 'gmon.out' files.
>
> Sampling on the AMD64 requires a patch to current [I'll commit it
> shortly].
Is sampling supposed to work on i386? Because it doesn't seem to
collect anything. Counting works fine, on the other hand.
# pmcstat -P instructions -O sample.out -d fsck_ffs /usr > /dev/null &
[1] + done pmcstat -P instructions -O sample.out -d fsck_ffs /
usr > /dev/null
# pmcstat -R sample.out -g
# ls k7-retired-instructions
#
--
Suleiman Souhlal | ssouhlal at vt.edu
The FreeBSD Project | ssouhlal at FreeBSD.org
More information about the freebsd-current
mailing list