RE: [patch] scheduler bugfix, SMP, 2.4.0-test7
From: Ingo Molnar (mingo@elte.hu)
Date: Tue Aug 29 2000 - 05:04:37 EST
- Next message: Andrea Arcangeli: "Re: [patch] waitqueue optimization, 2.4.0-test7"
- Previous message: Vojtech Pavlik: "[patch] VIA IDE driver v2.1"
- In reply to: Dimitris Michailidis: "RE: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Next in thread: David S. Miller: "Re: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Reply: David S. Miller: "Re: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Reply: Andrea Arcangeli: "RE: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Reply: Dimitris Michailidis: "RE: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
On Mon, 28 Aug 2000, Dimitris Michailidis wrote:
> Speaking of footprints, that reschedule_idle should really be turned into a
> FASTCALL. It's large and inlining creates too many copies in frequently
> executed code. __wake_up() even has two of them, check how large it is some
> time.
i agree fully. The attached patch against test8-pre1 changes
schedule_idle() from inline to FASTCALL - things look much nicer with this
one applied.
the patch's second half adds the check for need_resched after schedule().
IMO this is needed not only for (admittedly secondary reason of) latency,
but for correctness as well: schedule_idle() might have preempted the
current process (even if both processes are non-idle), so checking for
need_resched is needed for robustness.
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
- Next message: Andrea Arcangeli: "Re: [patch] waitqueue optimization, 2.4.0-test7"
- Previous message: Vojtech Pavlik: "[patch] VIA IDE driver v2.1"
- In reply to: Dimitris Michailidis: "RE: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Next in thread: David S. Miller: "Re: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Reply: David S. Miller: "Re: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Reply: Andrea Arcangeli: "RE: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Reply: Dimitris Michailidis: "RE: [patch] scheduler bugfix, SMP, 2.4.0-test7"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
This archive was generated by hypermail 2b29
: Thu Aug 31 2000 - 21:00:23 EST