linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vishal Chourasia <vishalc@linux.ibm.com>
To: "Michal Koutný" <mkoutny@suse.com>
Cc: tj@kernel.org, hannes@cmpxchg.org, corbet@lwn.net,
	cgroups@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] doc,cgroup-v2: memory.max is reported in multiples of page size
Date: Thu, 10 Apr 2025 19:28:18 +0530	[thread overview]
Message-ID: <Z_fOenjfni55JsbV@linux.ibm.com> (raw)
In-Reply-To: <la6q2koug4ohzcfc5eqguod7x6fdwhndqkhzfrttsfnjo5fbb3@xzxodtpjl6ww>

On Thu, Apr 10, 2025 at 03:47:06PM +0200, Michal Koutný wrote:
> Hello.
> 
> On Thu, Apr 10, 2025 at 07:04:40PM +0530, Vishal Chourasia <vishalc@linux.ibm.com> wrote:
> > Update documentation for memory.max to clarify that the reported value
> > is in multiples of the system page_size. The following example
> > demonstrates this behavior:
> 
> This applies to any of page_counter-based attribute, not only
> memory.max.
> 
Yes. This is already documented, and I missed it.

From Documentation/admin-api/cgroup-v2.rst:
...
Memory Interface Files
~~~~~~~~~~~~~~~~~~~~~~

All memory amounts are in bytes.  If a value which is not aligned to
PAGE_SIZE is written, the value may be rounded up to the closest
PAGE_SIZE multiple when read back.
...
> > --- a/Documentation/admin-guide/cgroup-v2.rst
> > +++ b/Documentation/admin-guide/cgroup-v2.rst
> > @@ -1316,6 +1316,9 @@ PAGE_SIZE multiple when read back.
> >  	Caller could retry them differently, return into userspace
> >  	as -ENOMEM or silently ignore in cases like disk readahead.
> >  
> > +        Note that the value set for memory.max is reported in units
> > +        corresponding to the system's page size.
> > +
> 
> There seems to be mismatch in whitespace to surrounding text.
> 
> Also the wording would be more precise if it referred to 'multiples',
> not 'units' (units are simply bytes).
> 
> Michal
>
Got it. But, it seems this patch is redundant. So, I won't be sending
another version.

Thanks,
Vishal


      reply	other threads:[~2025-04-10 13:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-10 13:34 [PATCH] doc,cgroup-v2: memory.max is reported in multiples of page size Vishal Chourasia
2025-04-10 13:47 ` Michal Koutný
2025-04-10 13:58   ` Vishal Chourasia [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=Z_fOenjfni55JsbV@linux.ibm.com \
    --to=vishalc@linux.ibm.com \
    --cc=cgroups@vger.kernel.org \
    --cc=corbet@lwn.net \
    --cc=hannes@cmpxchg.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkoutny@suse.com \
    --cc=tj@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;
as well as URLs for NNTP newsgroup(s).