Thread (12 messages) 12 messages, 7 authors, 2017-09-07

Re: [PATCH 1/2] pidmap(2)

flat view

From: Dmitry V. Levin <hidden>
Date: 2017-09-07 10:08:12
Also in: lkml

On Tue, Sep 05, 2017 at 10:05:00PM +0300, Alexey Dobriyan wrote:
From: Tatsiana Brouka <redacted>

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help