Re: 2.4.17 absurd number of context switches

Davide Libenzi (davidel@xmailserver.org)
Fri, 28 Dec 2001 09:07:48 -0800 (PST)


On Fri, 28 Dec 2001, Alan Cox wrote:

> > Check out those figures for context switches! 30,000 switches per second
> > with only three runnable processes and practically no block I/O seems
> > quite high to me. You can also see that the system is spending half its
> ..
> > Is this a scheduler worst-case, something to be expected, or something I
> > can work around?
>
> The scheduler is _good_ at the three process case. Run some straces it looks
> more like postgres is doing wacky yield based locks.

The scheduler that Linus merged in 2.5.2-pre3 will solve the problem.

- Davide

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