I noticed the other day that my /var/log/docker.log has these entries in it. Which appear each time docker is started (ie. via /etc/rc.d/rc.docker start) -
Code:
time="2022-02-02T21:10:26.006635669+11:00" level=warning msg="Your kernel does not support cgroup blkio weight"
time="2022-02-02T21:10:26.006656829+11:00" level=warning msg="Your kernel does not support cgroup blkio weight_device"
Yet when I run a docker image, I see these files created. So it appears the kernel does support blkio weight and weight_devices -
Code:
root@xx:/sys/fs/cgroup/blkio/docker# ls -l *weight*
-rw-r--r-- 1 root root 0 Feb 1 04:44 blkio.bfq.weight
-rw-r--r-- 1 root root 0 Feb 1 04:44 blkio.bfq.weight_device
root@xx:/sys/fs/cgroup/blkio/docker# cat blkio.bfq.weight
100
root@xx:/sys/fs/cgroup/blkio/docker# cat blkio.bfq.weight_device
default 100
root@xx:/sys/fs/cgroup/blkio/docker#
So I figured, what if I try force docker to use those settings.
Code:
root@xx:/sys/fs/cgroup/blkio/docker# docker run --blkio-weight 250 --rm some_image/some_image
WARNING: Your kernel does not support Block I/O weight or the cgroup is not mounted. Weight discarded.
The kernel seems to support blkio weight and weight_device. Meanwhile cgroup seems to be mounted (granted I'm not an expert, no idea if its looking for it in another spot, or if its looking for cgroup v2).
So does anyone know what the issue could be, and possibly a fix?
Incase these things are relevant, this is on -current, (with both a custom kernel and the bundled kernel). Dockers check-config.sh script doesnt seem to show anything relevant.