Unverified Commit c0a50b1e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!215 cgroupv1使能cgroup writeback的功能

Merge Pull Request from: @lujialin2 
 
In cgroupv1, cgroup writeback is not supported for two problems:
1) Blkcg_css and memcg_css are mounted on different cgroup trees. Therefore, blkcg_css cannot be found according to a certain memcg_css.
2) Buffer I/O is worked by kthread, which is in the root_blkcg. Therefore, blkcg cannot limit wbps and wiops of buffer I/O.
We solve the two problems and support cgroup writeback on cgroupv1.
CONFIG: CONFIG_CGROUP_V1_WRITEBACK
startup params: cgroup1_writeback
If someone want to support cgroup writeback in cgroupv1, turn on CONFIG_CGROUP_V1_WRITEBACK; add cgroup1_writeback;mount memcg and blkcg on cgroupv1;
If someone want to attach a cerntain blkcg to a memcg, just echo the inode of the blkcg into memory_wb_blkcg_ino of memcg.
 
 
Link:https://gitee.com/openeuler/kernel/pulls/215

 
Reviewed-by: default avatarLiu Chao <liuchao173@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents a3c1378d 644547a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment