Re: [patch] new scheduler

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Tue, 11 May 1999 18:49:00 +0200 (CEST)


On Tue, 11 May 1999, Andrea Arcangeli wrote:

> >then why do you say it's a performance hit? It's something we need for
> >correctness, it doesnt affect the common case, where is your problem?
>
> It does affect the common case instead. At every schedule() we issue a
> reschedule_idle() of the `prev' task. The common case is when the `prev'
> task is != idle_taks... and prev->counter is 0.

the common case is that the previous process is not runnable. Thus the
following condition:

if ((prev->state == TASK_RUNNING) &&
(prev != idle_task(smp_processor_id())))
reschedule_idle(prev);

_will fail_. prev->state != TASK_RUNNING in the common case. We will _not_
run reschedule_idle().

-- mingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/