From: Peter Zijlstra <peterz@infradead.org>
To: Mike Galbraith <efault@gmx.de>
Cc: Ingo Molnar <mingo@elte.hu>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: commit e9e9250b: sync wakeup bustage when waker is an RT task
Date: Sat, 15 May 2010 14:04:12 +0200 [thread overview]
Message-ID: <1273925052.1674.138.camel@laptop> (raw)
In-Reply-To: <1273924628.10630.24.camel@marge.simson.net>
On Sat, 2010-05-15 at 13:57 +0200, Mike Galbraith wrote:
> Hi Peter,
>
> This commit excluded RT tasks from rq->load, was that intentional? The
> comment in struct rq states that load reflects *all* tasks, but since
> this commit, that's no longer true.
Right, because a static load value does not accurately reflect a RT task
which can run as long as it pretty well pleases. So instead we measure
the time spend running !fair tasks and scale down the cpu_power
proportionally.
> Looking at lmbench lat_udp in a PREEMPT_RT kernel, I noticed that
> wake_affine() is failing for sync wakeups when it should not. It's
> doing so because the waker in this case is an RT kernel thread
> (sirq-net-rx) - we subtract the sync waker's weight, when it was never
> added in the first place, resulting in this_load going gaga. End result
> is quite high latency numbers due to tasks jabbering cross-cache.
>
> If the exclusion was intentional, I suppose I can do a waker class check
> in wake_affine() to fix it.
So basically make all RT wakeups sync?
next prev parent reply other threads:[~2010-05-15 14:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-15 11:57 commit e9e9250b: sync wakeup bustage when waker is an RT task Mike Galbraith
2010-05-15 12:04 ` Peter Zijlstra [this message]
2010-05-15 17:07 ` Mike Galbraith
2010-05-15 17:32 ` Mike Galbraith
2010-05-16 7:21 ` Mike Galbraith
2010-05-17 4:38 ` Mike Galbraith
2010-05-17 8:49 ` Peter Zijlstra
2010-05-17 8:52 ` Peter Zijlstra
2010-05-17 9:04 ` Mike Galbraith
2010-05-31 11:56 ` Peter Zijlstra
2010-05-31 13:56 ` Mike Galbraith
2010-05-31 14:28 ` Peter Zijlstra
2010-05-31 18:03 ` Mike Galbraith
2010-06-01 6:40 ` Mike Galbraith
2010-06-01 9:12 ` [tip:sched/urgent] sched: Fix wake_affine() vs RT tasks tip-bot for Peter Zijlstra
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=1273925052.1674.138.camel@laptop \
--to=peterz@infradead.org \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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