LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2022, 04:26 AM   #1
avian
Member
 
Registered: Aug 2014
Posts: 184

Rep: Reputation: Disabled
Docker / cgroup weirdness with blkio weight / weight_device


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.
 
Old 02-02-2022, 04:57 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
I may be wrong but I think those are just warnings because the default IO scheduler (CFQ) maybe doesn't have those controllers available anymore in the latest kernels (but are available with a different scheduler such as BFQ).

https://github.com/lxc/lxd/issues/74...ment-633452258

Last edited by ponce; 02-02-2022 at 04:59 AM.
 
1 members found this post helpful.
Old 02-02-2022, 05:11 AM   #3
avian
Member
 
Registered: Aug 2014
Posts: 184

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
I may be wrong but I think those are just warnings because the default IO scheduler (CFQ) maybe doesn't have those controllers available anymore in the latest kernels (but are available with a different scheduler such as BFQ).

https://github.com/lxc/lxd/issues/74...ment-633452258
Yeh I did read about block devices needing bfq, and did try changing every block device to use the bfq scheduler -

Code:
/sys/block# cat */queue/scheduler
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
mq-deadline kyber [bfq] none
I figured that mightve been enough, but the warnings persist.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a Light-weight linux distro that includes a light-weight browser ? Shaggy1 Linux - General 4 01-23-2021 07:47 AM
zen cgroup blkio.throttle SeventhSon Linux - Kernel 0 01-31-2020 02:44 PM
LXer: Light weight KlyDE gives Xfce, Gnome some heavy weight competition LXer Syndicated Linux News 0 04-22-2013 12:10 PM
cgroups - blkio sethusubbiah Linux - Software 0 07-23-2011 10:45 AM
[SOLVED] blkio crashes at rmdir when using fork alephan Linux - Kernel 2 07-22-2011 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration