lkml.org 
[lkml]   [2009]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [PATCH] perf_counter: Fix a race on perf_counter_ctx


>-----Original Message-----
>From: Metzger, Markus T
>Sent: Tuesday, August 18, 2009 4:15 PM
>To: Ingo Molnar
>Cc: Peter Zijlstra; tglx@linutronix.de; hpa@zytor.com; markus.t.metzger@gmail.com; linux-
>kernel@vger.kernel.org; Paul Mackerras
>Subject: RE: [PATCH] perf_counter: Fix a race on perf_counter_ctx
>
>>-----Original Message-----
>>From: Ingo Molnar [mailto:mingo@elte.hu]
>>Sent: Tuesday, August 18, 2009 4:00 PM
>>To: Metzger, Markus T
>>Cc: Peter Zijlstra; tglx@linutronix.de; hpa@zytor.com; markus.t.metzger@gmail.com; linux-
>>kernel@vger.kernel.org; Paul Mackerras
>>Subject: Re: [PATCH] perf_counter: Fix a race on perf_counter_ctx
>>
>>
>>* Metzger, Markus T <markus.t.metzger@intel.com> wrote:
>>
>>> Well, that would push out the limit a bit, but it would still be
>>> quite fragile.
>>>
>>> Currently, I'm not sure that this (i.e. that the interrupt
>>> handling takes too long) is the underlying problem of the hangs
>>> that I'm seeing.
>>
>>I havent seen a plausible theory yet about why an actual lockup
>>would happen on your box.
>
>So you do not think that taking too long in the ISR could cause this?
>
>And is it working on your box?
>
>
>>Does the timer IRQ perhaps slow down to such a degree that it can
>>never make progress and gets re-triggered again and again? We saw
>>such things with the function tracer.
>
>How would I test this?
>
>
>>Did the sampling of kernel-mode tasks ever work with the old BTS
>>code?
>
>The old BTS code used circular buffers.

Ingo,

I'm not making any progress with the kernel hang.

User-mode tracing is working OK (e.g. -e branches:u) and circular buffers are
working fine, as well. I can do "perf top -c 1 -e branches:u" and simultaneous
"perf record -c 1 -e branches:u", but as soon as I try to trace the kernel,
it hangs (and /var/log/messages is typically garbled).

Please drop the BTS patch.

thanks and regards,
markus.

---------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen Germany
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 Ust.-IdNr.
VAT Registration No.: DE129385895
Citibank Frankfurt (BLZ 502 109 00) 600119052

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



\
 
 \ /
  Last update: 2009-08-28 11:59    [W:0.365 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site