Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
  • * Re: [PATCH v2 0/2] mm: fix node reclaim swappiness handling
           [not found] <20260716031729.1064007-1-ridong.chen@linux.dev>
           [not found] ` <20260716031729.1064007-3-ridong.chen@linux.dev>
    @ 2026-07-23  1:13 ` Ridong Chen
      2026-07-23  1:54   ` Andrew Morton
           [not found] ` <20260716031729.1064007-2-ridong.chen@linux.dev>
      2 siblings, 1 reply; 6+ messages in thread
    From: Ridong Chen @ 2026-07-23  1:13 UTC (permalink / raw)
      To: Johannes Weiner, Michal Hocko, Roman Gushchin, Shakeel Butt,
    	Andrew Morton, Chris Li, Kairui Song
      Cc: Muchun Song, Kemeng Shi, Nhat Pham, Baoquan He, Barry Song,
    	Youngjun Park, David Hildenbrand, Qi Zheng, Lorenzo Stoakes,
    	Axel Rasmussen, Yuanchu Xie, Wei Xu, Davidlohr Bueso, cgroups,
    	linux-mm, linux-kernel, Ridong
    
    
    
    On 7/16/2026 11:17 AM, Ridong wrote:
    > From: Ridong <chenridong@xiaomi.com>
    > 
    > The per-node proactive reclaim interface
    > (/sys/devices/system/node/nodeX/reclaim) accepts a swappiness parameter,
    > but it is silently ignored when CONFIG_MEMCG is disabled. The root cause
    > is that sc_swappiness() has separate implementations for CONFIG_MEMCG and
    > !CONFIG_MEMCG, and the latter never checks proactive_swappiness.
    > 
    > Patch 1 moves mem_cgroup_swappiness() and vm_swappiness out of the public
    > include/linux/swap.h into the mm-private mm/swap.h, and makes the helper
    > handle both CONFIG_MEMCG and !CONFIG_MEMCG in a single inline function.
    > This is a prerequisite for unifying sc_swappiness().
    > 
    > Patch 2 consolidates sc_swappiness() into a single definition that works
    > regardless of CONFIG_MEMCG, fixing the node reclaim swappiness bug.
    > 
    > ---
    > 
    > v1 -> v2:
    >   - Move mem_cgroup_swappiness() and vm_swappiness to mm/swap.h instead of
    >     include/linux/memcontrol.h. Suggested by Barry Song.
    >   - Correct fix tag for patch 2.
    > 
    > v1: https://lore.kernel.org/all/20260711091157.306070-1-ridong.chen@linux.dev/
    > 
    > Ridong Chen (2):
    >    memcg: move mem_cgroup_swappiness and vm_swappiness to mm/swap.h
    >    mm: vmscan: fix node reclaim ignoring swappiness parameter
    > 
    >   include/linux/memcontrol.h |  4 ++--
    >   include/linux/swap.h       | 19 -------------------
    >   mm/memcontrol.c            |  4 ++--
    >   mm/swap.h                  | 20 ++++++++++++++++++++
    >   mm/vmscan.c                | 19 +++++++------------
    >   5 files changed, 31 insertions(+), 35 deletions(-)
    > 
    
    Hello all,
    
    Can this series be applied?
    
    Just a reminder in case this gets buried.
    
    -- 
    Best regards
    Ridong
    
    
    
    ^ permalink raw reply	[flat|nested] 6+ messages in thread
  • [parent not found: <20260716031729.1064007-2-ridong.chen@linux.dev>]

  • end of thread, other threads:[~2026-07-23  2:14 UTC | newest]
    
    Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20260716031729.1064007-1-ridong.chen@linux.dev>
         [not found] ` <20260716031729.1064007-3-ridong.chen@linux.dev>
         [not found]   ` <7ddf3eee-5fe2-45f7-8614-c8936a039e04@linux.dev>
         [not found]     ` <a5eb5433-cf6c-40ee-b14e-128a8bcc85bf@linux.dev>
         [not found]       ` <94a489d5-8b02-46e6-92d2-ccb85f556769@linux.dev>
    2026-07-16 11:17         ` [PATCH v2 2/2] mm: vmscan: fix node reclaim ignoring swappiness parameter Ridong Chen
    2026-07-17  2:27           ` Qi Zheng
    2026-07-23  1:13 ` [PATCH v2 0/2] mm: fix node reclaim swappiness handling Ridong Chen
    2026-07-23  1:54   ` Andrew Morton
         [not found] ` <20260716031729.1064007-2-ridong.chen@linux.dev>
    2026-07-23  1:59   ` [PATCH v2 1/2] memcg: move mem_cgroup_swappiness and vm_swappiness to mm/swap.h Johannes Weiner
    2026-07-23  2:14     ` Ridong Chen
    

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