Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default

From: John Reiser (jreiser_at_BitWagon.com)
Date: 11/29/05

  • Next message: Byron Stanoszek: "Re: Linux 2.6.15-rc3 - gcc-4.0.2 compile error"
    Date:	Tue, 29 Nov 2005 10:29:47 -0800
    To: Andi Kleen <ak@suse.de>
    
    

    Andi Kleen wrote:
    > I think it's also a useful convention - RDTSC is becomming more and more
    > useless and you cannot expect user applications who just want to
    > measure some cycles to rely on ever changing instable or non existing
    > performance counter APIs.

    Users are even more unhappy with ever-changing ABIs -- such as the
    kernel taking away RDTSC.

    RDTSC+perfctr [Pettersson] still is the fastest way for user-mode code
    to count something that is highly correlated with both "billable"
    CPU time and "code quality" for a fixed task. With a little care
    RDTSC is close enough to monotonic that I find it very useful.
    Please don't take away user-mode RDTSC.

    -- 
    -
    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: Byron Stanoszek: "Re: Linux 2.6.15-rc3 - gcc-4.0.2 compile error"

    Relevant Pages

    • Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
      ... >> useless and you cannot expect user applications who just want to ... > RDTSC is close enough to monotonic that I find it very useful. ... The kernel didn't take this away, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Hyper-Threading Vulnerability
      ... If gettimeofday is really as cheap as rdtsc on x86_64, ... multimedia app can tolerate this, so discussing rdtsc is really a red ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: gettimeofday resolution seriously degraded in test9
      ... but the only hardware tick I have is in milliseconds. ... modifies the gettimeofdayand the POSIX clock routines to ... use rdtsc when available, a lot of problems will go away. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.12-mm1 boot failure on NUMA box.
      ... > I have no intent, nor method, of doing so. ... rdtsc is a direct instruction, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Hyper-Threading Vulnerability
      ... > Well yes but you would still have to recompile those apps. ... You cannot use rdtsc for anything but rough instruction timing. ... the timer rates vary as processors change clock rate nowdays. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)