RE: [RFC]Pid conversion between pid namespace

2014-08-29 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Serge E. Hallyn [mailto:se...@hallyn.com] > Sent: Thursday, August 28, 2014 9:50 PM > To: Chen, Hanxiao/陈 晗霄 > Cc: Serge Hallyn; Richard Weinberger (rich...@nod.at); [snip] > > > I like your proc approach. Do you have an implementation? > > > > Thanks for yo

Re: [RFC]Pid conversion between pid namespace

2014-08-28 Thread Serge E. Hallyn
Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): > > > > -Original Message- > > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > > Sent: Friday, August 08, 2014 12:12 AM > > To: Chen, Hanxiao/陈 晗霄 > > > > > How much more kernel space does this take up? > > > > > > >

RE: [RFC]Pid conversion between pid namespace

2014-08-08 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > Sent: Friday, August 08, 2014 12:12 AM > To: Chen, Hanxiao/陈 晗霄 > > > How much more kernel space does this take up? > > > > > > > Only first process when creating new ns will be add here. > > So there would not

Re: [RFC]Pid conversion between pid namespace

2014-08-07 Thread Serge Hallyn
Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): > Hi, > > > -Original Message- > > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > > Sent: Tuesday, August 05, 2014 6:21 AM > > > > Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): > > > Hi, > > > > > >

RE: [RFC]Pid conversion between pid namespace

2014-08-07 Thread chenhanx...@cn.fujitsu.com
/nspid/ns0/ns1/ns2 > > Then we knew that t4 have pid 9 in ns2, have pid 8 in ns1. > > > > Any comments would be warmly welcomed! > > > > Thanks, > > - Chen > > > > > -Original Message- > > > From: containers-boun...@lists.linux-

Re: [RFC]Pid conversion between pid namespace

2014-08-04 Thread Serge Hallyn
6:34 PM > > To: Eric W. Biederman (ebied...@xmission.com); Serge Hallyn > > (serge.hal...@ubuntu.com); Oleg Nesterov (o...@redhat.com); Richard > > Weinberger > > (rich...@nod.at); Pavel Emelyanov (xe...@parallels.com); Vasily Kulikov > > (seg...@openwall.com); Gotou,

Re: [RFC]Pid conversion between pid namespace

2014-07-28 Thread Serge Hallyn
; > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > > > > Sent: Tuesday, July 15, 2014 12:16 PM > > > > To: Chen, Hanxiao/陈 晗霄 > > > > Subject: Re: [RFC]Pid conversion between pid namespace > > > > > A-2) syscall pid_t getns

Re: [RFC]Pid conversion between pid namespace

2014-07-28 Thread Hu Tao
day, July 15, 2014 12:16 PM > > > To: Chen, Hanxiao/陈 晗霄 > > > Subject: Re: [RFC]Pid conversion between pid namespace > > > > A-2) syscall pid_t getnspid(pid_t query_pid, pid_t observer_pid) > > > > pros: > > > > - ns procfs fr

Re: [RFC]Pid conversion between pid namespace

2014-07-25 Thread Serge Hallyn
Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): > Hi, > > > -Original Message- > > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > > Sent: Tuesday, July 15, 2014 12:16 PM > > To: Chen, Hanxiao/陈 晗霄 > > Subject: Re: [RFC]

RE: [RFC]Pid conversion between pid namespace

2014-07-25 Thread chenhanx...@cn.fujitsu.com
om)' > Cc: contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org > Subject: RE: [RFC]Pid conversion between pid namespace > > Hi, > > Let me summarize our discussions of ID conversion by pros/cons: > > A) make new system call for translation > A-1) systemcall

RE: [RFC]Pid conversion between pid namespace

2014-07-21 Thread chenhanx...@cn.fujitsu.com
Hi, > -Original Message- > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > Sent: Tuesday, July 15, 2014 12:16 PM > To: Chen, Hanxiao/陈 晗霄 > Subject: Re: [RFC]Pid conversion between pid namespace > > A-2) syscall pid_t getnspid(pid_t query_pid, pid_t obser

Re: [RFC]Pid conversion between pid namespace

2014-07-14 Thread Serge Hallyn
g a new proc file just under /proc > to show the hierarchy like readlink did: > pid:[4026531836]-> [4026532390] -> [4026532484] > pid:[4026531836]-> [4026532491] > (A 3 level pid and 2 level pid_ > > Any comments would be appreciated. > > Thanks,

RE: [RFC]Pid conversion between pid namespace

2014-07-09 Thread chenhanx...@cn.fujitsu.com
d 2 level pid_ Any comments would be appreciated. Thanks, - Chen > -Original Message- > Subject: [RFC]Pid conversion between pid namespace > > Hi, > > We had some discussions on how to carry out > pid conversion between pid namespace via: > syscall[1] and procf

Re: [RFC]Pid conversion between pid namespace

2014-07-03 Thread Yasunori Goto
Chen-san, I would like to recommend that you summarize pros/cons for all ideas so far. For example, - A) make new system call for transrate A-1) systemcall(ID, NS1, NS2) into (ID). pros: - foo - baa cons: - hoge - hogehogehoge A-2) pi

[RFC]Pid conversion between pid namespace

2014-07-03 Thread chenhanx...@cn.fujitsu.com
Hi, We had some discussions on how to carry out pid conversion between pid namespace via: syscall[1] and procfs[2]. Pavel suggested that a syscall like (ID, NS1, NS2) into (ID). Serge suggested that a syscall pid_t getnspid(pid_t query_pid, pid_t observer_pid). Eric and Richard suggested a pr