From: Ashok Raj <ashok.raj@intel.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Christoph Lameter <clameter@sgi.com>,
linux-kernel@vger.kernel.org, ashok.raj@intel.com, ak@suse.de
Subject: Re: [RFC][PATCH] avoid cpu hot remove of cpus which have special RT tasks.
Date: Fri, 16 Jun 2006 10:29:35 -0700 [thread overview]
Message-ID: <20060616102934.A2940@unix-os.sc.intel.com> (raw)
In-Reply-To: <20060617014623.8f820e8b.kamezawa.hiroyu@jp.fujitsu.com>; from kamezawa.hiroyu@jp.fujitsu.com on Sat, Jun 17, 2006 at 01:46:23AM +0900
On Sat, Jun 17, 2006 at 01:46:23AM +0900, KAMEZAWA Hiroyuki wrote:
> + if (tsk->mm && stop_derailed_process) {
> + force = 1;
> + printk(KERN_INFO, "process %d (%s) is stopped "
> + "by stop_derailed_process sysctl\n",
> + tsk->pid, tsk->comm);
> + }
> }
> __migrate_task(tsk, dead_cpu, dest_cpu);
> + if (force)
> + force_sig_specific(SIGSTOP, tsk);
> }
>
Humm, dont know killing tasks is a good thing, unless the thread specifically
asked for it.
I dont know if there are bad cases, but if a thread just switched itself to
get to some per cpu data its best to ensure it does that consistently.
i see some code in kernel that does this today
cpumask_t save_cpus_allowed = current->cpus_allowed;
cpumask_t new_cpus_allowed = cpumask_of_cpu(cpu);
set_cpus_allowed(current, new_cpus_allowed);
(*fn)(arg);
set_cpus_allowed(current, save_cpus_allowed);
Probably such code should use a get_cpu()/put_cpu() to ensure they do this on
the right context to ensure they are not switched.
Should we have this flag on a per-task so we know if this task should be
killed, or could be migrated without damage (assuming its going to run slow,
but nothing critically bad will happen)
Iam just worried if killing them globally without giving them a chance is
any good and favorite apps such as databases will have probably have
ill effects.
Cheers,
ashok
next prev parent reply other threads:[~2006-06-16 17:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-16 7:23 [RFC][PATCH] avoid cpu hot remove of cpus which have special RT tasks KAMEZAWA Hiroyuki
2006-06-16 9:14 ` Andi Kleen
2006-06-16 10:26 ` KAMEZAWA Hiroyuki
2006-06-16 10:36 ` Andi Kleen
2006-06-16 10:58 ` KAMEZAWA Hiroyuki
2006-06-16 11:20 ` Andi Kleen
2006-06-16 11:25 ` KAMEZAWA Hiroyuki
2006-06-17 3:46 ` Nick Piggin
2006-06-17 5:12 ` KAMEZAWA Hiroyuki
2006-06-17 7:29 ` Nick Piggin
2006-06-17 7:53 ` KAMEZAWA Hiroyuki
2006-06-17 8:48 ` Nick Piggin
2006-06-17 8:58 ` KAMEZAWA Hiroyuki
2006-06-16 16:09 ` Christoph Lameter
2006-06-16 16:46 ` KAMEZAWA Hiroyuki
2006-06-16 17:29 ` Ashok Raj [this message]
2006-06-16 23:47 ` KAMEZAWA Hiroyuki
2006-06-18 16:46 ` Pavel Machek
2006-06-19 1:12 ` KAMEZAWA Hiroyuki
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=20060616102934.A2940@unix-os.sc.intel.com \
--to=ashok.raj@intel.com \
--cc=ak@suse.de \
--cc=clameter@sgi.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.