Re: Strange load issues with 2.5.69/70 in both -mm and -bk trees.

William Lee Irwin III (wli@holomorphy.com)
Mon, 2 Jun 2003 08:53:45 -0700


On Mon, Jun 02, 2003 at 11:47:56AM -0400, Tom Sightler wrote:
> In trying to figure out why this might be worse under 2.5 I took some
> simple vmstat numbers under 2.4 and 2.5, this biggest difference is the
> number of context switches. Under 2.4, with the page loaded, but
> otherwise idle, the system averages around 700/sec, and when I mouse
> around the page I get 2000-3000/sec.
> However, under 2.5, as I reported previously, I get 2000/sec all the
> time, and 3000-4000 as I mouse around the page.
> Would this be expected behavior? Does 2.5 do something that would cause
> more context switches that 2.4? I have no idea if this would have any
> impact at all, but it was the only difference I could observe in my
> fairly simple testing of the two kernels.

A quick patch to register profile hit counts for codepaths calling
schedule() and/or yield() appears to be in order for such occasions.

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