All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: akpm@linux-foundation.org,
	Tatsiana Brouka <Tatsiana_Brouka@epam.com>,
	linux-kernel@vger.kernel.org, linux-api@vger.kernel.org,
	Aliaksandr Patseyenak <Aliaksandr_Patseyenak1@epam.com>,
	Andrey Vagin <avagin@openvz.org>
Subject: Re: [PATCH 1/2] pidmap(2)
Date: Thu, 7 Sep 2017 13:08:09 +0300	[thread overview]
Message-ID: <20170907100809.GD27490@altlinux.org> (raw)
In-Reply-To: <20170905190500.GA13746@avx2>

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

On Tue, Sep 05, 2017 at 10:05:00PM +0300, Alexey Dobriyan wrote:
> From: Tatsiana Brouka <Tatsiana_Brouka@epam.com>
> 
> Implement system call for bulk retrieveing of pids in binary form.
> 
> Using /proc is slower than necessary: 3 syscalls + another 3 for each thread +
> converting with atoi().
> 
> /proc may be not mounted especially in containers. Natural extension of
> hidepid=2 efforts is to not mount /proc at all.
> 
> It could be used by programs like ps, top or CRIU. Speed increase will
> become more drastic once combined with bulk retrieval of process statistics.

What could give a noticeable performance gain in a less ridiculous way
is an interface like task_diag, see https://lkml.org/lkml/2016/4/11/924 .


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

      parent reply	other threads:[~2017-09-07 10:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-05 19:05 [PATCH 1/2] pidmap(2) Alexey Dobriyan
2017-09-05 19:05 ` Alexey Dobriyan
2017-09-05 19:06 ` [PATCH 2/2] fdmap(2) Alexey Dobriyan
2017-09-05 19:06   ` Alexey Dobriyan
2017-09-05 22:53 ` [PATCH 1/2] pidmap(2) Andrew Morton
     [not found]   ` <20170905155320.a683a4853b21a3be32d8b529-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2017-09-05 23:02     ` Randy Dunlap
2017-09-05 23:02       ` Randy Dunlap
     [not found]       ` <d538b917-3e3e-827c-7ca0-5493961cf6f1-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2017-09-06  8:30         ` Thomas Gleixner
2017-09-06  8:30           ` Thomas Gleixner
2017-09-06  9:04         ` Alexey Dobriyan
2017-09-06  9:04           ` Alexey Dobriyan
     [not found]           ` <CACVxJT_vg7DnxSGmMtRT5aLCL=jutD94-yXaNOBwrJc-G+g_1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-07  2:04             ` Andy Lutomirski
2017-09-07  2:04               ` Andy Lutomirski
     [not found]               ` <CALCETrUFnfncs9QdZ4LTeFemVTCx-27bu88M=3U=RKBT8Oykwg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-07  5:06                 ` Djalal Harouni
2017-09-07  5:06                   ` Djalal Harouni
2017-09-07  9:47                   ` Alexey Dobriyan
2017-09-07  9:43               ` Alexey Dobriyan
2017-09-06  8:55     ` Alexey Dobriyan
2017-09-06  8:55       ` Alexey Dobriyan
2017-09-07 10:08 ` Dmitry V. Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170907100809.GD27490@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=Aliaksandr_Patseyenak1@epam.com \
    --cc=Tatsiana_Brouka@epam.com \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=avagin@openvz.org \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.