Re: Hyper-Threading Vulnerability

From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 05/14/05

  • Next message: James Bottomley: "Re: [PATCH scsi-misc-2.6 04/04] scsi: remove unnecessary scsi_wait_req_end_io()"
    To: Lee Revell <rlrevell@joe-job.com>
    Date:	Sat, 14 May 2005 16:23:10 +0100
    
    

    On Sad, 2005-05-14 at 00:38, Lee Revell wrote:
    > Well yes but you would still have to recompile those apps. And take the
    > big performance hit from using gettimeofday vs rdtsc. Disabling HT by
    > default looks pretty good by comparison.

    You cannot use rdtsc for anything but rough instruction timing. The
    timers for different processors run at different speeds on some SMP
    systems, the timer rates vary as processors change clock rate nowdays.
    Rdtsc may also jump dramatically on a suspend/resume.

    If the app uses rdtsc then generally speaking its terminally broken. The
    only exception is some profiling tools.

    -
    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: James Bottomley: "Re: [PATCH scsi-misc-2.6 04/04] scsi: remove unnecessary scsi_wait_req_end_io()"

    Relevant Pages

    • 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)
    • Re: Hyper-Threading Vulnerability
      ... Am I missing ... > If those apps depend on rdtsc being a) present, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Hyper-Threading Vulnerability
      ... Am I missing ... If those apps depend on rdtsc being a) present, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Hyper-Threading Vulnerability
      ... >> Well yes but you would still have to recompile those apps. ... The apps that bother to use rdtsc vs. gettimeofday need a cheap high res ... 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)