Re: [PATCH] mm/mempolicy: add sysfs interface to override NUMA node bandwidth

From: Yee Li

Date: Thu Mar 12 2026 - 06:26:56 EST


> How to use this new interface? Can you provide an example?

Hi Ying,
A quick example:

1. Check current (original) bandwidth
cd /sys/kernel/mm/mempolicy/weighted_interleave
$ cat bw_node*
20000(MB/s)
10000(MB/s)
0

2. Check current interleave weights
$ cat node*
21
10
1

3. Override a node's bandwidth
$ echo 10000 > bw_node2

4. After override, check results:
$ cat bw_node*
20000(MB/s)
10000(MB/s)
10000(MB/s)

$ cat node*
2
1
1