Code:
root@node-1:~# systemd-cgls --no-pager
CGroup /:
-.slice
├─qemu.slice
│ └─200.scope
│ └─3089943 /usr/bin/kvm -id 200 -name vm-01,debug-threads=on -no-shutdown -chardev socket,id=qmp,path=/v…
├─init.scope
│ └─1 /sbin/init
├─system.slice
│ └─<truncated system stuff>
├─lxc
│ ├─100
│ │ └─ns
│ │ ├─.lxc
│ │ │ └─2959216 /bin/bash
│ │ ├─init.scope
│ │ │ └─7902 /sbin/init
│ │ └─system.slice
│ │ └─ <container stuff truncated>
│ ├─101
└─ns
<continues for all CTIDs>
I want to have VMs and LXCs be under a single cgroup tree so I can have them all share an IOPS limit. They all share the same storage pool, the consumer SATA SSDs are very limited by IOPS and get really bad latency once they hit their limit. I was hoping I could just apply the limit on on the system.slice, but neither the qemu.slice or the lxc tree are children of it. So, I need to create a new slice and move qemu.slice and the lxc tree to them so I can apply the iops limit and have them both share it.
Last edited: