lxc / lxcfs

FUSE filesystem for LXC
https://linuxcontainers.org/lxcfs
Other
1.02k stars 246 forks source link

/proc/diskstats not virtualized for cgroup2 #653

Open AlexanderS opened 2 weeks ago

AlexanderS commented 2 weeks ago

Required information

Issue description

With cgroup2 the disk io stats are not virtulized. Looking at the code in https://github.com/lxc/lxcfs/blob/main/src/proc_fuse.c#L579 it seems, that only blkio controller of cgroup1 is handled.

cgroup2 seems to provide the required information in /sys/fs/cgroup/lxc.payload.<container name>/io.stat.