Re: [PATCH] perfcounters: IRQ and NMI support on AMD CPUs

From: Ingo Molnar
Date: Thu Mar 05 2009 - 14:41:48 EST



* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> On Fri, 2009-03-06 at 00:26 +0530, Jaswinder Singh Rajput wrote:
>
> > But kerneltop is still not working and I am not getting any NMI Interrupts.
>
> Does the below work for you?
>
> The BKGD suggests its 48 for all existing machines (it
> certainly is for mine).

Yeah, this did the trick on AMD/Barcelona!

NMI: 11310 14932 11729 12705 11207
13454 13378 10714 14526 11986 10973
10765 12669 12093 13430 9661 Non-maskable
interrupts

KernelTop works just fine:

------------------------------------------------------------------------------
KernelTop: 1019 irqs/sec kernel:27.9% [NMI, 1000000 CPU
cycles], (all, 16 CPUs)
------------------------------------------------------------------------------

events RIP kernel function
______ ______ ________________ _______________

5260.00 - ffffffff8037e420 : clear_page_c
1065.00 - ffffffff805811a0 : page_fault
699.00 - ffffffff8037e690 : copy_user_generic_string!
669.00 - ffffffff80294ed8 : get_page_from_freelist
575.00 - ffffffff804cd033 : acpi_pm_read
551.00 - ffffffff8025fd1b : generic_exec_single
416.00 - ffffffff80580c9c : _spin_lock
413.00 - ffffffff802a32ad : unmap_vmas
392.00 - ffffffff80580fc2 : _spin_lock_irqsave

Thanks!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/