Skip to content

Wrong cpu number reported, when only CFS (cpu.max) cgroup2 limit is set #688

@okhowang

Description

@okhowang

cpu count was read in current cgroup only.
if parent cgroup limit cpu to 2, but current cgroup limit is unlimit,
lxcfs will show all cpu for container.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions