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

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Andrey Vagin <avagin@openvz.org>
Newsgroups linux.kernel
Subject Re: task_diag: add a new interface to get information about processes
Date Thu, 05 May 2016 00:40:01 +0200
Message-ID <rvdCx-46c-9@gated-at.bofh.it> (permalink)
References <rvbAK-2kO-5@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-transfer-encoding; bh=1OpXFlbO0Xsbb/gb9IBDGRm2bugXzOEUoD6A5sNRJWs=; b=cCy2NYkJhmjJDQZes4MuQGyCoDti+oFVPFDo2VaepTbyWdLQR7PbhyhKOSQydmDKPk TUsPIodKGZdC3I2SIHU/r8Qmj+Jt8SLE8AzrdERAV6rRZF3DU+9Yg9loLErDH5WpTRVl 1TwTLnJORgEy+OTMGoYTgF0/cFO+V9ugAyI6J6hf6drt+eMGK4s1gNL8H1hv0BQdxA/3 JAbm5q+M73Ap1vc50inKgtVi/4r/2EzSNhCnPDbkVtPdL9/A8d/OT+UcLgMq5Hn+mylo v3c2DYJz/GvwUvYN2T9DQgAvtUDtoNxX3ORvx2lTTJ6t9ZCnDhhd5GdaxgU4xN/MuAXh CbOQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=1OpXFlbO0Xsbb/gb9IBDGRm2bugXzOEUoD6A5sNRJWs=; b=JiwLVIqb+KM9WGDaP+9ugcCkeqDLBWEwr8eRo/1uVLrTJvfXSVQb0VcgJPxS1RzPkQ FF8/ABqFsVjlvPYgWngzubXpP95AAK2wYMVt15GHtKXIwKh8KePn4nee6sNl+hUDMxzJ DkX8THa8D0tLSqP/MUxBCeDJaubQGULPlSLvy6ExrrBJulltHgApx4tnfqJ11eIgVy+X DHUjAZGHylRvaGWUzCXsJEojT3EaEzDLIvE2pmN6RJS9dLjxWDnz4xDNq18pjueHN1h6 sHcUC/umKOcqEM+LJB4QF7GFrQ8seiOuHaUqvFVyV4IFDP+VQ/QCcQhLAi6gVM4kTx2z SfyQ==
X-Gm-Message-State AOPr4FXSuVV4etlgw8S60Y8HSUiFdN4ND2AKX8FQCgJr7iBcbj/NdF+fPjXHahs0gQCVGWSsj4HnXG1CizSdKQ==
MIME-Version 1.0
X-Received by 10.112.184.79 with SMTP id es15mr5205921lbc.30.1462401261818; Wed, 04 May 2016 15:34:21 -0700 (PDT)
X-Google-Sender-Auth 61qZoTgDHBfyUZIksYP0gxUJypM
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8BIT
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 25
Organization linux.* mail to news gateway
X-Original-Cc LKML <linux-kernel@vger.kernel.org>, David Miller <davem@davemloft.net>
X-Original-Date Wed, 4 May 2016 15:34:21 -0700
X-Original-Message-ID <CANaxB-w2RZ8WZ0ACP-3M9OJ0vgWRM0d74S2WAVwRRY=gXoR5Zg@mail.gmail.com>
X-Original-References <20160504132245.1d04c131@xeon-e3>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1394759

Show key headers only | 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