[PATCH] O4int interactivity

From: Con Kolivas (kernel@kolivas.org)
Date: Thu Jul 10 2003 - 02:23:13 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is a diff against the O3int patch in 2.5.74-mm3 trying to decrease audio
skips and improve X smoothness.

It is easier to become interactive with this one to try and decrease
application startup and wakeup time, while hopefully still preventing cpu
hogs from starving the machine.

Changes:
Child penalty increased to 95 as in early 2.5 O(1) implementations. This fixes
the "parent spinning madly waiting for child to spawn and in the process it
is the parent that starves the child"; 80 wasn't enough.

The sleep buffer has returned much smaller currently set at 50ms which
prevents fully interactive tasks from dropping down a priority for short
bursts of cpu activity (eg X).

Idle tasks now get a small priority boost so they "rest" at a dynamic priority
just below interactive. They now wake up to an interactive state more
rapidly, and spawn more interactive children.

The variable boost when a process has been running less than MAX_SLEEP_AVG has
been tweaked and consequently is more aggressive.

Slight code rearrangement to have one less if.. branch.

Also available for download here:
http://kernel.kolivas.org/2.5

Con
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/DRRhF6dfvkL3i1gRAgxQAJ9GAe3YSbu+WHO+G6axYVxhPAOfSwCglJFd
waidp26mha2+CwZ+oPOzuFI=
=q1rz
-----END PGP SIGNATURE-----



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



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:34 EST