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


Groups > linux.kernel > #1178705

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

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Andy Lutomirski <luto@amacapital.net>
Newsgroups linux.kernel
Subject Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2)
Date Tue, 07 Jul 2015 18:30:02 +0200
Message-ID <pJDUS-7UN-5@gated-at.bofh.it> (permalink)
References <pJapQ-5WZ-3@gated-at.bofh.it> <pJidI-2LF-21@gated-at.bofh.it> <pJDia-7rq-29@gated-at.bofh.it> <pJDrQ-7uN-21@gated-at.bofh.it> <pJDLc-7RF-35@gated-at.bofh.it>
X-Original-To David Ahern <dsahern@gmail.com>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=GEhJzMRJoYFw9AjgzsJbAuOZyn2mU1sUzfCcySeZ5Hw=; b=gO2ulKNXsGB+MYxRpMjPaQz4GhNv+FH0ntrkIZpCEVyqrFdZuvXD9GuTalLwFzj1HI ObEXKlIHDwoysEtbC7Vz0dRqxqFHV8sRkcYLNqzq4iPOpVWPihhELBwjmAzFkNP7lsQd s0KSzu2beTm02PeFPhhh+KDg95GX3nLGzDPkY01zsbdoloRlSihuijRkY8z/iJ/1SkT0 wvP/cOUSEPFjg/tuMaaed06NWzkZZbf54czslCVHefbePAn73ytb8syknWiBz0LqXWDv /Cw9XufjoN0p/n1SkdNO55hz9dc+E7BzaYLZcMZDWxrBuHCuhrGFSD0ufhhEbHrGJmoF 3M9Q==
X-Gm-Message-State ALoCoQl8ls4YnxVra4PHiQeP+Cx3jiZ4RJQkO737Rra00tqMDij9533iHFF/P8PWlKuxQ85IPtoH
X-Received by 10.152.3.97 with SMTP id b1mr4882092lab.54.1436286265383; Tue, 07 Jul 2015 09:24:25 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
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 35
Organization linux.* mail to news gateway
X-Original-Cc Andrew Vagin <avagin@odin.com>, Andrey Vagin <avagin@openvz.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Linux API <linux-api@vger.kernel.org>, Oleg Nesterov <oleg@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Cyrill Gorcunov <gorcunov@openvz.org>, Pavel Emelyanov <xemul@parallels.com>, Roger Luethi <rl@hellgate.ch>, Arnd Bergmann <arnd@arndb.de>, Arnaldo Carvalho de Melo <acme@kernel.org>, Pavel Odintsov <pavel.odintsov@gmail.com>
X-Original-Date Tue, 7 Jul 2015 09:24:05 -0700
X-Original-Message-ID <CALCETrWRT--XO6jYyno_i0nUZEoRuq3S5_n-qFRSt2rmkd3jMQ@mail.gmail.com>
X-Original-References <1436172445-6979-1-git-send-email-avagin@openvz.org> <CALCETrVg5AyeXW_AGguFoGCPK9_2zeobEgT9JJFsakH6PyQf_A@mail.gmail.com> <20150707154345.GA1593@odin.com> <CALCETrVSRkMSAVPz9JW4XCV7DmrgkyGK54HRUrue2R756f5C=Q@mail.gmail.com> <559BFB9C.5010801@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1178705

Show key headers only | View raw


On Tue, Jul 7, 2015 at 9:17 AM, David Ahern <dsahern@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 code would be
>> considerable shorter, though. :)
>>
>> How would this be a problem if you used plain syscalls?  The user
>> would make a request, and the syscall would tell the user that their
>> result buffer was too small if it was, in fact, too small.
>
>
> It will be impossible to tell a user what sized buffer is needed. The size
> is largely a function of the number of tasks and number of maps per thread
> group and both of those will be changing. With the growing size of systems
> (I was sparc systems with 1024 cpus) the workload can be 10's of thousands
> of tasks each with a lot of maps (e.g., java workloads). That amounts to a
> non-trivial amount of data that has to be pushed to userspace.
>
> One of the benefits of the netlink approach is breaking the data across
> multiple messages and picking up where you left off. That infrastructure is
> already in place.
>

How does picking up where you left off work?  I assumed the interface
was something along the lines of "give me information starting from
pid N", but maybe I missed something.

--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

Re: [PATCH 0/24] kernel: add a netlink interface to get information  about processes (v2) David Ahern <dsahern@gmail.com> - 2015-07-07 18:20 +0200
  Re: [PATCH 0/24] kernel: add a netlink interface to get information  about processes (v2) Andy Lutomirski <luto@amacapital.net> - 2015-07-07 18:30 +0200
    Re: [PATCH 0/24] kernel: add a netlink interface to get information  about processes (v2) David Ahern <dsahern@gmail.com> - 2015-07-07 18:50 +0200

csiph-web