Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

host's cpu cgroup is not updated #1117

@devimc

Description

@devimc

Description of problem

$ docker run -dti --cpus 2 --name container --runtime=kata-runtime debian bash
$ docker update --cpus 3 container 

Expected result

# cat /sys/fs/cgroup/cpu,cpuacct/kata/$CID/vcpu/cpu.cfs_period_us 
100000
# cat /sys/fs/cgroup/cpu,cpuacct/kata/$CID/vcpu/cpu.cfs_quota_us 
300000

Actual result

# cat /sys/fs/cgroup/cpu,cpuacct/kata/$CID/vcpu/cpu.cfs_period_us 
100000
# cat /sys/fs/cgroup/cpu,cpuacct/kata/$CID/vcpu/cpu.cfs_quota_us 
200000

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions