Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1394759

Re: task_diag: add a new interface to get information about processes

From Andrey Vagin <avagin@openvz.org>
Newsgroups linux.kernel
Subject Re: task_diag: add a new interface to get information about processes
Date 2016-05-05 00:40 +0200
Message-ID <rvdCx-46c-9@gated-at.bofh.it> (permalink)
References <rvbAK-2kO-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Stephen,

On Wed, May 4, 2016 at 1:22 PM, Stephen Hemminger
<stephen@networkplumber.org> wrote:
> I understand how reading /proc or /sys can be a bottleneck, but this
> proposed method using a system call is the wrong way to do this.
>
> Why not use netlink like other systems do which allows a message
> based response which allows for future changes (no fixed datastructures),
> and is message based.
>
> Generic netlink has already been used by several other subsystems.

I used netlink in two first versions of task_diag, but then Andy
convinced me that netlink interfaces are not ideal for this case. I
added him into Cс.

Here is a thread with our discussion about using netlink for
task_diag: https://lkml.org/lkml/2015/12/15/520
Can I ask you to read it and give your comments? It would be nice to
find a way how to use netlink sockets instead of creating a new
interface.

Thanks,
Andrew

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: task_diag: add a new interface to get information about  processes Stephen Hemminger <stephen@networkplumber.org> - 2016-05-04 22:30 +0200
  Re: task_diag: add a new interface to get information about processes Andrey Vagin <avagin@openvz.org> - 2016-05-05 00:40 +0200

csiph-web