Commit ddcc4e0
committed
common/pkg/cgroups: Remove linuxCpusetHandler.Create and cpusetCopyFromParent
The manual cpusetCopyFromParent function was needed for cgroups v1 to
populate cpuset.cpus and cpuset.mems from parent cgroups. In cgroups v2,
the kernel automatically handles cpuset inheritance through the
cpuset.cpus.effective and cpuset.mems.effective interfaces.
When fs2.NewManager().Set() is called with cpuset resources, it directly
writes the values to cpuset.cpus and cpuset.mems if provided. If not
provided, the kernel ensures child cgroups have valid effective cpusets by
automatically inheriting from their parent.
Signed-off-by: Lokesh Mandvekar <[email protected]>1 parent 3fe402b commit ddcc4e0
2 files changed
+0
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | 448 | | |
489 | 449 | | |
490 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| |||
0 commit comments