From: "Dmitry Adamushko" <dmitry.adamushko@gmail.com>
To: 夏亮 <xiaiaxaxi@sjtu.edu.cn>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How can I migrate a currently running task?
Date: Fri, 27 Jun 2008 16:27:25 +0200 [thread overview]
Message-ID: <b647ffbd0806270727m36ec7324odab60e0591d26891@mail.gmail.com> (raw)
In-Reply-To: <20080627211712.6cto2d1zks848c88@webmail1.sjtu.edu.cn>
2008/6/27 夏亮 <xiaiaxaxi@sjtu.edu.cn>:
> Hi,
>
> I am working on Intel Duo Core with Linux OS 2.6.21, and I'd like to
> migrate task from one cpu to another cpu.
> In SMP systems, load_balance() function uses move_tasks() to move processes
> from source runqueue to local runqueue, but it does not move a currently
> running task. If I want to migrate a currently running task from source
> runqueue to local runqueue, how can I do? Any suggestion is preferred.
> Thanks!
Some high-prio task takes away CPU from a 'target' task and then
pushes it onto another CPU. That's what 'migration_thread' does.
Take a look at use-cases of migrate_task() in sched.c.
>
> Liang
>
--
Best regards,
Dmitry Adamushko
prev parent reply other threads:[~2008-06-27 14:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 13:17 夏亮
2008-06-27 13:25 ` Bart Van Assche
2008-06-27 13:38 ` xialiang
2008-06-27 18:48 ` Robin Holt
2008-06-28 4:05 ` xialiang
2008-06-28 7:55 ` Peter Zijlstra
2008-06-27 14:27 ` Dmitry Adamushko [this message]
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=b647ffbd0806270727m36ec7324odab60e0591d26891@mail.gmail.com \
--to=dmitry.adamushko@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xiaiaxaxi@sjtu.edu.cn \
/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®