From: Alex Shi <alex.shi@linaro.org>
To: mingo@redhat.com, peterz@infradead.org, morten.rasmussen@arm.com,
vincent.guittot@linaro.org, daniel.lezcano@linaro.org,
efault@gmx.de, chris.redpath@arm.com
Cc: wangyun@linux.vnet.ibm.com, linux-kernel@vger.kernel.org
Subject: [RFC PATCH] sched: let task migration destination cpu do active balance
Date: Wed, 16 Apr 2014 19:34:29 +0800 [thread overview]
Message-ID: <1397648069-6462-1-git-send-email-alex.shi@linaro.org> (raw)
Chris Redpath found an issue on active balance:
We let the task source cpu, the busiest cpu, do the active balance,
while the destination cpu maybe idle. thus we take the busiest cpu
time, but left the idlest cpu wait. That is not good for performance.
This patch let the destination cpu do active balance. It will give tasks
more running time.
Signed-off-by: Alex Shi <alex.shi@linaro.org>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 9b4c4f3..cccee76 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -6308,7 +6308,7 @@ more_balance:
raw_spin_unlock_irqrestore(&busiest->lock, flags);
if (active_balance) {
- stop_one_cpu_nowait(cpu_of(busiest),
+ stop_one_cpu_nowait(busiest->push_cpu,
active_load_balance_cpu_stop, busiest,
&busiest->active_balance_work);
}
--
1.8.1.2
next reply other threads:[~2014-04-16 11:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 11:34 Alex Shi [this message]
2014-04-16 12:13 ` Peter Zijlstra
2014-04-17 5:42 ` Alex Shi
2014-04-23 15:45 ` Chris Redpath
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=1397648069-6462-1-git-send-email-alex.shi@linaro.org \
--to=alex.shi@linaro.org \
--cc=chris.redpath@arm.com \
--cc=daniel.lezcano@linaro.org \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=morten.rasmussen@arm.com \
--cc=peterz@infradead.org \
--cc=vincent.guittot@linaro.org \
--cc=wangyun@linux.vnet.ibm.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®