Skip to content
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

Merged
merged 46 commits into from
Nov 13, 2024
Merged

Feat: Support cgroupv2 #327

merged 46 commits into from
Nov 13, 2024

Conversation

wtr0504
Copy link
Contributor

@wtr0504 wtr0504 commented Oct 2, 2024

增加对cgroupV2的支持,device已实现

@wtr0504 wtr0504 force-pushed the master branch 2 times, most recently from c994e9b to e5cdfcd Compare October 22, 2024 13:03
@wtr0504 wtr0504 force-pushed the master branch 2 times, most recently from c29ba6e to 4e590d4 Compare October 22, 2024 13:09
@wtr0504 wtr0504 force-pushed the master branch 3 times, most recently from 5004918 to f8827fc Compare October 22, 2024 15:43
…more cgroups load bpf_obj once)

reslove comment

reslove comment

reslove comment

fix bug

delete BPF_DEBUG compile option

resolve comment

comment
// goto after_migrate;
// }
// if ((err = cgroup_get_value_uint64(memory_controller,
// "memory.move_charge_at_immigrate",
Copy link
Collaborator

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 这个东西有处理吗

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前一直是注释的,俊霖之前说删了,看要不要加上

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

主要是这个功能 得调研下 我觉得是应该把这个选项开了

@wtr0504 wtr0504 force-pushed the master branch 2 times, most recently from 38a066e to 3c33dff Compare November 12, 2024 14:52
commit

 comment

 comment
@L-Xiafeng L-Xiafeng changed the title Feat: support cgroupv2 Feat: Support cgroupv2 Nov 13, 2024
L-Xiafeng
L-Xiafeng previously approved these changes Nov 13, 2024
Copy link
Collaborator

@Nativu5 Nativu5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

基本没有问题👍,还有一些小细节需要修改。

RileyWen
RileyWen previously approved these changes Nov 13, 2024
@wtr0504 wtr0504 dismissed stale reviews from RileyWen and L-Xiafeng via c14f275 November 13, 2024 08:16
@L-Xiafeng L-Xiafeng merged commit 9ee70b9 into PKUHPC:master Nov 13, 2024
1 check failed
huerni pushed a commit that referenced this pull request Jan 7, 2025
* 完成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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build system change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants