docs: rlimit: improve text and use base-2 units (#6894)

The base-2 units are more accurate, as `--rlimit-as=1K` is equivalent to
`--rlimit-as=1024`, not `--rlimit-as=1000`, for example.

This is a follow-up to #6891.

Relates to #4315.
This commit is contained in:
Kelvin M. Klann 2025-09-09 17:47:30 +00:00 committed by GitHub
parent 45229e0f9b
commit ad797d7380
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2577,7 +2577,8 @@ $ firejail \-\-restrict-namespaces=user,net
.TP
\fB\-\-rlimit-as=number
Set the maximum size of the process's virtual memory (address space) in bytes.
Use K(ilobyte), M(egabyte) or G(igabyte) for size suffix (base 1024).
You can use K(ibibyte), M(ebibyte) or G(ibibyte) as a suffix, such as "100M"
(which is equivalent to 104857600 bytes).
.TP
\fB\-\-rlimit-cpu=number
@ -2591,7 +2592,8 @@ track of CPU seconds for each process independently.
.TP
\fB\-\-rlimit-fsize=number
Set the maximum file size that can be created by a process.
Use K(ilobyte), M(egabyte) or G(igabyte) for size suffix (base 1024).
You can use K(ibibyte), M(ebibyte) or G(ibibyte) as a suffix, such as "100M"
(which is equivalent to 104857600 bytes).
.TP
\fB\-\-rlimit-nofile=number
Set the maximum number of files that can be opened by a process.