Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-15 Thread Andy Lutomirski
On Tue, Dec 15, 2015 at 7:53 AM, Andrew Vagin wrote: > On Mon, Dec 14, 2015 at 02:38:06PM -0800, Andy Lutomirski wrote: >> On Dec 13, 2015 11:52 PM, "Andrew Vagin" wrote: >> > >> > On Thu, Dec 03, 2015 at 03:20:30PM -0800, Andy Lutomirski wrote: >> > > On Tue, Nov 24, 2015 at 7:18 AM, Andrew

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-15 Thread Andrew Vagin
On Mon, Dec 14, 2015 at 02:38:06PM -0800, Andy Lutomirski wrote: > On Dec 13, 2015 11:52 PM, "Andrew Vagin" wrote: > > > > On Thu, Dec 03, 2015 at 03:20:30PM -0800, Andy Lutomirski wrote: > > > On Tue, Nov 24, 2015 at 7:18 AM, Andrew Vagin > > > wrote: > > > > Hello Everybody, > > > > > > > >

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-15 Thread Andy Lutomirski
On Tue, Dec 15, 2015 at 7:53 AM, Andrew Vagin wrote: > On Mon, Dec 14, 2015 at 02:38:06PM -0800, Andy Lutomirski wrote: >> On Dec 13, 2015 11:52 PM, "Andrew Vagin" wrote: >> > >> > On Thu, Dec 03, 2015 at 03:20:30PM -0800, Andy Lutomirski wrote: >> > >

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-15 Thread Andrew Vagin
On Mon, Dec 14, 2015 at 02:38:06PM -0800, Andy Lutomirski wrote: > On Dec 13, 2015 11:52 PM, "Andrew Vagin" wrote: > > > > On Thu, Dec 03, 2015 at 03:20:30PM -0800, Andy Lutomirski wrote: > > > On Tue, Nov 24, 2015 at 7:18 AM, Andrew Vagin > > >

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-14 Thread Andy Lutomirski
On Dec 13, 2015 11:52 PM, "Andrew Vagin" wrote: > > On Thu, Dec 03, 2015 at 03:20:30PM -0800, Andy Lutomirski wrote: > > On Tue, Nov 24, 2015 at 7:18 AM, Andrew Vagin wrote: > > > Hello Everybody, > > > > > > Sorry for the long delay. I wanted to resurrect this thread. > > > > > > Andy suggested

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-14 Thread Andrew Vagin
On Fri, Dec 04, 2015 at 12:43:29AM +0100, Arnd Bergmann wrote: > On Thursday 03 December 2015 15:20:30 Andy Lutomirski wrote: > > > * Netlink is designed for such type of workloads. It allows to expand > > > the interface and save backward compatibility. It allows to generates > > > packets

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-14 Thread Andrew Vagin
On Fri, Dec 04, 2015 at 12:43:29AM +0100, Arnd Bergmann wrote: > On Thursday 03 December 2015 15:20:30 Andy Lutomirski wrote: > > > * Netlink is designed for such type of workloads. It allows to expand > > > the interface and save backward compatibility. It allows to generates > > > packets

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-14 Thread Andy Lutomirski
On Dec 13, 2015 11:52 PM, "Andrew Vagin" wrote: > > On Thu, Dec 03, 2015 at 03:20:30PM -0800, Andy Lutomirski wrote: > > On Tue, Nov 24, 2015 at 7:18 AM, Andrew Vagin wrote: > > > Hello Everybody, > > > > > > Sorry for the long delay. I wanted to

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-13 Thread Andrew Vagin
On Thu, Dec 03, 2015 at 03:20:30PM -0800, Andy Lutomirski wrote: > On Tue, Nov 24, 2015 at 7:18 AM, Andrew Vagin wrote: > > Hello Everybody, > > > > Sorry for the long delay. I wanted to resurrect this thread. > > > > Andy suggested to create a new syscall instead of using netlink > > interface.

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-13 Thread Andrew Vagin
On Thu, Dec 03, 2015 at 03:20:30PM -0800, Andy Lutomirski wrote: > On Tue, Nov 24, 2015 at 7:18 AM, Andrew Vagin wrote: > > Hello Everybody, > > > > Sorry for the long delay. I wanted to resurrect this thread. > > > > Andy suggested to create a new syscall instead of using

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-03 Thread Arnd Bergmann
On Thursday 03 December 2015 15:20:30 Andy Lutomirski wrote: > > * Netlink is designed for such type of workloads. It allows to expand > > the interface and save backward compatibility. It allows to generates > > packets with a different set of parameters. > > * If we use a file descriptor, we

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-03 Thread Andy Lutomirski
On Tue, Nov 24, 2015 at 7:18 AM, Andrew Vagin wrote: > Hello Everybody, > > Sorry for the long delay. I wanted to resurrect this thread. > > Andy suggested to create a new syscall instead of using netlink > interface. >> Would it make more sense to have a new syscall instead? You could >> even

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-03 Thread Andy Lutomirski
On Tue, Nov 24, 2015 at 7:18 AM, Andrew Vagin wrote: > Hello Everybody, > > Sorry for the long delay. I wanted to resurrect this thread. > > Andy suggested to create a new syscall instead of using netlink > interface. >> Would it make more sense to have a new syscall

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-12-03 Thread Arnd Bergmann
On Thursday 03 December 2015 15:20:30 Andy Lutomirski wrote: > > * Netlink is designed for such type of workloads. It allows to expand > > the interface and save backward compatibility. It allows to generates > > packets with a different set of parameters. > > * If we use a file descriptor, we

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-11-24 Thread Andrew Vagin
Hello Everybody, Sorry for the long delay. I wanted to resurrect this thread. Andy suggested to create a new syscall instead of using netlink interface. > Would it make more sense to have a new syscall instead?  You could > even still use nlattr formatting for the syscall results. I tried to

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-11-24 Thread Andrew Vagin
Hello Everybody, Sorry for the long delay. I wanted to resurrect this thread. Andy suggested to create a new syscall instead of using netlink interface. > Would it make more sense to have a new syscall instead?  You could > even still use nlattr formatting for the syscall results. I tried to

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-08 Thread Andy Lutomirski
On Wed, Jul 8, 2015 at 3:49 PM, Andrey Vagin wrote: > 2015-07-08 20:39 GMT+03:00 Andy Lutomirski : >> On Wed, Jul 8, 2015 at 9:10 AM, Andrew Vagin wrote: >>> >>> As far as I understand, socket_diag doesn't have this problem, becaus >>> each socket has a link on a namespace where it was created.

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-08 Thread Andrey Vagin
2015-07-08 20:39 GMT+03:00 Andy Lutomirski : > On Wed, Jul 8, 2015 at 9:10 AM, Andrew Vagin wrote: >> On Tue, Jul 07, 2015 at 08:56:37AM -0700, Andy Lutomirski wrote: >>> On Tue, Jul 7, 2015 at 8:43 AM, Andrew Vagin wrote: >>> > On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote:

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-08 Thread Andy Lutomirski
On Wed, Jul 8, 2015 at 9:10 AM, Andrew Vagin wrote: > On Tue, Jul 07, 2015 at 08:56:37AM -0700, Andy Lutomirski wrote: >> On Tue, Jul 7, 2015 at 8:43 AM, Andrew Vagin wrote: >> > On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: >> >> On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-08 Thread Andrew Vagin
On Tue, Jul 07, 2015 at 08:56:37AM -0700, Andy Lutomirski wrote: > On Tue, Jul 7, 2015 at 8:43 AM, Andrew Vagin wrote: > > On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: > >> On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin wrote: > >> > Currently we use the proc file system, where

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-08 Thread Andrew Vagin
On Tue, Jul 07, 2015 at 08:56:37AM -0700, Andy Lutomirski wrote: On Tue, Jul 7, 2015 at 8:43 AM, Andrew Vagin ava...@odin.com wrote: On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin ava...@openvz.org wrote: Currently we use the

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-08 Thread Andy Lutomirski
On Wed, Jul 8, 2015 at 9:10 AM, Andrew Vagin ava...@odin.com wrote: On Tue, Jul 07, 2015 at 08:56:37AM -0700, Andy Lutomirski wrote: On Tue, Jul 7, 2015 at 8:43 AM, Andrew Vagin ava...@odin.com wrote: On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: On Mon, Jul 6, 2015 at

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-08 Thread Andrey Vagin
2015-07-08 20:39 GMT+03:00 Andy Lutomirski l...@amacapital.net: On Wed, Jul 8, 2015 at 9:10 AM, Andrew Vagin ava...@odin.com wrote: On Tue, Jul 07, 2015 at 08:56:37AM -0700, Andy Lutomirski wrote: On Tue, Jul 7, 2015 at 8:43 AM, Andrew Vagin ava...@odin.com wrote: On Mon, Jul 06, 2015 at

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-08 Thread Andy Lutomirski
On Wed, Jul 8, 2015 at 3:49 PM, Andrey Vagin ava...@openvz.org wrote: 2015-07-08 20:39 GMT+03:00 Andy Lutomirski l...@amacapital.net: On Wed, Jul 8, 2015 at 9:10 AM, Andrew Vagin ava...@odin.com wrote: As far as I understand, socket_diag doesn't have this problem, becaus each socket has a

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread David Ahern
On 7/7/15 10:27 AM, Andy Lutomirski wrote: On Tue, Jul 7, 2015 at 9:25 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Jul 07, 2015 at 06:43:46PM +0300, Andrew Vagin escreveu: On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin wrote:

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread David Ahern
On 7/7/15 10:24 AM, Andy Lutomirski wrote: On Tue, Jul 7, 2015 at 9:17 AM, David Ahern wrote: On 7/7/15 9:56 AM, Andy Lutomirski wrote: Netlink is fine for these use cases (if they were related to the netns, not the pid ns or user ns), and it works. It's still tedious -- I bet that if you

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Andy Lutomirski
On Tue, Jul 7, 2015 at 9:25 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 07, 2015 at 06:43:46PM +0300, Andrew Vagin escreveu: >> On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: >> > On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin wrote: >> > Would it make more sense to have a

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 07, 2015 at 06:43:46PM +0300, Andrew Vagin escreveu: > On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: > > On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin wrote: > > Would it make more sense to have a new syscall instead? You could > > even still use nlattr formatting

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Andy Lutomirski
On Tue, Jul 7, 2015 at 9:17 AM, David Ahern wrote: > On 7/7/15 9:56 AM, Andy Lutomirski wrote: >> >> Netlink is fine for these use cases (if they were related to the >> netns, not the pid ns or user ns), and it works. It's still tedious >> -- I bet that if you used a syscall, the user code would

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread David Ahern
On 7/7/15 9:56 AM, Andy Lutomirski wrote: Netlink is fine for these use cases (if they were related to the netns, not the pid ns or user ns), and it works. It's still tedious -- I bet that if you used a syscall, the user code would be considerable shorter, though. :) How would this be a

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Andy Lutomirski
On Tue, Jul 7, 2015 at 8:43 AM, Andrew Vagin wrote: > On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: >> On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin wrote: >> > Currently we use the proc file system, where all information are >> > presented in text files, what is convenient for

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Andrew Vagin
On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: > On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin wrote: > > Currently we use the proc file system, where all information are > > presented in text files, what is convenient for humans. But if we need > > to get information about

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Andy Lutomirski
On Tue, Jul 7, 2015 at 9:17 AM, David Ahern dsah...@gmail.com wrote: On 7/7/15 9:56 AM, Andy Lutomirski wrote: Netlink is fine for these use cases (if they were related to the netns, not the pid ns or user ns), and it works. It's still tedious -- I bet that if you used a syscall, the user

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Andrew Vagin
On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin ava...@openvz.org wrote: Currently we use the proc file system, where all information are presented in text files, what is convenient for humans. But if we need to get information

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 07, 2015 at 06:43:46PM +0300, Andrew Vagin escreveu: On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin ava...@openvz.org wrote: Would it make more sense to have a new syscall instead? You could even still use nlattr

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Andy Lutomirski
On Tue, Jul 7, 2015 at 8:43 AM, Andrew Vagin ava...@odin.com wrote: On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin ava...@openvz.org wrote: Currently we use the proc file system, where all information are presented in text files,

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread David Ahern
On 7/7/15 9:56 AM, Andy Lutomirski wrote: Netlink is fine for these use cases (if they were related to the netns, not the pid ns or user ns), and it works. It's still tedious -- I bet that if you used a syscall, the user code would be considerable shorter, though. :) How would this be a

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread Andy Lutomirski
On Tue, Jul 7, 2015 at 9:25 AM, Arnaldo Carvalho de Melo a...@kernel.org wrote: Em Tue, Jul 07, 2015 at 06:43:46PM +0300, Andrew Vagin escreveu: On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin ava...@openvz.org wrote: Would it

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread David Ahern
On 7/7/15 10:24 AM, Andy Lutomirski wrote: On Tue, Jul 7, 2015 at 9:17 AM, David Ahern dsah...@gmail.com wrote: On 7/7/15 9:56 AM, Andy Lutomirski wrote: Netlink is fine for these use cases (if they were related to the netns, not the pid ns or user ns), and it works. It's still tedious -- I

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-07 Thread David Ahern
On 7/7/15 10:27 AM, Andy Lutomirski wrote: On Tue, Jul 7, 2015 at 9:25 AM, Arnaldo Carvalho de Melo a...@kernel.org wrote: Em Tue, Jul 07, 2015 at 06:43:46PM +0300, Andrew Vagin escreveu: On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: On Mon, Jul 6, 2015 at 1:47 AM, Andrey

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-06 Thread Andy Lutomirski
On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin wrote: > Currently we use the proc file system, where all information are > presented in text files, what is convenient for humans. But if we need > to get information about processes from code (e.g. in C), the procfs > doesn't look so cool. > > From

[PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-06 Thread Andrey Vagin
Currently we use the proc file system, where all information are presented in text files, what is convenient for humans. But if we need to get information about processes from code (e.g. in C), the procfs doesn't look so cool. >From code we would prefer to get information in binary format and to

[PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-06 Thread Andrey Vagin
Currently we use the proc file system, where all information are presented in text files, what is convenient for humans. But if we need to get information about processes from code (e.g. in C), the procfs doesn't look so cool. From code we would prefer to get information in binary format and to

Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)

2015-07-06 Thread Andy Lutomirski
On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin ava...@openvz.org wrote: Currently we use the proc file system, where all information are presented in text files, what is convenient for humans. But if we need to get information about processes from code (e.g. in C), the procfs doesn't look so