Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt

From: Venkatesh Pallipadi (venkatesh.pallipadi_at_intel.com)
Date: 07/15/05

  • Next message: aq: "[PATCH] memparse bugfix"
    Date:	Fri, 15 Jul 2005 10:23:49 -0700
    To: Andi Kleen <ak@suse.de>
    
    

    On Fri, Jul 15, 2005 at 07:02:24PM +0200, Andi Kleen wrote:
    >
    > At least on multi processor systems LAPIC has to work anyways (otherwise
    > you cannot schedule other CPUs), so it is fine to use there.
    >
    > AFAIK there are no x86 CPUs right now that do both C3
    > and SMP. If they ever do then they will need to keep the
    > LAPIC ticking in C3.
    >
    > This has nothing even to do with advanced power saving,
    > but is pretty much a hard requirement for Linux (and I would
    > be surprise if it wasn't one for other OS too). Without it
    > scheduling and local timers on APs will not work at all.
    >
    > In theory it could be replaced with HPET if HPET had enough banks (one
    > for each CPU - most implementations today usually only have 2 or 4), but
    > that would severly limit scalability for lazy tick schemes because
    > they would depend on a common resource in the southbridge. Also the
    > max number of banks needed on a big system would be huge
    > (128? 256?) because you couldn't have more CPUs than that.
    >
    > With PIC only it's absolutely impossible.
    >

    I wouldn't say it is totally impossible. There are ways in which Linux can work
    without a reliable Local APIC timer. One option being - make one CPU that gets
    the external timer interrupt multicast an IPI to all the other CPUs that
    wants to get periodic timer interrupt.

    Thanks,
    Venki

    -
    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: aq: "[PATCH] memparse bugfix"

    Relevant Pages

    • Re: [ckrm-tech] [RFC] [PATCH 0/3] Add group fairness to CFS
      ... then a task from VCPU? ... VCPU0 to schedule. ... physical CPUs can't select the same VCPU at the same time. ... load balancing is done taking into account *current* VCPUs assignments to PCPUs. ...
      (Linux-Kernel)
    • Re: [RFC patch 05/15] get_cycles() : MIPS HAVE_GET_CYCLES_32
      ... HAVE_GET_CYCLES_32 only on CPUs where it is safe to use it. ... * will result in the timer interrupt getting lost. ... execute the timer interrupt handler. ... interrupt occuring in an irq off section. ...
      (Linux-Kernel)
    • Re: Need Help Parallelizing Computation
      ... Linux 2.4.x on an AMD Opteron system. ... shows both CPUs at 99% when I use my parallel version of the code). ... is because it seemed easier to schedule one thread to compute what the ... could just use OpenMP to parallelize the outer loop. ...
      (comp.programming.threads)
    • Re: Too many timer interrupts in NO_HZ
      ... There are way too many timer interrupts even though the CPUs have ... out of idle, and then return to tickless idle. ... What can happen in timer interrupt context that need not wakeup any ...
      (Linux-Kernel)
    • Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
      ... >> wants to get periodic timer interrupt. ... > that external timer interrupt in the first place is more straightforward. ... > If you want to exclude CPUs from the list of receivers, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)