linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] vmscan: enforce mems_effective during demotion
@ 2025-04-19  5:38 Gregory Price
  2025-04-19  5:38 ` [PATCH v3 1/2] cpuset: rename cpuset_node_allowed to cpuset_current_node_allowed Gregory Price
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Gregory Price @ 2025-04-19  5:38 UTC (permalink / raw)
  To: linux-mm
  Cc: cgroups, linux-kernel, kernel-team, longman, hannes, mhocko,
	roman.gushchin, shakeel.butt, muchun.song, tj, mkoutny, akpm

Change reclaim to respect cpuset.mems_effective during demotion when
possible. Presently, reclaim explicitly ignores cpuset.mems_effective
when demoting, which may cause the cpuset settings to violated.

Implement cpuset_node_allowed() to check the cpuset.mems_effective
associated wih the mem_cgroup of the lruvec being scanned.

This requires renaming the existing cpuset_node_allowed() to be
cpuset_current_now_allowed() - which is more descriptive anyway - to
implement the new cpuset_node_allowed() which takes a target cgroup.

v3:
- remove cgroup indirection, call cpuset directly from memcontrol
- put mem_cgroup_node_allowed in memcontrol.c to reduce cpuset.h
  include scope
- return true if mems_effective is empty, and don't walk the parents
  as recommended by Waiman Long.

Gregory Price (2):
  cpuset: rename cpuset_node_allowed to cpuset_current_node_allowed
  vmscan,cgroup: apply mems_effective to reclaim

 .../ABI/testing/sysfs-kernel-mm-numa          | 14 ++++---
 include/linux/cpuset.h                        |  9 +++-
 include/linux/memcontrol.h                    |  6 +++
 kernel/cgroup/cpuset.c                        | 25 ++++++++++-
 mm/memcontrol.c                               |  6 +++
 mm/page_alloc.c                               |  4 +-
 mm/vmscan.c                                   | 41 +++++++++++--------
 7 files changed, 78 insertions(+), 27 deletions(-)

-- 
2.49.0



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-04-22  1:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-19  5:38 [PATCH v3 0/2] vmscan: enforce mems_effective during demotion Gregory Price
2025-04-19  5:38 ` [PATCH v3 1/2] cpuset: rename cpuset_node_allowed to cpuset_current_node_allowed Gregory Price
2025-04-19 18:37   ` Shakeel Butt
2025-04-19  5:38 ` [PATCH v3 2/2] vmscan,cgroup: apply mems_effective to reclaim Gregory Price
2025-04-19 18:48   ` Shakeel Butt
2025-04-20  0:14     ` Waiman Long
2025-04-21 17:39       ` Shakeel Butt
2025-04-21 22:59         ` Gregory Price
2025-04-21 23:15           ` Shakeel Butt
2025-04-21 23:58             ` Gregory Price
2025-04-22  0:10               ` Shakeel Butt
2025-04-22  0:39                 ` Waiman Long
2025-04-22  0:35               ` Waiman Long
2025-04-22  1:00                 ` Gregory Price
2025-04-22  0:10             ` Waiman Long
2025-04-22  0:16               ` Shakeel Butt
2025-04-20  0:31   ` Waiman Long
2025-04-20 23:59     ` Gregory Price
2025-04-21 23:37   ` Shakeel Butt
2025-04-19 17:21 ` [PATCH v3 0/2] vmscan: enforce mems_effective during demotion Tejun Heo

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