linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Rientjes <rientjes@google.com>
To: Miao Xie <miaox@cn.fujitsu.com>
Cc: Nick Piggin <npiggin@suse.de>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Lee Schermerhorn <lee.schermerhorn@hp.com>
Subject: Re: [regression] cpuset,mm: update tasks' mems_allowed in time (58568d2)
Date: Tue, 23 Feb 2010 00:55:04 -0800 (PST)	[thread overview]
Message-ID: <alpine.DEB.2.00.1002230046160.12015@chino.kir.corp.google.com> (raw)
In-Reply-To: <4B838490.1050908@cn.fujitsu.com>

On Tue, 23 Feb 2010, Miao Xie wrote:

> >>  /*
> >> @@ -1391,11 +1393,10 @@ static void cpuset_attach(struct cgroup_subsys *ss, struct cgroup *cont,
> >>  
> >>  	if (cs == &top_cpuset) {
> >>  		cpumask_copy(cpus_attach, cpu_possible_mask);
> >> -		to = node_possible_map;
> >>  	} else {
> >>  		guarantee_online_cpus(cs, cpus_attach);
> >> -		guarantee_online_mems(cs, &to);
> >>  	}
> >> +	guarantee_online_mems(cs, &to);
> >>  
> >>  	/* do per-task migration stuff possibly for each in the threadgroup */
> >>  	cpuset_attach_task(tsk, &to, cs);
> > 
> > Do we need to set cpus_attach to cpu_possible_mask?  Why won't 
> > cpu_active_mask suffice?
> 
> If we set cpus_attach to cpu_possible_mask, we needn't do anything for tasks in the top_cpuset when
> doing cpu hotplug. If not, we will update cpus_allowed of all tasks in the top_cpuset.
> 

Cpu hotplug sets top_cpuset's cpus_allowed to cpu_active_mask by default, 
regardless of what was onlined or offlined.  cpus_attach in the context of 
your patch (in cpuset_attach()) passes cpu_possible_mask to 
set_cpus_allowed_ptr() if the task is being attached to top_cpuset, my 
question was why don't we pass cpu_active_mask instead?  In other words, I 
think we should do

	cpumask_copy(cpus_attach, cpu_active_mask);

when attached to top_cpuset like my patch did.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2010-02-23  8:55 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18 13:49 Nick Piggin
2010-02-18 21:38 ` David Rientjes
2010-02-19  3:31   ` Nick Piggin
2010-02-19 10:06     ` David Rientjes
2010-02-22 11:53       ` Miao Xie
2010-02-22 12:06         ` Nick Piggin
2010-02-23  1:48           ` Miao Xie
2010-02-22 22:06         ` David Rientjes
2010-02-23  7:32           ` Miao Xie
2010-02-23  8:55             ` David Rientjes [this message]
2010-02-23  9:23               ` Miao Xie
2010-02-23 22:31                 ` David Rientjes
2010-02-24  9:35                   ` Miao Xie
2010-02-24 21:08                     ` David Rientjes
2010-02-25  1:18                       ` Miao Xie
2010-02-22 12:12       ` Nick Piggin
2010-02-22 22:00         ` David Rientjes
2010-02-23  8:25           ` Miao Xie
2010-02-23  8:44             ` David Rientjes
2010-02-24  9:49               ` Miao Xie
2010-02-24 21:06                 ` David Rientjes
2010-02-19  7:51 ` KOSAKI Motohiro
2010-02-19  9:42   ` David Rientjes
2010-02-19  7:56 ` 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=alpine.DEB.2.00.1002230046160.12015@chino.kir.corp.google.com \
    --to=rientjes@google.com \
    --cc=lee.schermerhorn@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=miaox@cn.fujitsu.com \
    --cc=npiggin@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