-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Support cgroupv2 #327
Conversation
c994e9b
to
e5cdfcd
Compare
c29ba6e
to
4e590d4
Compare
5004918
to
f8827fc
Compare
resolve comment resolve commit
…more cgroups load bpf_obj once) reslove comment reslove comment reslove comment fix bug delete BPF_DEBUG compile option resolve comment comment
src/Craned/CgroupManager.cpp
Outdated
// goto after_migrate; | ||
// } | ||
// if ((err = cgroup_get_value_uint64(memory_controller, | ||
// "memory.move_charge_at_immigrate", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memory.move_charge_at_immigrate 这个东西有处理吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前一直是注释的,俊霖之前说删了,看要不要加上
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
主要是这个功能 得调研下 我觉得是应该把这个选项开了
38a066e
to
3c33dff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
基本没有问题👍,还有一些小细节需要修改。
* 完成CgroupV2除devices的支持 * 完成对CgroupV2的支持(devices除外) * fix bug * check name * recover config.yaml * get master config.yaml * fix undefined func * solve comments * complete devices support in cgroupV2 by using bpf complete devices support in cgroupV2 by using bpf complete devices support in cgroupV2 by using bpf * rm cmake order * fix bug in bpf dev_map * resolve comment and test multitask resolve comment * refactor Cgroup and reslove comment reslove comment reslove comment reslove comment reslove commit reslove comment reslove comment reslove comment reslove comment reslove comment modify bpf cmake * check and set compile for project * reslove comment of checking compiler version and handling device run_time error in V2 format * resolve comment and modify device access logic on V1 and V2 resolve comment resolve commit * check name * add dynamic load log level in bpf.o,modify bpf_obj load logic(one or more cgroups load bpf_obj once) reslove comment reslove comment reslove comment fix bug delete BPF_DEBUG compile option resolve comment comment * comment * resolve comment * 完成CgroupV2除devices的支持 * 完成对CgroupV2的支持(devices除外) * fix bug * recover config.yaml * get master config.yaml * fix undefined func * solve comments * complete devices support in cgroupV2 by using bpf complete devices support in cgroupV2 by using bpf complete devices support in cgroupV2 by using bpf * rm cmake order * fix bug in bpf dev_map * resolve comment and test multitask resolve comment * refactor Cgroup and reslove comment reslove comment reslove comment reslove comment reslove commit reslove comment reslove comment reslove comment reslove comment reslove comment modify bpf cmake * check and set compile for project * reslove comment of checking compiler version and handling device run_time error in V2 format * resolve comment and modify device access logic on V1 and V2 resolve comment resolve commit * check name * add dynamic load log level in bpf.o,modify bpf_obj load logic(one or more cgroups load bpf_obj once) reslove comment reslove comment reslove comment fix bug delete BPF_DEBUG compile option resolve comment comment * comment * resolve comment * add v2 option CRANE_ENABLE_CGROUP_V2 and communicate with CRANE_USE_SYSTEM_LIBCGROUP * comment commit comment comment * rm pkg check libcgroup * comment * comment * add memory.move_charge_at_immigrate todo
增加对cgroupV2的支持,device已实现