Commit 58e843d9 authored by Wang ShaoBo's avatar Wang ShaoBo Committed by Yang Yingliang
Browse files

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: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 703047b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment