From: Alex Yang <himself65@outlook.com>
To: alx@kernel.org
Cc: collin.funk1@gmail.com, himself6565@gmail.com,
himself65@outlook.com, linux-man@vger.kernel.org
Subject: Re: [PATCH] man/man2/getrusage.2: clarify ru_maxrss unit as KiB
Date: Mon, 18 Aug 2025 01:19:22 -0700 [thread overview]
Message-ID: <20250818081922.43305-1-himself65@outlook.com> (raw)
In-Reply-To: <jclco3uxvj7drormblgik6fsa36aemanyxqaf44mhaqgbwszye@nuhauaulbrlg>
Yes, I think the related code is from getrusage in sys.c:
https://github.com/torvalds/linux/blob/c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9/kernel/sys.c#L1911
This code shows that ru_maxrss is reported in units of 1024 bytes, which means it is in kibibytes (KiB), not kilobytes (KB).
prev parent reply other threads:[~2025-08-18 8:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250818081922.43305-1-himself65@outlook.com \
--to=himself65@outlook.com \
--cc=alx@kernel.org \
--cc=collin.funk1@gmail.com \
--cc=himself6565@gmail.com \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox