Skip to content

Commit

Permalink
temp remove cpu controller, as it seems to break in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Jun 4, 2024
1 parent 3828a4a commit eba3e4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions judge/runguard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,10 @@ void cgroup_create()
verbose("cpuset undefined");
}

if ( (cg_controller = cgroup_add_controller(cg, "cpu"))==nullptr ) {
error(0,"cgroup_add_controller cpu");
}
// TODO
// if ( (cg_controller = cgroup_add_controller(cg, "cpu"))==nullptr ) {
// error(0,"cgroup_add_controller cpu");
// }
if (!is_cgroup_v2) {
if ((cg_controller = cgroup_add_controller(cg, "cpuacct")) == nullptr) {
error(0, "cgroup_add_controller cpuacct");
Expand Down

0 comments on commit eba3e4f

Please sign in to comment.