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: <15E46432-D329-40E7-927D-D999551DE865@linux.dev>
Date: Sat, 7 Feb 2026 11:59:01 +0800
From: Muchun Song <muchun.song@...ux.dev>
To: Qi Zheng <qi.zheng@...ux.dev>
Cc: hannes@...xchg.org,
 hughd@...gle.com,
 mhocko@...e.com,
 roman.gushchin@...ux.dev,
 shakeel.butt@...ux.dev,
 david@...nel.org,
 lorenzo.stoakes@...cle.com,
 ziy@...dia.com,
 harry.yoo@...cle.com,
 yosry.ahmed@...ux.dev,
 imran.f.khan@...cle.com,
 kamalesh.babulal@...cle.com,
 axelrasmussen@...gle.com,
 yuanchu@...gle.com,
 weixugc@...gle.com,
 chenridong@...weicloud.com,
 mkoutny@...e.com,
 akpm@...ux-foundation.org,
 hamzamahfooz@...ux.microsoft.com,
 apais@...ux.microsoft.com,
 lance.yang@...ux.dev,
 bhe@...hat.com,
 linux-mm@...ck.org,
 linux-kernel@...r.kernel.org,
 cgroups@...r.kernel.org,
 Qi Zheng <zhengqi.arch@...edance.com>
Subject: Re: [PATCH v4 28/31] mm: workingset: use lruvec_lru_size() to get the
 number of lru pages



> On Feb 5, 2026, at 17:01, Qi Zheng <qi.zheng@...ux.dev> wrote:
> 
> From: Qi Zheng <zhengqi.arch@...edance.com>
> 
> For cgroup v2, count_shadow_nodes() is the only place to read
> non-hierarchical stats (lruvec_stats->state_local). To avoid the need to
> consider cgroup v2 during subsequent non-hierarchical stats reparenting,
> use lruvec_lru_size() instead of lruvec_page_state_local() to get the
> number of lru pages.
> 
> For NR_SLAB_RECLAIMABLE_B and NR_SLAB_UNRECLAIMABLE_B cases, it appears
> that the statistics here have already been problematic for a while since
> slab pages have been reparented. So just ignore it for now.
> 
> Signed-off-by: Qi Zheng <zhengqi.arch@...edance.com>

Acked-by: Muchun Song <muchun.song@...ux.dev>



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ