Re: [PATCHv4] procfs: show hierarchy of pid namespace

2014-10-14 Thread Oleg Nesterov
On 10/13, Chen, Hanxiao wrote: > > > At the same time, for_each_process() in the global namespace can be > > faster if there are a lot of sub-threads. > > > > > Perhaps that's not a good way. > > > > OK, I won't insist. > > > > although it would be nice to know why do you think this is bad. > > > I

RE: [PATCHv4] procfs: show hierarchy of pid namespace

2014-10-13 Thread Chen, Hanxiao
Weinberger; Pavel Emelyanov; > Vasiliy Kulikov; Mateusz Guzik > Subject: Re: [PATCHv4] procfs: show hierarchy of pid namespace > > On 10/09, Chen, Hanxiao wrote: > > > > > From: Oleg Nesterov [mailto:o...@redhat.com] > > > > > > Hmm. We only want the tasks

Re: [PATCHv4] procfs: show hierarchy of pid namespace

2014-10-09 Thread Oleg Nesterov
On 10/09, Chen, Hanxiao wrote: > > > From: Oleg Nesterov [mailto:o...@redhat.com] > > > > Hmm. We only want the tasks from our namespace, yes? Perhaps find_ge_pid() > > makes more sense? > > Only tasks from our ns is valid. > But how could find_ge_pid() do that? > > nr = 1; > while (nr < PID_MAX_LI

RE: [PATCHv4] procfs: show hierarchy of pid namespace

2014-10-09 Thread Chen, Hanxiao
Weinberger; Pavel Emelyanov; > Vasiliy Kulikov; Mateusz Guzik > Subject: Re: [PATCHv4] procfs: show hierarchy of pid namespace > > Sorry if this was already discussed, I have to admit that I ignored > the previous discussion ;) And it is possible I misread this patch > completel

RE: [PATCHv4] procfs: show hierarchy of pid namespace

2014-10-09 Thread Chen, Hanxiao
d Howells; Richard > Weinberger; Pavel Emelyanov; Vasiliy Kulikov; Mateusz Guzik > Subject: Re: [PATCHv4] procfs: show hierarchy of pid namespace > > Am 08.10.2014 11:56, schrieb Chen Hanxiao: > > This patch will show the hierarchy of pid namespace > > by /proc/pidns_hier

Re: [PATCHv4] procfs: show hierarchy of pid namespace

2014-10-08 Thread Oleg Nesterov
Sorry if this was already discussed, I have to admit that I ignored the previous discussion ;) And it is possible I misread this patch completely. On 10/08, Chen Hanxiao wrote: > > This patch will show the hierarchy of pid namespace > by /proc/pidns_hierarchy like: > > [root@localhost ~]#cat /proc

Re: [PATCHv4] procfs: show hierarchy of pid namespace

2014-10-08 Thread Richard Weinberger
Am 08.10.2014 11:56, schrieb Chen Hanxiao: > This patch will show the hierarchy of pid namespace > by /proc/pidns_hierarchy like: > > [root@localhost ~]#cat /proc/pidns_hierarchy > /proc/18060/ns/pid /proc/18102/ns/pid /proc/1534/ns/pid > /proc/18060/ns/pid /proc/18102/ns/pid /proc/1600/ns/pid > /