Re: [PATCH] small scheduling optimization

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Tue, 13 Apr 1999 11:30:16 +0200 (CEST)


On Sun, 11 Apr 1999, Rik van Riel wrote:

> This second patch is just a small optimization to the code calling
> the scheduling code. With a program like rc5des running (nice +19)
> in the background and NOTHING in the foreground Linux still goes
> through the scheduler 50 times a second!

hm, it should only go 5 times a second into the scheduler if this is the
only process running. Are you sure that it's 50 times a second? With 5
times a second and 5 usecs per schedule(), it's 0.000025 seconds per 1.0
second overhead, acceptable i think. (also, there is a small bug in your
patch, you should hold the runqueue spinlock if you rely on nr_running)

-- 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/