Skip to content

[v1.3.2/v1.4.0-rc.1 intentional change] cpu.weight value changed #4896

@AkihiroSuda

Description

@AkihiroSuda

Description

The cpu.weight value below has changed in runc v1.4.0-rc.1

v1.3.1

$ sudo nerdctl run --rm --cpu-shares 2000 busybox cat /sys/fs/cgroup/cpu.weight
77

v1.4.0-rc.1

$ sudo nerdctl run --rm --cpu-shares 2000 busybox cat /sys/fs/cgroup/cpu.weight
170

Steps to reproduce the issue

sudo nerdctl run --rm --cpu-shares 2000 busybox cat /sys/fs/cgroup/cpu.weight

Describe the results you received and expected

Received: 170
Expected: 77

What version of runc are you using?

runc version 1.4.0-rc.1
commit: v1.4.0-rc.1-0-gb2ec7f92
spec: 1.2.1+dev
go: go1.24.6
libseccomp: 2.5.5

Host OS information

PRETTY_NAME="Ubuntu 25.04"

Host kernel information

Linux vmubuntu 6.14.0-29-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Thu Aug 7 18:15:08 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions