lkml.org 
[lkml]   [2006]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 10/17] 2.6.17.1 perfmon2 patch for review: PMU context switch
    In-Reply-To: <20060630204032.GB22835@frankl.hpl.hp.com>

    On Fri, 30 Jun 2006 13:40:32 -0700, Stephane Eranian wrote:

    > As Andi is suggesting, I think this may depends on how the BIOS implements
    > the low-power state. I have tried the same command on my dual Opteron 250
    > 2.4GHz and I get:
    > $ pfmon --us-c -ecpu_clk_unhalted,interrupts_masked_cycles -k --system-wide -t 10
    > <session to end in 10 seconds>
    > CPU0 9,520,303 CPU_CLK_UNHALTED
    > CPU0 3,726,315 INTERRUPTS_MASKED_CYCLES
    > CPU1 21,268,151 CPU_CLK_UNHALTED
    > CPU1 14,515,389 INTERRUPTS_MASKED_CYCLES

    That is similar to what I get with idle=halt. Are you not using ACPI
    for idle?

    Try this:

    $ pfmon -ecpu_clk_unhalted,interrupts_masked_cycles_with_interrupt_pending,interrupts_masked_cycles,cycles_no_fpu_ops_retired -k --system-wide -t 10
    <session to end in 10 seconds>
    CPU0 95016828 CPU_CLK_UNHALTED
    CPU0 36472783 INTERRUPTS_MASKED_CYCLES_WITH_INTERRUPT_PENDING
    CPU0 67484408 INTERRUPTS_MASKED_CYCLES
    CPU0 445326968 CYCLES_NO_FPU_OPS_RETIRED

    That's what I get with idle=halt. Since the kernel doesn't do FP
    the last line should equal clock cycles. If it were running at full
    speed it would be 16 billion...

    --
    Chuck
    "You can't read a newspaper if you can't read." --George W. Bush
    -
    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: 2006-07-02 00:10    [W:0.023 / U:30.552 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site