Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-04 Thread Konstantin Khlebnikov
On 04.04.2018 00:51, Nagarathnam Muthusamy wrote: On 04/03/2018 02:52 PM, Andrew Morton wrote: On Tue, 3 Apr 2018 14:45:28 -0700 Nagarathnam Muthusamy wrote: This changelog doesn't explain what the value is to our users.  I assume it is a performance optimization because "backward translat

Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-03 Thread Nagarathnam Muthusamy
On 04/03/2018 02:52 PM, Andrew Morton wrote: On Tue, 3 Apr 2018 14:45:28 -0700 Nagarathnam Muthusamy wrote: This changelog doesn't explain what the value is to our users. I assume it is a performance optimization because "backward translation requires scanning all tasks"? If so, please sh

Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-03 Thread Andrew Morton
On Tue, 3 Apr 2018 14:45:28 -0700 Nagarathnam Muthusamy wrote: > > This changelog doesn't explain what the value is to our users. I > > assume it is a performance optimization because "backward translation > > requires scanning all tasks"? If so, please show us real-world > > examples of the p

Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-03 Thread Nagarathnam Muthusamy
On 04/03/2018 02:38 PM, Andrew Morton wrote: On Mon, 2 Apr 2018 15:57:29 -0600 nagarathnam.muthus...@oracle.com wrote: pid_t translate_pid(pid_t pid, int source, int target); This syscall converts pid from source pid-ns into pid in target pid-ns. If pid is unreachable from target pid-ns it r

Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-03 Thread Andrew Morton
On Mon, 2 Apr 2018 15:57:29 -0600 nagarathnam.muthus...@oracle.com wrote: > pid_t translate_pid(pid_t pid, int source, int target); > > This syscall converts pid from source pid-ns into pid in target pid-ns. > If pid is unreachable from target pid-ns it returns zero. > > Pid-namespaces are refe

[RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-02 Thread nagarathnam . muthusamy
pid_t translate_pid(pid_t pid, int source, int target); This syscall converts pid from source pid-ns into pid in target pid-ns. If pid is unreachable from target pid-ns it returns zero. Pid-namespaces are referred file descriptors opened to proc files /proc/[pid]/ns/pid or /proc/[pid]/ns/pid_for_