mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gene Heskett <gene.heskett@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Con Kolivas <kernel@kolivas.org>, Nick Piggin <npiggin@suse.de>,
	Mike Galbraith <efault@gmx.de>,
	Arjan van de Ven <arjan@infradead.org>,
	Peter Williams <pwil3058@bigpond.net.au>,
	Thomas Gleixner <tglx@linutronix.de>,
	caglar@pardus.org.tr, Willy Tarreau <w@1wt.eu>,
	Dmitry Adamushko <dmitry.adamushko@gmail.com>
Subject: Re: [patch] CFS (Completely Fair Scheduler), v2
Date: Tue, 17 Apr 2007 12:12:55 -0400	[thread overview]
Message-ID: <200704171212.55528.gene.heskett@gmail.com> (raw)
In-Reply-To: <20070417061849.GA12385@elte.hu>

On Tuesday 17 April 2007, Ingo Molnar wrote:
>* Gene Heskett <gene.heskett@gmail.com> wrote:
>> This one (v2-rc2) is not a keeper I'm sorry to say, Ingo.  v2-rc0 was
>> much better.  Watching amanda run with htop, kmails composer is being
>> subjected to 5 to 10 second pauses, and htop says that gzip -best
>> isn't getting more that 15% of the cpu, and the /amandatapes drive is
>> being written to in a regular pattern that seems to be the cause of
>> the pauses according to gkrellm, which also seems to track the size of
>> the writes, and can show anything from 4.3k to 54 megs as being
>> written in one cycle of its screen update.
>
>ok - fortunately the delta between -v2-rc0 and -v2-final is pretty
>small. One difference is the child-runs-first fix. To restore the
>parent-runs-first logic, do this:
>
I'm running 21-rc7-CFS-v2-rc0.1 now.

>	echo 0 > /proc/sys/kernel/sched_child_runs_first

This is currently a 1.  Reset to 0 by the above.

>does this make any difference?

Hard to tell, not much running except fetchmail/procmail and this composer.

>
>If not then pretty much the only other change was the nice level tweak i
>did. Could you try to grab a few snapshots of scheduling state via
>something like:
>
>   while sleep 1; do cat /proc/sched_debug >> to-ingo.txt; done
The crf1.txt is with it=1, the cfr0.txt is with it zeroed.

>(and tell me the PID of the kmail composer, to make sure i'm checking
>the right task's behavior.)

And I let the crf0 version run longer as I was looking for the composer's pid, 
but htop (or I) can't see it.  Even a ps -e isn't seeing it!  But its 
running, I'm actively typing in it.  So you get 3 files, the third one called 
ps-e.txt, in private mail.  I thought it was called composer, I really did.

>
>also, as a separate experiment, could you perhaps run this script as
>root:
>
>   cd /proc; for N in [1-9]*; do renice -n 0 $N; done
>
>this will move all tasks in the system to nice level 0 and should make
>any nice level handling logic in the scheduler irrelevant. Do you have X
>reniced perhaps?
>
>Lots of system threads have negative or positive nice levels, so once
>you have executed this script, only a reboot will be a practical way to
>restore it to the previous settings.
>
>	Ingo



-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
I have many CHARTS and DIAGRAMS..

  parent reply	other threads:[~2007-04-17 16:13 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-16 22:07 Ingo Molnar
2007-04-16 22:12 ` S.Çağlar Onur
2007-04-17  8:59   ` Ingo Molnar
2007-04-17 14:45     ` S.Çağlar Onur
2007-04-17 15:48       ` Gabriel C
2007-04-17 16:01       ` Ingo Molnar
2007-04-17  4:06 ` Peter Williams
2007-04-17  6:49   ` Ingo Molnar
2007-04-17  4:53 ` Gene Heskett
2007-04-17  5:25   ` Willy Tarreau
2007-04-17  5:51     ` Gene Heskett
2007-04-17  7:18       ` Paolo Ornati
2007-04-17  5:51     ` Mike Galbraith
2007-04-17  6:27     ` Ingo Molnar
2007-04-18  0:06     ` Peter Williams
2007-04-17  6:18   ` Ingo Molnar
2007-04-17  7:01     ` Ingo Molnar
2007-04-17  7:31       ` Davide Libenzi
2007-04-17  7:39         ` Ingo Molnar
2007-04-17 17:18           ` Gene Heskett
2007-04-17 17:15       ` Gene Heskett
2007-04-17 17:22       ` Gene Heskett
2007-04-17  8:03     ` Davide Libenzi
2007-04-17  8:18       ` Nick Piggin
2007-04-17  8:26         ` Ingo Molnar
2007-04-17  8:41           ` Nick Piggin
2007-04-17  8:57             ` Ingo Molnar
2007-04-17  8:20       ` Ingo Molnar
2007-04-17 16:12     ` Gene Heskett [this message]
2007-04-17  6:46 ` Peter Williams
2007-04-17  7:51   ` William Lee Irwin III
2007-04-17  8:16     ` Ingo Molnar
2007-04-17  8:52       ` Ingo Molnar
2007-04-17 14:05       ` Peter Williams
2007-04-17  8:30     ` Peter Williams
2007-04-18 19:15       ` Peter Williams
2007-04-17  9:53   ` Ingo Molnar

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=200704171212.55528.gene.heskett@gmail.com \
    --to=gene.heskett@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=arjan@infradead.org \
    --cc=caglar@pardus.org.tr \
    --cc=dmitry.adamushko@gmail.com \
    --cc=efault@gmx.de \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=npiggin@suse.de \
    --cc=pwil3058@bigpond.net.au \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=w@1wt.eu \
    /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

Powered by JetHome