Re: 2.6.x kernel sluggish behavior

From: Con Kolivas
Date: Wed May 26 2004 - 10:27:48 EST


On Wed, 26 May 2004 11:29 pm, Lenar Lõhmus wrote:
> Hi.

Hello

> Overall I really like the performance and smoothness of 2.6.x kernels,

Good to hear.

> but there has been always one problematic situation.
>
> It's debian here with X/KDE running. The problem manifests itself
> when one launches acroread-plugin in Mozilla or Mozilla-based browser.

A known case.

> I think it's definetely a scheduler problem (although caused by
> application bug).

This was one of my test cases for applications designed in a certain way that
makes them prone to priority inversion. I tried extremely hard to find a
workaround within the kernel and failed to do so. It only manifests with the
acroread plugin in a gecko browser on uniprocessor, and seems to be some
interaction within some gdk library if I recall correctly. Look through the
kernel archives for my description of an earlier version of blender that
exhibited this same problem. I suspect it's actually the binary only acroread
and not the gdk library at fault. My solution was to simply make all .pdf
files launch acroread separately.

Generic solutions for tackling priority inversion prone application designs
from within the kernel are expensive, and the best solution is to fix the
application. No doubt a differently designed scheduler would be less prone to
this particular interaction, but priority inversion is a "feature" of any
dynamic priority design scheduler to some degree and it is the particular
application that may or may not hit the resonant frequency (as I like to
think of it) of each scheduler.

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