-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support cgroup v1 mounted with noprefix
Android mounts the v1 cpuset cgroup with the noprefix option. As a result, runc first attempts to access cpuset files using the prefix format (e.g., cpuset.cpus). If this fails, it falls back to accessing them without the prefix (e.g., cpus). Once a successful access method is determined, it is cached and used for all subsequent operations. Only the v1 cpuset cgroup is allowed to mount with noprefix. See kernel source: https://github.com/torvalds/linux/blob/2e1b3cc9d7f790145a80cb705b168f05dab65df2/kernel/cgroup/cgroup-v1.c#L1070. Cpuset cannot be mounted with and without prefix simultaneously. Signed-off-by: Tomasz Duda <[email protected]>
- Loading branch information
1 parent
e075206
commit d2d16c5
Showing
1 changed file
with
52 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters