lkml.org 
[lkml]   [2010]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] perf_events: support for uncore a.k.a. nest units
    On 3/30/2010 2:28 PM, stephane eranian wrote:
    > On Tue, Mar 30, 2010 at 6:49 PM, Corey Ashford
    > <cjashfor@linux.vnet.ibm.com> wrote:
    >> 4) How do we choose a CPU to do the housekeeping work for a particular nest
    >> PMU. Peter thought that user space should still specify the it via
    >> open_perf_event() cpu parameter, but there's also an argument to be made for
    >> the kernel choosing the best CPU to handle the job, or at least make it
    >> optional for the user to choose the CPU.
    >>
    > One of the housekeeping task is to handle uncore PMU interrupts, for instance.
    > That is not a trivial task given that events are managed independently and
    > that you could be monitoring per-thread or system-wide. It may be that
    > some uncore PMU can only interrupt one core. Intel Nehalem can interrupt
    > many at once.

    That's a good point, and I think it's unreasonable to expect that the user knows
    exactly how the interrupts are connected from the uncore/nest PMU to which CPU(s).

    Perhaps one way around this would be to return an error if the chosen CPU wasn't
    fully capable of performing the housekeeping functions for the requested PMU.
    But this certainly isn't ideal, because relying on this mechanism would require
    that the user (or user tool) figure out which CPU is fully capable by
    trial-and-error.

    - Corey



    \
     
     \ /
      Last update: 2010-03-31 02:37    [W:5.960 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site