RE: [patch] prefer TSC over PM Timer

From: dean gaudet (dean-list-linux-kernel_at_arctic.org)
Date: 11/17/04

  • Next message: David S. Miller: "loops in get_user_pages() for VM_IO"
    Date:	Tue, 16 Nov 2004 17:50:42 -0800 (PST)
    To: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
    
    

    On Tue, 16 Nov 2004, Pallipadi, Venkatesh wrote:

    > I think trying to remove repeated inl()'s in read_pmtmr is a better
    > fix for this issue. As John mentioned in other thread, we should do
    > repeated reads only when something looks broken. Not always.

    that would be a nice improvement... then timer_pm will only be 3x as slow
    as timer_tsc instead of 10x slower :) it's still a lot of unnecessary
    overhead for many systems, and unfortunately this is a real performance
    problem (albeit exaggerated by code which is overzealous in its use of
    gettimeofday()).

    on a tangent... has the local apic timer ever been considered? it's fixed
    rate, and my measurements show it in the same performance ballpark as TSC.

    i know that all p3, p-m, p4, k8 and efficeon have local APIC, but i'm not
    sure if k7 (other than k7 smp parts of course) have local apics... so i'm
    not sure how widespread it is compared to pm-timer.

    wouldn't local apic timer be a lot better for NUMA too?

    hey wait, what exactly is the problem with TSC on NUMA? don't you just
    need some per-cpu data (epoch and calibration) to make it work?

    -dean
    -
    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: David S. Miller: "loops in get_user_pages() for VM_IO"

    Relevant Pages

    • Re: [PATCH] fix #endif misplacement
      ... > outside the ifdef/endif. ... No, this is exactly what is intended: don't use the TSC on NUMA, use ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.4.22 APM problems with IBM Thinkpads
      ... greatly increased the likelihood of a local APIC timer interrupt ... while in BIOS screen blanking code. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] fix #endif misplacement
      ... I think I understood it now: the #ifndef protects only the check for TSC ... and not under NUMA (so ... measuring tasks timeslices. ...
      (Linux-Kernel)
    • Re: SMP syncronization on AMD processors (broken?)
      ... > uses spinlocks without any problematic restart. ... NUMA, and in many ways you do absolutely _not_ want fairness, because it's ... Fairness is often very expensive indeed. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: topology api confusion
      ... I suspect that it's supposed to be unconditionally included at ... Since it doesnt look like this will be resolved by 2.6.13 and NUMA is ... overriding all the ppc64 specific functions when NUMA is on. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)