Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1394698 > unrolled thread
| Started by | Stephen Hemminger <stephen@networkplumber.org> |
|---|---|
| First post | 2016-05-04 22:30 +0200 |
| Last post | 2016-05-05 00:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
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
| From | Stephen Hemminger <stephen@networkplumber.org> |
|---|---|
| Date | 2016-05-04 22:30 +0200 |
| Subject | Re: task_diag: add a new interface to get information about processes |
| Message-ID | <rvbAK-2kO-5@gated-at.bofh.it> |
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.
[toc] | [next] | [standalone]
| From | Andrey Vagin <avagin@openvz.org> |
|---|---|
| Date | 2016-05-05 00:40 +0200 |
| Subject | Re: task_diag: add a new interface to get information about processes |
| Message-ID | <rvdCx-46c-9@gated-at.bofh.it> |
| In reply to | #1394698 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web