public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: Christian Klose <christian.klose@freenet.de>,
	William Lee Irwin III <wli@holomorphy.com>,
	Marc-Christian Petersen <m.c.p@wolk-project.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: I/O problems in 2.4.19/2.4.20/2.4.21-rc3
Date: Sun, 25 May 2003 11:27:20 +1000	[thread overview]
Message-ID: <200305251127.40516.kernel@kolivas.org> (raw)
In-Reply-To: <200305250242.58269.christian.klose@freenet.de>

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

On Sun, 25 May 2003 10:43, Christian Klose wrote:
> On Saturday 24 May 2003 16:28, William Lee Irwin III wrote:
>
> Hi wli,
>
> > > --- old/kernel/sched.c	2003-05-24 14:45:57.000000000 +0200
> > > +++ 2.5-mcp/kernel/sched.c	2003-05-24 16:18:42.000000000 +0200
> > > @@ -65,7 +65,7 @@
> > >   * they expire.
> > >   */
> > >  #define MIN_TIMESLICE		( 10 * HZ / 1000)
> > > -#define MAX_TIMESLICE		(200 * HZ / 1000)
> > > +#define MAX_TIMESLICE		( 10 * HZ / 1000)
> > >  #define CHILD_PENALTY		50
> > >  #define PARENT_PENALTY		100
> > >  #define EXIT_WEIGHT		3
> >
> > This looks highly suspicious as it essentially removes dynamic timeslice
> > sizing. If this fixes something, then dynamic timeslice heuristics are
> > going wrong somewhere that should be properly described and handled, not
> > this kind of shenanigan.
>
> I somewhat agree with you but this "properly described" are all the bug
> reports on lkml containing "bad interactivity in 2.5, cpu starving in 2.5"
> and such...
>
> This isn't a shenanigan, at least not for the interactivity for a desktop.
> This is a workaround for users who are complaining about bad interactivity
> in 2.5!
>
> ciao, Marc

Even though you're not Marc I do agree with you. The problem is well described 
as either poor interactivity (the window wiggle test) or starvation in the 
presence of certain scheduler hogs (for whatever reason) since the 
interactivity patch from mingo. Dropping the max timeslice is a bandaid but 
destroys priority based timeslice scheduling. Dropping the min timeslice will 
bring this back, but at some point the timeslice will be so low that low 
priority cpu intensive tasks will spend most of their time cache trashing.

A reasonable compromise for the desktop would be
min 5 
max 25
but some granularity will be lost in the different sizes of timeslices at 
different priorities.

is there any point having longer timeslices than this?

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

iD8DBQE+0Bv6F6dfvkL3i1gRAhpfAKCG3fjkK02lYbAs1p3978rSL/PYAQCcCeK7
gHqR6bgrITE3CSjKCqntw+g=
=rq1o
-----END PGP SIGNATURE-----


  parent reply	other threads:[~2003-05-25  1:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-23 13:00 I/O problems in 2.4.19/2.4.20/2.4.21-rc3 Christian Klose
2003-05-23 13:46 ` Christian Klose
2003-05-23 14:35   ` Marc-Christian Petersen
2003-05-24 14:19   ` Marc-Christian Petersen
2003-05-24 14:28     ` William Lee Irwin III
2003-05-25  0:43       ` Christian Klose
2003-05-25  0:46         ` Marc-Christian Petersen
2003-05-25  1:27         ` Con Kolivas [this message]
2003-05-25  4:28           ` William Lee Irwin III
2003-05-25  4:37             ` Con Kolivas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200305251127.40516.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=christian.klose@freenet.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.c.p@wolk-project.de \
    --cc=wli@holomorphy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox