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 --]
prev parent reply other threads:[~2017-09-07 10:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 19:05 Alexey Dobriyan
2017-09-05 19:06 ` [PATCH 2/2] fdmap(2) Alexey Dobriyan
2017-09-05 22:53 ` [PATCH 1/2] pidmap(2) Andrew Morton
2017-09-05 23:02 ` Randy Dunlap
2017-09-06 8:30 ` Thomas Gleixner
2017-09-06 9:04 ` Alexey Dobriyan
2017-09-07 2:04 ` Andy Lutomirski
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-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome