!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:Liu Chao <liuchao173@huawei.com> Reviewed-by:
Zheng Zengkai <zhengzengkai@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment