Re: Enabling RDPMC in user space by default

From: Andi Kleen (ak_at_suse.de)
Date: 11/29/05

  • Next message: Parag Warudkar: "Re: PowerBook5,8 - TrackPad update"
    Date:	Tue, 29 Nov 2005 17:17:00 +0100
    To: Mikael Pettersson <mikpe@csd.uu.se>
    
    

    > PMC0 stops being a cycle counter as soon as any real driver
    > (not the NMI watchdog) takes over the hardware, such as oprofile,
    > perfmon2, or perfctr. So user-space cannot rely on the semantics

    They're wrong then. oprofile shouldn't disable the NMI
    watchdog. If it does it's broken and needs to be fixed.

    > Disabling user-space RDTSC (setting CR4.TSD) seems evil and pointless.
    > At least some users of it (the perfctr library and I hope eventually
    > also perfmon2) do use it in an SMP-safe manner (through special
    > user/kernel protocols).

    How do you handle P state changes? I don't think it can be safely
    used in user space.

    -Andi
    -
    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/


  • Next message: Parag Warudkar: "Re: PowerBook5,8 - TrackPad update"

    Relevant Pages

    • Re: [discuss] Re: 2.6.19-rc5: known regressions (v3)
      ... If it's really true that oprofile is simply busted then that's a serious ... The user space application assumed it own hardware that it did not. ... I bet if nothing else we could move the NMI watchdog from 0 to 3 ... hack which makes oprofile work again is needed. ...
      (Linux-Kernel)
    • Re: [PATCH] NMI trigger switch support for debugging
      ... > and NMI watchdog. ... This feature hands NMI interrupt over to oprofile ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [discuss] Re: 2.6.19-rc5: known regressions (v3)
      ... Andrew Morton wrote: ... >>> to then put the NMI back to doing the watchdog thing after oprofile has ... But from Andi's comments it seems that the NMI watchdog was failing to ... BASH BUFFER OVERFLOW - if bash is being run by a ...
      (Linux-Kernel)
    • Re: Ktimer / -rt9 (+custom) monotonic_clock going backwards.
      ... after the machine rebooted into Ingo's -rt13 it hit a NMI watchdog ... NMI watchdog detected lockup on CPU#0 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch 0/8] [RFC PATCH] nmi watchdog: x86 32/64 cleanup
      ... A major cleanup of the nmi watchdog on the i386 and x86_64 archs. ... The fix Andi wanted led to a conflict with how oprofile worked. ... a reservation layer around the performance counters and a bunch of changes ...
      (Linux-Kernel)