lkml.org 
[lkml]   [2009]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [perfmon2] comments on Performance Counters for Linux (PCL)
On Fri, 29 May 2009, Ingo Molnar wrote:
> * Paul Mackerras <paulus@samba.org> wrote:
> > Ingo Molnar writes:
> > > * Corey Ashford <cjashfor@linux.vnet.ibm.com> wrote:
> > > >> So you're suggesting to artificually strech periods by say
> > > >> composing a single overflow from smaller ones, ignoring the
> > > >> intermediate overflow events?
> > > >>
> > > >> That sounds doable, again, patch welcome.
> > > >
> > > > I definitely agree with Stephane's point on this one. I had
> > > > assumed that long irq_periods (longer than the width of the
> > > > counter) would be synthesized as you suggest. If this is not the
> > > > case, PCL should be changed so that it does, -or- at a minimum,
> > > > the user should get an error back stating that the period is too
> > > > long for the hardware counter.
> > >
> > > this looks somewhat academic - at least on x86, even the fastest
> > > events (say cycles) with a 32 bit overflow means one event per
> > > second on 4GB. That's not a significant event count in practice.
> > > What's the minimum width we are talking about on Power?
> >
> > 32 bits, but since the top bit is effectively a level-sensitive
> > interrupt request, the maximum period in hardware is 2^31 counts.
> >
> > However, I already support 64-bit interrupt periods (well, 63-bit
> > actually) on powerpc by only calling perf_counter_overflow() when
> > counter->hw.period_left becomes <= 0, and arranging to set the
> > hardware counter to 0 if counter->hw.period_left is >= 0x80000000.
> > It's a tiny amount of code to handle it, really.
>
> No argument about that - just wanted to know whether there's any
> real practical effect beyond the nitpicking factor ;-)

I never really dived into this stuff, but ISTR there are some 16-bit counters
on CELL? Is that correct?

With kind regards,

Geert Uytterhoeven
Software Architect
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-05-29 10:25    [W:0.045 / U:2.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site