From: Christoph Hellwig <hch@infradead.org>
To: Kurt Garloff <garloff@suse.de>,
Linux kernel list <linux-kernel@vger.kernel.org>
Subject: Re: dynamic sched timeslices
Date: Mon, 15 Mar 2004 22:59:39 +0000 [thread overview]
Message-ID: <20040315225939.A23686@infradead.org> (raw)
In-Reply-To: <20040315224201.GX4452@tpkurt.garloff.de>; from garloff@suse.de on Mon, Mar 15, 2004 at 11:42:01PM +0100
On Mon, Mar 15, 2004 at 11:42:01PM +0100, Kurt Garloff wrote:
> Hi,
>
> attached patch allows userspace to tune the scheduling timeslices.
> It can be used for a couple of things:
> * Tune a workload for batch processing:
> You'd probably wnat to use long timeslices in order to not reschedule
> as often to make good use of your CPU caches
> * Tune a workload for interactive use:
> Under load, you may want to reduce the scedulilng latencies by using
> shorter timeslices (and there are situations where the interactiviy
> tweak -- even if they were perfect -- can't save you).
> * Tune the ration betweeen maximum and minimum timeslices to make
> nice much nicer e.g.
>
> The patch exports /proc/sys/kernel/max_timeslice and min_timeslice,
> unites are us. It also exports HZ (readonly).
> The patch implementes the desktop boot parameter which introduces
> shorter timeslices.
>
> Patch is from andrea and is in our 2.4 tree; 2.6 port was done by me and
> straightforward.
Remove the silly desktop boot parameter and the patch looks basically
okay to me.
I remember we had a more complete patch to allow tuning the scheduler
through sysctls in -mm once, though. Questions is why that one wasn't
merged and if the same reasons apply to a 'light' version.
next prev parent reply other threads:[~2004-03-15 23:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-15 22:42 Kurt Garloff
2004-03-15 22:59 ` Christoph Hellwig [this message]
2004-03-15 23:09 ` Kurt Garloff
2004-03-15 23:40 ` Andrew Morton
2004-03-16 11:36 ` Kurt Garloff
2004-03-16 13:13 ` Con Kolivas
2004-03-16 14:29 ` Kurt Garloff
2004-03-16 20:45 ` Con Kolivas
2004-03-18 0:20 ` Kurt Garloff
2004-03-18 0:32 ` Andrew Morton
2004-03-18 3:38 ` Con Kolivas
2004-03-16 15:03 ` Timothy Miller
2004-03-16 15:08 ` Kurt Garloff
2004-03-23 9:23 ` Pavel Machek
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=20040315225939.A23686@infradead.org \
--to=hch@infradead.org \
--cc=garloff@suse.de \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®