Re: [PATCH 1/2] pidmap(2)

2017-09-07 Thread Dmitry V. Levin
On Tue, Sep 05, 2017 at 10:05:00PM +0300, Alexey Dobriyan wrote: > From: Tatsiana Brouka > > Implement system call for bulk retrieveing of pids in binary form. > > Using /proc is slower than necessary: 3 syscalls + another 3 for each thread + > converting with atoi(). > > /proc may be not mount

Re: [PATCH 1/2] pidmap(2)

2017-09-07 Thread Alexey Dobriyan
On 9/7/17, Djalal Harouni wrote: > Hi Alexey, > > On Thu, Sep 7, 2017 at 4:04 AM, Andy Lutomirski > wrote: >> On Wed, Sep 6, 2017 at 2:04 AM, Alexey Dobriyan >> wrote: >>> On 9/6/17, Randy Dunlap wrote: On 09/05/17 15:53, Andrew Morton wrote: > [...] also, I expect that the tiny

Re: [PATCH 1/2] pidmap(2)

2017-09-07 Thread Alexey Dobriyan
On 9/7/17, Andy Lutomirski wrote: > On Wed, Sep 6, 2017 at 2:04 AM, Alexey Dobriyan > wrote: >> On 9/6/17, Randy Dunlap wrote: >>> On 09/05/17 15:53, Andrew Morton wrote: On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan wrote: > Implement system call for bulk retrieveing of

Re: [PATCH 1/2] pidmap(2)

2017-09-06 Thread Djalal Harouni
Hi Alexey, On Thu, Sep 7, 2017 at 4:04 AM, Andy Lutomirski wrote: > On Wed, Sep 6, 2017 at 2:04 AM, Alexey Dobriyan wrote: >> On 9/6/17, Randy Dunlap wrote: >>> On 09/05/17 15:53, Andrew Morton wrote: [...] >>> >>> also, I expect that the tiny kernel people will want kconfig options for >>> the

Re: [PATCH 1/2] pidmap(2)

2017-09-06 Thread Andy Lutomirski
On Wed, Sep 6, 2017 at 2:04 AM, Alexey Dobriyan wrote: > On 9/6/17, Randy Dunlap wrote: >> On 09/05/17 15:53, Andrew Morton wrote: >>> On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan >>> wrote: >>> Implement system call for bulk retrieveing of pids in binary form. Using /proc is

Re: [PATCH 1/2] pidmap(2)

2017-09-06 Thread Alexey Dobriyan
On 9/6/17, Randy Dunlap wrote: > On 09/05/17 15:53, Andrew Morton wrote: >> On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan >> wrote: >> >>> Implement system call for bulk retrieveing of pids in binary form. >>> >>> Using /proc is slower than necessary: 3 syscalls + another 3 for each >>> threa

Re: [PATCH 1/2] pidmap(2)

2017-09-06 Thread Alexey Dobriyan
On 9/6/17, Andrew Morton wrote: > On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan > wrote: > >> Implement system call for bulk retrieveing of pids in binary form. >> >> Using /proc is slower than necessary: 3 syscalls + another 3 for each >> thread + >> converting with atoi(). >> >> /proc may b

Re: [PATCH 1/2] pidmap(2)

2017-09-06 Thread Thomas Gleixner
On Tue, 5 Sep 2017, Randy Dunlap wrote: > On 09/05/17 15:53, Andrew Morton wrote: > > On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan > > wrote: > > > >> Implement system call for bulk retrieveing of pids in binary form. > >> > >> Using /proc is slower than necessary: 3 syscalls + another 3 fo

Re: [PATCH 1/2] pidmap(2)

2017-09-05 Thread Randy Dunlap
On 09/05/17 15:53, Andrew Morton wrote: > On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan wrote: > >> Implement system call for bulk retrieveing of pids in binary form. >> >> Using /proc is slower than necessary: 3 syscalls + another 3 for each thread >> + >> converting with atoi(). >> >> /pro

Re: [PATCH 1/2] pidmap(2)

2017-09-05 Thread Andrew Morton
On Tue, 5 Sep 2017 22:05:00 +0300 Alexey Dobriyan wrote: > Implement system call for bulk retrieveing of pids in binary form. > > Using /proc is slower than necessary: 3 syscalls + another 3 for each thread + > converting with atoi(). > > /proc may be not mounted especially in containers. Natur