virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* RFC: Attaching threads to cgroups is OK?
@ 2008-08-19 10:38 Takuya Yoshikawa
  0 siblings, 0 replies; 23+ messages in thread
From: Takuya Yoshikawa @ 2008-08-19 10:38 UTC (permalink / raw)
  To: containers, virtualization; +Cc: zquez Cao, =?ISO-8859-1?Q?Fernando_Luis_V=E1?=

Hi everyone,

I have a question about cgroup's policy concerning the treatment of 
threads. Please consider that we want to attach an application which has 
some threads already to a certain cgroup. If we echo the pid of this 
application to the "tasks" file connected to this cgroup the threads 
belonging to this application will NOT be moved to the new group. Is it 
right? If so, is it OK?

I mean, in the current implementation, threads created before the 
attachement of the parent process are not treated eaqually to those 
created after.

Could you tell me if you know something about the rules of attachement 
of pid, or tid, to cgroups? -- what ID is OK to write to "tasks" file 
and what we can expect as a result?


Tsuruta-san, how about your bio-cgroup's tracking concerning this?
If we want to use your tracking functions for each threads seperately, 
there seems to be a problem.
===cf. mm_get_bio_cgroup()===================
           owner
mm_struct ----> task_struct ----> bio_cgroup
=============================================
In my understanding, the mm_struct of a thread is same as its parent's.
So, even if we attach the TIDs of some threads to different cgroups the 
tracking always returns the same bio_cgroup -- its parent's group.
Do you have some policy about in which case we can use your tracking?

Thanks,
-- Takuya Yoshikawa

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2008-09-12 18:57 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <48AAA296.8050802@oss.ntt.co.jp>
2008-08-19 11:22 ` RFC: Attaching threads to cgroups is OK? KAMEZAWA Hiroyuki
     [not found] ` <20080819202237.edd75933.kamezawa.hiroyu@jp.fujitsu.com>
2008-08-19 12:27   ` Balbir Singh
     [not found]   ` <48AABC31.7070207@linux.vnet.ibm.com>
2008-08-19 12:52     ` Fernando Luis Vázquez Cao
2008-08-20  5:52     ` Takuya Yoshikawa
     [not found]     ` <1219150334.14590.12.camel@sebastian.kern.oss.ntt.co.jp>
2008-08-20  7:12       ` Hirokazu Takahashi
     [not found]       ` <20080820.161247.64324924.taka@valinux.co.jp>
2008-08-20  8:43         ` KAMEZAWA Hiroyuki
2008-08-22  1:03           ` Takuya Yoshikawa
2008-08-20 11:48   ` Hirokazu Takahashi
     [not found]   ` <20080820.204832.131207708.taka@valinux.co.jp>
2008-08-21  3:08     ` Fernando Luis Vázquez Cao
     [not found]     ` <1219288081.28324.30.camel@sebastian.kern.oss.ntt.co.jp>
2008-08-21  3:32       ` Balbir Singh
     [not found]       ` <48ACE1B4.8010000@linux.vnet.ibm.com>
2008-08-21  5:25         ` Fernando Luis Vázquez Cao
     [not found]         ` <1219296306.28324.82.camel@sebastian.kern.oss.ntt.co.jp>
2008-08-21 10:28           ` Balbir Singh
2008-08-22 18:55           ` Vivek Goyal
     [not found]           ` <20080822185527.GD27964@redhat.com>
2008-08-25 10:36             ` Fernando Luis Vázquez Cao
2008-09-05 11:50               ` Hirokazu Takahashi
     [not found]               ` <20080905.205016.28412219.taka@valinux.co.jp>
2008-09-05 12:00                 ` Hirokazu Takahashi
     [not found]                 ` <20080905.210017.44596963.taka@valinux.co.jp>
2008-09-05 15:38                   ` Vivek Goyal
2008-09-08  2:58                     ` Takuya Yoshikawa
     [not found]                     ` <48C494EB.4080502@oss.ntt.co.jp>
2008-09-08 11:52                       ` Hirokazu Takahashi
2008-09-08 12:47                     ` Hirokazu Takahashi
2008-09-12 18:57             ` Vivek Goyal
2008-08-20  7:41 ` Hirokazu Takahashi
2008-08-19 10:38 Takuya Yoshikawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).