Setting --blkio-weight on amazon linux

Expected behavior

Set --blkio-weight parameter for containers on Amazon linux

Actual behavior

We are trying to set --blkio-weight on some containers in Amazon linux and it doesn’t appear to be working. We get the following error message
Your kernel does not support Block I/O weight or the cgroup is not mounted. Weight discarded.

Additional Information

Kernel version: 4.9.51-10.52.amzn1.x86_64

Steps to reproduce the behavior

Is there a particular kernel version we should be using?
Does this work on Centos?

1 Like

I have the same issue, what does this mean?
how should it be remediated?

(base) me@ubuntu:~/dev/ws3$ docker run -it --name cont_B --blkio-weight 300 busybox

WARNING: Your kernel does not support Block I/O weight or the cgroup is not mounted. Weight discarded.
/ # exit