blkio subsys missing files in 5.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

Since kernel 5.0 blkio is no longer creating the following files:

blkio.io_merged
blkio.io_merged_recursive
blkio.io_queued
blkio.io_queued_recursive
blkio.io_service_bytes
blkio.io_service_bytes_recursive
blkio.io_serviced blkio.io_serviced_recursive
blkio.io_service_time
blkio.io_service_time_recursive
blkio.io_wait_time
blkio.io_wait_time_recursive
blkio.leaf_weight blkio.leaf_weight_device
blkio.reset_stats
blkio.sectors
blkio.sectors_recursive
blkio.time
blkio.time_recursive
blkio.weight
blkio.weight_device

I’m using the stock kernel config, here’s the relevant options:

CONFIG_CGROUPS=y
CONFIG_BLK_CGROUP=y
# CONFIG_DEBUG_BLK_CGROUP is not set
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_RDMA=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
CONFIG_CGROUP_BPF=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_SCHED_AUTOGROUP=y
# CONFIG_BLK_CGROUP_IOLATENCY is not set
CONFIG_BFQ_GROUP_IOSCHED=y
CONFIG_NETFILTER_XT_MATCH_CGROUP=m
CONFIG_NETFILTER_XT_MATCH_DEVGROUP=m
CONFIG_NET_CLS_CGROUP=m
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
CONFIG_THERMAL_GOV_FAIR_SHARE=y

As CFQ was removed in 5.0 CONFIG_CFQ_GROUP_IOSCHED is no longer available.

Here’s what’s contained in blkio:
# ls -la /sys/fs/cgroup/blkio/
total 0
dr-xr-xr-x  5 root root   0 Mar 21 18:15 .
drwxr-xr-x 15 root root 380 Mar 21 17:55 ..
--w-------  1 root root   0 Mar 21 18:15 blkio.reset_stats
-r--r--r--  1 root root   0 Mar 21 18:15 blkio.throttle.io_service_bytes
-r--r--r--  1 root root   0 Mar 21 18:15 blkio.throttle.io_service_bytes_recursive
-r--r--r--  1 root root   0 Mar 21 18:15 blkio.throttle.io_serviced
-r--r--r--  1 root root   0 Mar 21 18:15 blkio.throttle.io_serviced_recursive
-rw-r--r--  1 root root   0 Mar 21 18:15 blkio.throttle.read_bps_device
-rw-r--r--  1 root root   0 Mar 21 18:15 blkio.throttle.read_iops_device
-rw-r--r--  1 root root   0 Mar 21 18:15 blkio.throttle.write_bps_device
-rw-r--r--  1 root root   0 Mar 21 18:15 blkio.throttle.write_iops_device
-rw-r--r--  1 root root   0 Mar 21 18:15 cgroup.clone_children
-rw-r--r--  1 root root   0 Mar 21 18:15 cgroup.procs
-r--r--r--  1 root root   0 Mar 21 18:15 cgroup.sane_behavior
drwxr-xr-x 38 root root   0 Mar 21 18:20 docker
-rw-r--r--  1 root root   0 Mar 21 18:15 notify_on_release
-rw-r--r--  1 root root   0 Mar 21 18:15 release_agent
drwxr-xr-x 56 root root   0 Mar 21 18:15 system.slice
-rw-r--r--  1 root root   0 Mar 21 18:15 tasks
drwxr-xr-x  2 root root   0 Mar 21 18:15 user.slice

Other cgroups seem unaffected:
# findmnt -a
TARGET                                                                                                                                            SOURCE                 FSTYPE     OPTIONS
/                                                                                                                                                 /dev/md1               ext4       rw,relatime,errors=remount-ro,stripe=768
|-/sys                                                                                                                                            sysfs                  sysfs      rw,nosuid,nodev,noexec,relatime
| |-/sys/kernel/security                                                                                                                          securityfs             securityfs rw,nosuid,nodev,noexec,relatime
| |-/sys/fs/cgroup                                                                                                                                tmpfs                  tmpfs      ro,nosuid,nodev,noexec,mode=755
| | |-/sys/fs/cgroup/unified                                                                                                                      cgroup                 cgroup2    rw,nosuid,nodev,noexec,relatime,nsdelegate
| | |-/sys/fs/cgroup/systemd                                                                                                                      cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,xattr,name=systemd
| | |-/sys/fs/cgroup/devices                                                                                                                      cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,devices
| | |-/sys/fs/cgroup/cpu,cpuacct                                                                                                                  cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
| | |-/sys/fs/cgroup/net_cls,net_prio                                                                                                             cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
| | |-/sys/fs/cgroup/cpuset                                                                                                                       cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,cpuset
| | |-/sys/fs/cgroup/blkio                                                                                                                        cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,blkio
| | |-/sys/fs/cgroup/perf_event                                                                                                                   cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,perf_event
| | |-/sys/fs/cgroup/freezer                                                                                                                      cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,freezer
| | |-/sys/fs/cgroup/rdma                                                                                                                         cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,rdma
| | |-/sys/fs/cgroup/pids                                                                                                                         cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,pids
| | |-/sys/fs/cgroup/memory                                                                                                                       cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,memory
| | `-/sys/fs/cgroup/hugetlb                                                                                                                      cgroup                 cgroup     rw,nosuid,nodev,noexec,relatime,hugetlb

# column -t /proc/cgroups
#subsys_name  hierarchy  num_cgroups  enabled
cpuset        5          38           1
cpu           3          97           1
cpuacct       3          97           1
blkio         6          94           1
memory        11         154          1
devices       2          94           1
freezer       8          38           1
net_cls       4          38           1
perf_event    7          38           1
net_prio      4          38           1
hugetlb       12         38           1
pids          10         98           1
rdma          9          1            1

Am I missing something obvious, or is there a regression?

Best regards,

Grant Millar






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux