From: Con Kolivas <kernel@kolivas.org>
To: linux kernel mailing list <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH] O11.2int for interactivity
Date: Thu, 31 Jul 2003 07:28:56 +1000 [thread overview]
Message-ID: <200307310728.56863.kernel@kolivas.org> (raw)
This patch backs out a little section which isn't quite right and
just might in the wrong circumstances cause unfairness. Goes on
top of O11.1
Con
--- linux-2.6.0-test2-mm1/kernel/sched.c 2003-07-30 20:26:08.000000000 +1000
+++ linux-2.6.0-test2mm1O11/kernel/sched.c 2003-07-30 20:26:45.000000000 +1000
@@ -1292,16 +1292,7 @@ void scheduler_tick(int user_ticks, int
if (!TASK_INTERACTIVE(p) || EXPIRED_STARVING(rq)) {
if (!rq->expired_timestamp)
rq->expired_timestamp = jiffies;
- /*
- * Long term interactive tasks need to completely
- * run out of sleep_avg to be expired, and when they
- * do they are put at the start of the expired array
- */
- if (unlikely(p->interactive_credit && p->sleep_avg)){
- enqueue_task(p, rq->active);
- goto out_unlock;
- }
- enqueue_task(p, rq->expired);
+ enqueue_task(p, rq->expired);
} else
enqueue_task(p, rq->active);
} else if (p->mm && !((task_timeslice(p) - p->time_slice) %
next reply other threads:[~2003-07-30 21:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-30 21:28 Con Kolivas [this message]
2003-07-30 21:21 ` [PATCH] O11.2int for interactivity Andrew Morton
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=200307310728.56863.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@osdl.org \
--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