getrlimit(2): document RLIMIT_PIPEBUF

(cherry picked from commit 54a8d1fbbf65e976132809718525ba051a5525cf)
This commit is contained in:
Konstantin Belousov 2024-09-10 07:11:55 +03:00
parent b7eecc86c3
commit d20f0dae2f

View file

@ -86,6 +86,16 @@ The maximum number of open files for this process.
The maximum number of simultaneous processes for this user id.
.It Dv RLIMIT_NPTS
The maximum number of pseudo-terminals this user id is allowed to create.
.It Dv RLIMIT_PIPEBUF
The maximum total size of in-kernel buffers for bi-directional pipes/fifos
that this user id is allowed to consume.
The buffers for kernel FIFOs created on the first open of a filesystem
object created by
.Pq Xr mkfifo 2
are also charged to the user ID of the process opening it,
not the FIFO's filesystem owner.
Despite somewhat unexpected, this is in fact fair, since user of the fifo
is not necessary its creator.
.It Dv RLIMIT_RSS
When there is memory pressure and swap is available, prioritize eviction of
a process' resident pages beyond this amount (in bytes).