arm64/mpam: resctrl: Support priority and hardlimit(Memory bandwidth) configuration
hulk inclusion
category: feature
bugzilla: 34278
CVE: NA
-------------------------------------------------
Currently configuration control type is devided into three classes: COMMON,
PRIORITY and HARDLIMIT, capacities' features for mount options is stored
in ctrl_extend_bits field live in resctrl resource structure to figure
out which configuration type is allowed to apply, when writing schemata
sysfile, all related configurations' content from corresponding configuration
array will be updated and applied once time.
we can set configuration like this:
e.g.
> mount -t resctrl resctrl /sys/fs/resctrl && cd /sys/fs/resctrl -o hardlimit
> cat schemata
L3:0=7fff;1=7fff;2=7fff;3=7fff
MB:0=100;1=100;2=100;3=100
MBHDL:0=1;1=1;2=1;3=1
> echo 'MB:0=10' > schemata && echo 'MBHDL:0=0' > schemata # no hardlimit
This also deletes opt_list no longer needed that used as organizing
different control types, now we can check supports from ctrl_extend_bits
and do extended control-type works by schema list.
Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: NCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
Showing
想要评论请 注册 或 登录