Date: Tue, 12 Dec 2006 09:36:49 +0530 From: "Joseph Koshy" <joseph.koshy@gmail.com> To: "Adrian Chadd" <adrian@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: pmcstat and squid Message-ID: <84dead720612112006r5573a04fge2664ffe3a93f796@mail.gmail.com> In-Reply-To: <d763ac660612111955p6dc85a8ufca9ff3b78e3f376@mail.gmail.com> References: <d763ac660612111955p6dc85a8ufca9ff3b78e3f376@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> I'm trying to use pmcstat to profile userspace time used in
> Squid. I just can't seem to get pmcstat to report anything
> useful.
>
> The last thing I tried was something like:
>
> # pmcstat -O file -P instructions -t <pid of squid>
> # pmcstat -R file -g
> # ls k7-retired-instructions
> kernel.gmon
>
> There doesn't seem to be a good example for
> process-based counting stuff with PMC. Could anyone
> give me a hand?
>
> Thanks!
I can think of one of two scenarios:
1) the squid process was in the kernel when the
samples got taken. This could happen if the
process was say in select() handling all the time.
2) There a bug in my process handling code that is
being triggered (hwpmc undercounts process-mode
samples), and samples are being missed.
Regards,
Koshy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead720612112006r5573a04fge2664ffe3a93f796>
