Linux Manual Pages development
 help / color / mirror / Atom feed
* [PATCH] man/man2/getrusage.2: clarify ru_maxrss unit as kibibytes (KiB)
@ 2025-08-18  6:12 Your Name
  2025-08-18  6:30 ` Alejandro Colomar
  0 siblings, 1 reply; 7+ messages in thread
From: Your Name @ 2025-08-18  6:12 UTC (permalink / raw)
  To: alx; +Cc: linux-man, Alex Yang

From: Alex Yang <himself65@outlook.com>

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)


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-08-18  9:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18  6:12 [PATCH] man/man2/getrusage.2: clarify ru_maxrss unit as kibibytes (KiB) Your Name
2025-08-18  6:30 ` Alejandro Colomar
2025-08-18  6:52   ` Collin Funk
2025-08-18  6:58     ` Alejandro Colomar
2025-08-18  7:59       ` [PATCH] man/man2/getrusage.2: clarify ru_maxrss unit as KiB Alex Yang
2025-08-18  9:36         ` Alejandro Colomar
2025-08-18  8:19       ` Alex Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox