Commit f0709f0
committed
docs: clarify byte units for size-based ulimits (memlock)
The values for size-based ulimits, such as memlock, data, and fsize,
are passed to the setrlimit(2) syscall as-is, and are therefore
expressed in bytes. This differs from the ulimit shell builtin, which
reports several of these limits in kilobytes, which has proven to be
a source of confusion (--ulimit memlock=4096 results in a 4 KiB limit,
reported by "ulimit -l" as "4").
Document the units explicitly, mention that values must be plain
integers without unit suffixes, and add a memlock example showing
the byte value alongside the corresponding "ulimit -l" output.
Signed-off-by: Dean Chen <862469039@qq.com>1 parent 7a54334 commit f0709f0
2 files changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1370 | 1370 | | |
1371 | 1371 | | |
1372 | 1372 | | |
1373 | | - | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1374 | 1388 | | |
1375 | 1389 | | |
1376 | 1390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
743 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
744 | 752 | | |
745 | 753 | | |
746 | 754 | | |
| |||
0 commit comments