From: David Rientjes <rientjes@google.com>
To: Cliff Wickman <cpw@sgi.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org
Subject: Re: [PATCH] hotplug cpu: move tasks in empty cpusets to parent
Date: Fri, 21 Sep 2007 11:56:41 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.0.9999.0709211150450.11391@chino.kir.corp.google.com> (raw)
In-Reply-To: <20070921164255.44676149779@attica.americas.sgi.com>
On Fri, 21 Sep 2007, Cliff Wickman wrote:
> This patch corrects a situation that occurs when one disables all the cpus
> in a cpuset.
>
> Currently, the disabled (cpu-less) cpuset inherits the cpus of its parent,
> which may overlap its exclusive sibling.
> (You will get non-removable cpusets -- "Invalid argument")
>
> Tasks of an empty cpuset should be moved to the cpuset which is the parent
> of their current cpuset. Or if the parent cpuset has no cpus, to its
> parent, etc.
>
It looks like your patch is doing this for tasks that lose all of their
mems too, but it seems like the better alternative is to prevent the user
from doing echo -n > /dev/cpuset/my_cpuset/mems by returning -EINVAL in
update_nodemask(). Are you trying to enable some functionality for node
hot-unplug here? If so, that needs documentation in the description.
> And the empty cpuset should be removed (if it is flagged notify_on_release).
>
notify_on_release simply calls a userspace agent when the last task is
removed, it doesn't necessarily specify that a cpuset should automatically
be removed; that's up to the userspace agent.
There doesn't appear to be any support for memory_migrate cpusets in your
patch, either, so that memory that is allocated on a cpuset's mems is
automatically migrated to its new cpuset's mems when it loses all of its
cpus.
David
--
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>
next prev parent reply other threads:[~2007-09-21 18:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-21 16:42 Cliff Wickman
2007-09-21 18:39 ` Paul Jackson
2007-09-21 18:56 ` David Rientjes [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-09-21 22:53 Cliff Wickman
2007-09-21 23:15 ` David Rientjes
2007-09-18 20:40 Cliff Wickman
2007-09-20 23:08 ` Andrew Morton
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.0.9999.0709211150450.11391@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=akpm@linux-foundation.org \
--cc=cpw@sgi.com \
--cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox