From: Balbir Singh <balbir-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: KAMEZAWA Hiroyuki
<kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
Nikanth Karthikesan <knikanth-l3A5Bk7waGM@public.gmane.org>,
containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
nikanth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH] Unused check for thread group leader in mem_cgroup_move_task
Date: Wed, 3 Dec 2008 19:10:25 +0530 [thread overview]
Message-ID: <20081203134024.GD17701@balbir.in.ibm.com> (raw)
In-Reply-To: <20081201133030.0a330c7b.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
* KAMEZAWA Hiroyuki <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org> [2008-12-01 13:30:30]:
> On Mon, 1 Dec 2008 09:51:35 +0530
> Nikanth Karthikesan <knikanth-l3A5Bk7waGM@public.gmane.org> wrote:
>
> > Ok. Then should we remove the unused code which simply checks for thread group
> > leader but does nothing?
> >
> > Thanks
> > Nikanth
> >
> Hmm, it seem that code is obsolete. thanks.
> Balbir, how do you think ?
>
> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
>
> Anyway we have to visit here, again.
Sorry, I did not review this patch. The correct thing was nikanth did
at first, move this to can_attach(). Why would we allow threads to
exist in different groups, but still mark them as being accounted to
the thread group leader.
It can be a bit confusing for end users, it can be helpful when all
controllers are mounted together. I agree we did not do anything
useful in move_task(). The correct check now, should be for mm->owner.
If the common case is going to be that memory and cpu are mounted
together, then this patch is correct, but it can be confusing to users
who look at tasks/threads, but as the threads consume memory, the
accounting will happen with mm->owner.
--
Balbir
WARNING: multiple messages have this Message-ID (diff)
From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Nikanth Karthikesan <knikanth@suse.de>,
containers@lists.linux-foundation.org, xemul@openvz.org,
linux-mm@kvack.org, nikanth@gmail.com
Subject: Re: [PATCH] Unused check for thread group leader in mem_cgroup_move_task
Date: Wed, 3 Dec 2008 19:10:25 +0530 [thread overview]
Message-ID: <20081203134024.GD17701@balbir.in.ibm.com> (raw)
In-Reply-To: <20081201133030.0a330c7b.kamezawa.hiroyu@jp.fujitsu.com>
* KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> [2008-12-01 13:30:30]:
> On Mon, 1 Dec 2008 09:51:35 +0530
> Nikanth Karthikesan <knikanth@suse.de> wrote:
>
> > Ok. Then should we remove the unused code which simply checks for thread group
> > leader but does nothing?
> >
> > Thanks
> > Nikanth
> >
> Hmm, it seem that code is obsolete. thanks.
> Balbir, how do you think ?
>
> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>
> Anyway we have to visit here, again.
Sorry, I did not review this patch. The correct thing was nikanth did
at first, move this to can_attach(). Why would we allow threads to
exist in different groups, but still mark them as being accounted to
the thread group leader.
It can be a bit confusing for end users, it can be helpful when all
controllers are mounted together. I agree we did not do anything
useful in move_task(). The correct check now, should be for mm->owner.
If the common case is going to be that memory and cpu are mounted
together, then this patch is correct, but it can be confusing to users
who look at tasks/threads, but as the threads consume memory, the
accounting will happen with mm->owner.
--
Balbir
--
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:[~2008-12-03 13:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-29 7:29 [PATCH] Unused check for thread group leader in mem_cgroup_move_task Nikanth Karthikesan
2008-12-01 1:12 ` KAMEZAWA Hiroyuki
[not found] ` <20081201101208.08e0aa98.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2008-12-01 4:21 ` Nikanth Karthikesan
2008-12-01 4:21 ` Nikanth Karthikesan
[not found] ` <200812010951.36392.knikanth-l3A5Bk7waGM@public.gmane.org>
2008-12-01 4:30 ` KAMEZAWA Hiroyuki
2008-12-01 4:30 ` KAMEZAWA Hiroyuki
[not found] ` <20081201133030.0a330c7b.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2008-12-03 13:40 ` Balbir Singh [this message]
2008-12-03 13:40 ` Balbir Singh
[not found] ` <20081203134024.GD17701-SINUvgVNF2CyUtPGxGje5AC/G2K4zDHf@public.gmane.org>
2008-12-03 16:08 ` [PATCH] Unused check for thread group leader inmem_cgroup_move_task KAMEZAWA Hiroyuki
2008-12-03 16:08 ` KAMEZAWA Hiroyuki
[not found] ` <200811291259.27681.knikanth-l3A5Bk7waGM@public.gmane.org>
2008-12-01 1:12 ` [PATCH] Unused check for thread group leader in mem_cgroup_move_task KAMEZAWA Hiroyuki
-- strict thread matches above, loose matches on Subject: below --
2008-11-29 7:29 Nikanth Karthikesan
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=20081203134024.GD17701@balbir.in.ibm.com \
--to=balbir-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org \
--cc=knikanth-l3A5Bk7waGM@public.gmane.org \
--cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
--cc=nikanth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.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.