From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Mike Galbraith <mgalbraith@suse.de>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [patch] sched: fix migration thread runtime bogosity
Date: Fri, 03 Aug 2012 22:39:15 +0200 [thread overview]
Message-ID: <1344026355.27828.10.camel@twins> (raw)
In-Reply-To: <1344001354.17084.28.camel@marge.simpson.net>
On Fri, 2012-08-03 at 15:42 +0200, Mike Galbraith wrote:
> Greetings,
>
> I have two bug reports of absurd migration thread CPU usage, one of them
> with a link to a bisection..
>
> https://bugs.gentoo.org/show_bug.cgi?id=394487
>
> ..fingering d670ec13 - posix-cpu-timers: Cure SMP wobbles
>
> I reproduced with my -rt kernel and 3.4, but didn't manage to reproduce
> with the 3.0 NOPREEMPT kernel it was reported against.
Ah, I've seen similar reports, never managed to reproduce though.
> Signed-off-by: Mike Galbraith <efault@gmx.de>
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index 82ad284..82a78a6 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -974,6 +974,13 @@ void sched_set_stop_task(int cpu, struct task_struct *stop)
> sched_setscheduler_nocheck(stop, SCHED_FIFO, ¶m);
>
> stop->sched_class = &stop_sched_class;
> +
> + /* Zero stale values for our non-accountable thread. */
> + stop->se.exec_start = 0;
> + stop->se.sum_exec_runtime = 0;
> + stop->se.prev_sum_exec_runtime = 0;
> + stop->stime = stop->stimescaled = 0;
> + stop->nvcsw = stop->nivcsw = 0;
> }
>
> cpu_rq(cpu)->stop = stop;
Now the question is, how did that stop thing get any time to begin with?
Are we hotplugging or somesuch sillyness?
Anyway, I think I like B best, could you re-submit as a proper patch so
I can press the magic button that queues stuff?
next prev parent reply other threads:[~2012-08-03 20:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 13:42 [patch] sched: fix migration thread runtime bogosity Mike Galbraith
2012-08-03 20:39 ` Peter Zijlstra [this message]
2012-08-04 3:44 ` Mike Galbraith
2012-08-13 16:53 ` [tip:sched/urgent] sched: Fix " tip-bot for Mike Galbraith
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=1344026355.27828.10.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mgalbraith@suse.de \
/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