Thread (7 messages) 7 messages, 4 authors, 2025-08-18

[PATCH] man/man2/getrusage.2: clarify ru_maxrss unit as kibibytes (KiB)

From: Your Name <hidden>
Date: 2025-08-18 06:12:09
Subsystem: the rest · Maintainer: Linus Torvalds

From: Alex Yang <redacted>

The ru_maxrss field was previously documented as using "kilobytes" as its unit. However, the value is actually in multiples of 1024 bytes, which is correctly referred to as "kibibytes" (KiB) according to the IEC standard. This change updates the documentation to use the precise term.

Reference:
https://en.wikipedia.org/wiki/Kibibyte
---
 man/man2/getrusage.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man/man2/getrusage.2 b/man/man2/getrusage.2
index 34e81f540..13c405d0e 100644
--- a/man/man2/getrusage.2
+++ b/man/man2/getrusage.2
@@ -88,7 +88,7 @@ expressed in a
 structure (seconds plus microseconds).
 .TP
 .IR ru_maxrss " (since Linux 2.6.32)"
-This is the maximum resident set size used (in kilobytes).
+This is the maximum resident set size used (in kibibytes).
 For
 .BR RUSAGE_CHILDREN ,
 this is the resident set size of the largest child, not the maximum
-- 
2.39.5 (Apple Git-154)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help