Re: [PATCH 3/6] sched: high-res preemption tick
- From: Andi Kleen <andi@xxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 22:53:04 +0100
Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> writes:
Use HR-timers (when available) to deliver an accurate preemption tick.
The regular scheduler tick that runs at 1/HZ can be too coarse when nice
level are used. The fairness system will still keep the cpu utilisation 'fair'
by then delaying the task that got an excessive amount of CPU time but try to
minimize this by delivering preemption points spot-on.
This might be costly when hrtimers happen to use an more expensive
to reprogram time source. Even an APIC timer access is fairly slow.
And you'll potentially add the to lots of context switces.
Not sure that is a good idea for performance in general.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 3/6] sched: high-res preemption tick
- From: Peter Zijlstra
- Re: [PATCH 3/6] sched: high-res preemption tick
- References:
- [PATCH 0/6] various scheduler patches
- From: Peter Zijlstra
- [PATCH 3/6] sched: high-res preemption tick
- From: Peter Zijlstra
- [PATCH 0/6] various scheduler patches
- Prev by Date: Re: [PATCH 2/3] drivers/ide/pci/sc1200.c: remove pointless hwif lookup loop
- Next by Date: [PATCH/RFC] x86: unify Kconfig files
- Previous by thread: [PATCH 3/6] sched: high-res preemption tick
- Next by thread: Re: [PATCH 3/6] sched: high-res preemption tick
- Index(es):