openwrt / openwrt/packages

docker-ce: missing kernel configuration symbol

Open
#12,380 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

On startup

WARN[2020-06-02T19:13:22.619792818+01:00] Your kernel does not support cgroup blkio weight 
WARN[2020-06-02T19:13:22.619998687+01:00] Your kernel does not support cgroup blkio weight_device

After which my entire system hangs and reboots, although to be fair, I'm not sure it's this that's causing the reboot. I'll update once I've compiled a kernel with the relevant symbols enabled.

The symbol that needs to be enabled is CONFIG_BLK_CGROUP_IOCOST=y

CONFIG_BLK_CGROUP_IOCOST:                                                                                                                                                                                                
  Enabling this option enables the .weight interface for 
  cost  model based proportional IO control.  The IO controller
  distributes IO capacity between different groups based on
  their share of the overall weight distribution.
diff --git a/utils/docker-ce/Config.in b/utils/docker-ce/Config.in
index dba32c4..d9184d0 100644
--- a/utils/docker-ce/Config.in
+++ b/utils/docker-ce/Config.in
@@ -31,6 +31,7 @@ menu "Kernel features for Docker"
                select KERNEL_MEMCG_SWAP
                select KERNEL_MEMCG_SWAP_ENABLED
                select KERNEL_BLK_DEV_THROTTLING
+               select KERNEL_BLK_CGROUP_IOCOST
                select KERNEL_CFQ_GROUP_IOSCHED
                select KERNEL_CGROUP_PERF
                select KERNEL_FAIR_GROUP_SCHED
@@ -83,3 +84,7 @@ menu "Kernel features for Docker"
                        select KERNEL_BTRFS_FS_POSIX_ACL
        endmenu
 endmenu
+
+config KERNEL_BLK_CGROUP_IOCOST
+       bool
+       default n

Platform is x86_64

@G-M0N3Y-2503

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in utils/docker-ce/Config.in and inspect how the Docker kernel feature menu selects symbols, especially the existing blkio-related options. Check the OpenWrt kernel configuration and Docker startup warnings to confirm whether CONFIG_BLK_CGROUP_IOCOST is the missing dependency. Done means the symbol is selected appropriately and the resulting configuration no longer produces the reported warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, linux
Domain
devops, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.