[Devel] [PATCH RHEL10 COMMIT] mm/memcontrol: add memory.numa_migrate to cgroup-v2

Konstantin Khorenko khorenko at virtuozzo.com
Fri Sep 5 22:58:05 MSK 2025


The commit is pushed to "branch-rh10-6.12.0-55.13.1.2.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.2.3.vz10
------>
commit a6115762990584db1597ea3a38a18f7e4fd91783
Author: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Date:   Tue Sep 2 18:59:11 2025 +0800

    mm/memcontrol: add memory.numa_migrate to cgroup-v2
    
    https://virtuozzo.atlassian.net/browse/VSTOR-114298
    Fixes: c92459bc18307 ("mm: memcontrol: add memory.numa_migrate file")
    Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
    
    Feature: mm: interface to migrate memory between NUMA nodes upon userspace request
---
 mm/memcontrol.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 3563586ff93fd..4a2994eb6e377 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5226,6 +5226,11 @@ static struct cftype memory_files[] = {
 		.seq_show = memory_numa_stat_show,
 	},
 #endif
+	{
+		.name = "numa_migrate",
+		.flags = CFTYPE_NOT_ON_ROOT,
+		.write = memcg_numa_migrate_write,
+	},
 	{
 		.name = "oom.group",
 		.flags = CFTYPE_NOT_ON_ROOT | CFTYPE_NS_DELEGATABLE,


More information about the Devel mailing list