lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAN+CAwM1FJCaGrdBMarD2YthX8jcBEKx9Sd07yj-ZcpDxinURQ@mail.gmail.com>
Date: Wed, 30 Oct 2024 16:43:42 -0400
From: Joshua Hahn <joshua.hahnjy@...il.com>
To: Johannes Weiner <hannes@...xchg.org>
Cc: Michal Hocko <mhocko@...e.com>, nphamcs@...il.com, shakeel.butt@...ux.dev, 
	roman.gushchin@...ux.dev, muchun.song@...ux.dev, tj@...nel.org, 
	lizefan.x@...edance.com, mkoutny@...e.com, corbet@....net, lnyng@...a.com, 
	akpm@...ux-foundation.org, cgroups@...r.kernel.org, linux-mm@...ck.org, 
	linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org, kernel-team@...a.com
Subject: Re: [PATCH v3 1/1] memcg/hugetlb: Adding hugeTLB counters to memcg

On Wed, Oct 30, 2024 at 2:30 PM Johannes Weiner <hannes@...xchg.org> wrote:
>
> Joshua, can you please include something like this at the end:
>
> lruvec_stat_mod_folio() keys off of folio->memcg linkage, which is
> only set up if CGRP_ROOT_MEMORY_HUGETLB_ACCOUNTING is switched
> on. This ensures that memory.stat::hugetlb is in sync with the hugetlb
> share of memory.current.

Hello Andrew,

I saw that it was merged into mm-unstable earlier yesterday. Would it
be possible
to add this block of text to the patch description right before the footnotes?

3. Implementation Details:
In the alloc / free hugetlb functions, we call lruvec_stat_mod_folio
regardless of whether memcg accounts hugetlb. lruvec_stat_mod_folio
keys off of folio->memcg which is only set up if the
CGRP_ROOT_MEMORY_HUGETLB_ACCOUTING cgroup mount option is used, so
it will not try to accumulate hugetlb unless the flag is set.
This also ensures that memory.stat::hugetlb is the same as
the share of memory.current that is used by hugetlb pages.

And could you also update the list of signatures to reflect the
responses on this version?
Suggested-by: Nhat Pham <nphamcs@...il.com>
Suggested-by: Shakeel Butt <shakeel.butt@...ux.dev>
Suggested-by: Johannes Weiner <hannes@...xchg.org>
Acked-by: Shakeel Butt <shakeel.butt@...ux.dev>
Acked-by: Johannes Weiner <hannes@...xchg.org>
Acked-by: Chris Down <chris@...isdown.name>
Reviewed-by: Roman Gushchin <roman.gushchin@...ux.dev>
Reviewed-by: Nhat Pham <nphamcs@...il.com>
Signed-off-by: Joshua Hahn <joshua.hahnjy@...il.com>

Thank you so much, I hope you have a great rest of your day.
Joshua

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ