Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 May 2015 15:34:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 198149] [hwpmc] pmcstat -P -t (top mode, process sampling) stops after a while
Message-ID:  <bug-198149-8-ZrZ75Vjf5Y@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-198149-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-198149-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198149

John Baldwin <jhb@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jhb@FreeBSD.org

--- Comment #8 from John Baldwin <jhb@FreeBSD.org> ---
I can reproduce this trivially on real hardware.  I use a dummy test app
(threadspin.c).  On my x220 laptop, this usually breaks in a few seconds.  Same
on a server (fox2 in the netperf lab).  If I run it in a reduced cpuset to
limit the number of CPUs then pmcstat runs longer before it stops working. 
Pinning the threads to specific CPUs does not fix the issue either.  I looked
via kgdb at the software state of hwpmc when pmcstat stops reporting samples
and it seems to think that the PMC is enabled and should be working.  However,
it seems that the PMC is no longer generating interrupts.

I've ported all of the PMC debug stuff over to KTR and added a hack so that KTR
auto-disables once a polling sample request fails.  When run with all CPUs
there is simply too much noise in the ktrdump and I can't find the last sample
in my dump (it seems that the dump only contains events logged after interrupts
stopped working).  I tried restricting to a smaller set of CPUs but that failed
to break.  My plan is to try to find the smallest set of CPUs that do break
while KTR is active and then see if I can tease anything out from the ktrdump.

The changes to pmc to use KTR can be found at
https://github.com/freebsd/freebsd/compare/master...bsdjhb:pr_198149

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198149-8-ZrZ75Vjf5Y>