pid_namespaces.7: Note that /proc/sys/kernel/ns_last_pid is virtualized per PID NS

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-05-11 14:07:36 +02:00
parent 439526d153
commit 3f298932bd
1 changed files with 3 additions and 1 deletions

View File

@ -362,7 +362,9 @@ when a process wants to discover its PID in other namespaces.
.TP
.BR /proc/sys/kernel/ns_last_pid " (since Linux 3.3)"
.\" commit b8f566b04d3cddd192cfd2418ae6d54ac6353792
This file displays the last PID that was allocated in this PID namespace.
This file
(which is virtualized per PID namespace)
displays the last PID that was allocated in this PID namespace.
When the next PID is allocated,
the kernel will search for the lowest unallocated PID
that is greater than this value,