From: Mike Galbraith <efault@gmx.de>
To: Tom Sightler <ttsig@tuxyturvy.com>
Cc: Ingo Molnar <mingo@elte.hu>, Arjan van de Ven <arjanv@redhat.com>,
Andrew Morton <akpm@digeo.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Strange load issues with 2.5.69/70 in both -mm and -bk trees.
Date: Wed, 04 Jun 2003 10:14:02 +0200 [thread overview]
Message-ID: <5.2.0.9.2.20030604100227.00cd2020@pop.gmx.net> (raw)
In-Reply-To: <1054582030.4679.15.camel@iso-8590-lx.zeusinc.com>
[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]
At 03:27 PM 6/2/2003 -0400, Tom Sightler wrote:
>On Mon, 2003-06-02 at 13:28, Ingo Molnar wrote:
> > to prove this point, could you try and renice wineserver to -10 (as root)
> > - does that fix the latency issues still?
> >
> > (if this doesnt then it could be the foreground process starving yet
> > another process - we have to find out which one.)
>
>Yes, I thought the same thing, and I did just that, but no, it doesn't
>fix the latency issue. This system has very little running, I made sure
>that there were no sound servers such as esd or arts running, nothing.
>Basically, a plain KDE (with artsd disabled), mozilla, and Crossover
>wine plugin. Even though I couldn't see how it would affect anything I
>tried bumping up the priorities of other processes such as mozilla
>itself, X, etc. Nothing fixed the problem except for lowering the
>priority of the wine process.
Feel like trying something else for grins? If it's thud.c type starvation
you're seeing, the attached club should beat it into submission.
-Mike
[-- Attachment #2: xx.diff --]
[-- Type: application/octet-stream, Size: 1162 bytes --]
--- linux-2.5.70.virgin/kernel/sched.c.org Tue Jun 3 06:44:48 2003
+++ linux-2.5.70.virgin/kernel/sched.c Tue Jun 3 17:28:10 2003
@@ -66,7 +66,7 @@
*/
#define MIN_TIMESLICE ( 10 * HZ / 1000)
#define MAX_TIMESLICE (200 * HZ / 1000)
-#define CHILD_PENALTY 50
+#define CHILD_PENALTY 80
#define PARENT_PENALTY 100
#define EXIT_WEIGHT 3
#define PRIO_BONUS_RATIO 25
@@ -355,6 +355,7 @@
* spends sleeping, the higher the average gets - and the
* higher the priority boost gets as well.
*/
+ sleep_time = min(sleep_time, (long) p->time_slice);
sleep_avg = p->sleep_avg + sleep_time;
/*
@@ -545,8 +546,10 @@
* and children as well, to keep max-interactive tasks
* from forking tasks that are max-interactive.
*/
- current->sleep_avg = current->sleep_avg * PARENT_PENALTY / 100;
- p->sleep_avg = p->sleep_avg * CHILD_PENALTY / 100;
+ if (likely(current->parent->pid > 1)) {
+ current->sleep_avg = current->sleep_avg * PARENT_PENALTY / 100;
+ p->sleep_avg = p->sleep_avg * CHILD_PENALTY / 100;
+ } else current->sleep_avg = p->sleep_avg = MAX_SLEEP_AVG;
p->prio = effective_prio(p);
set_task_cpu(p, smp_processor_id());
next prev parent reply other threads:[~2003-06-04 7:56 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-01 4:23 Tom Sightler
2003-06-01 4:45 ` Andrew Morton
2003-06-01 17:36 ` Tom Sightler
2003-06-01 20:07 ` Andrew Morton
2003-06-02 1:59 ` Tom Sightler
2003-06-02 7:36 ` Ingo Molnar
2003-06-02 13:36 ` Tom Sightler
2003-06-02 15:14 ` Ingo Molnar
2003-06-02 15:24 ` Arjan van de Ven
2003-06-02 15:25 ` Ingo Molnar
2003-06-02 15:32 ` Tom Sightler
2003-06-02 17:28 ` Ingo Molnar
2003-06-02 19:27 ` Tom Sightler
2003-06-02 22:49 ` Rob Landley
2003-06-04 8:14 ` Mike Galbraith [this message]
2003-06-04 15:08 ` Tom Sightler
2003-06-04 15:12 ` Ingo Molnar
2003-06-04 16:00 ` Tom Sightler
2003-06-04 16:05 ` Mike Galbraith
2003-06-02 20:53 ` Andreas Boman
2003-06-02 23:10 ` Valdis.Kletnieks
[not found] <5.2.0.9.2.20030601084615.00ce6e30@pop.gmx.net>
2003-06-01 17:43 ` Tom Sightler
2003-06-02 7:39 ` Ingo Molnar
2003-06-02 14:30 ` Tom Sightler
2003-06-02 15:24 ` Tom Sightler
2003-06-02 15:47 ` Tom Sightler
2003-06-02 15:53 ` William Lee Irwin III
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=5.2.0.9.2.20030604100227.00cd2020@pop.gmx.net \
--to=efault@gmx.de \
--cc=akpm@digeo.com \
--cc=arjanv@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=ttsig@tuxyturvy.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
all inboxes | Powered by JetHome®