/sys/fs/cgroup/cpuset/machine.slice/machine-qemu\x2d15\x2dGUS37e3e279\x2d94d0\x2d4124\x2d929a\x2d7658f28aced2.scope/tasks': No space left on device
Software environment
- Operating system: centos8
- OS/kernel version: 5.10.0-60.18
- Architecture: x86
- libvirt version: 6.2.0
- libvirt xml config
<domain type="kvm" id="0">
<name>GUS37e3e279-94d0-4124-929a-7658f28aced2</name>
<uuid>37e3e279-94d0-4124-929a-7658f28aced2</uuid>
<maxMemory unit="KiB" slots="64">536870912</maxMemory>
<memory unit="KiB">4194304</memory>
<currentMemory unit="MiB">4096</currentMemory>
<memoryBacking></memoryBacking>
<vcpu current="4">100</vcpu>
<cputune>
<shares>1024</shares>
<period>100000</period>
<quota>20000</quota>
</cputune>
<os>
<type arch="x86_64" machine="pc-i440fx-5.0">hvm</type>
</os>
<features>
<pae></pae>
<acpi></acpi>
<apic></apic>
</features>
<cpu match="exact" mode="custom" check="partial">
<model fallback="forbid">Haswell-noTSX-IBRS</model>
<topology sockets="10" cores="10" threads="1"></topology>
<feature policy="disable" name="vmx"></feature>
<feature policy="disable" name="mpx"></feature>
<numa>
<cell id="0" cpus="0-0" memory="1024" unit="MiB"></cell>
<cell id="1" cpus="1-1" memory="1024" unit="MiB"></cell>
<cell id="2" cpus="2-2" memory="1024" unit="MiB"></cell>
<cell id="3" cpus="3-3" memory="1024" unit="MiB"></cell>
</numa>
</cpu>
<clock offset="utc"></clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>preserve</on_crash>
<pm>
<suspend-to-mem enabled="no"></suspend-to-mem>
<suspend-to-disk enabled="no"></suspend-to-disk>
</pm>
<devices>
<disk device="cdrom">
<driver name="qemu" type="raw" io="threads" queues="0"></driver>
<target dev="hdd" bus="ide"></target>
<readonly></readonly>
<boot order="1"></boot>
<address type="drive" controller="0" bus="1" target="0" unit="1"></address>
</disk>
<disk device="floppy">
<driver name="qemu" type="raw" io="threads" queues="0"></driver>
<target dev="fda" bus="fdc"></target>
<readonly></readonly>
<address type="drive" controller="0" bus="0" target="0" unit="0"></address>
</disk>
<controller type="pci" index="0" model="pci-root"></controller>
<controller type="pci" index="1" model="pci-bridge"></controller>
<controller type="pci" index="2" model="pci-bridge"></controller>
<controller type="scsi" index="0" model="virtio-scsi"></controller>
<controller type="scsi" index="1" model="virtio-scsi"></controller>
<controller type="sata" index="0"></controller>
<controller type="sata" index="1"></controller>
<controller type="usb" index="0" model="piix3-uhci"></controller>
<controller type="usb" index="1" model="nec-xhci"></controller>
<interface type="bridge">
<mac address="52:56:ff:ec:f3:4d"></mac>
<source bridge="managerbr"></source>
<virtualport type="openvswitch">
<parameters interfaceid="5fdae67b-9f11-4941-a476-761341585bbe"></parameters>
</virtualport>
<target dev="vir5256ffecf34d"></target>
<model type="virtio"></model>
<driver name="vhost"></driver>
<address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0"></address>
</interface>
<serial type="pty">
<target port="0"></target>
</serial>
<serial type="pty">
<target port="1"></target>
</serial>
<console type="pty">
<target type="serial" port="0"></target>
</console>
<console type="pty">
<target type="virtio" port="0"></target>
<alias name="console1"></alias>
</console>
<channel type="spiceport">
<source channel="org.spice-space.webdav.0"></source>
<target type="virtio" name="org.spice-space.webdav.0"></target>
</channel>
<input type="keyboard" bus="ps2">
<alias name="input0"></alias>
</input>
<input type="mouse" bus="ps2">
<alias name="input1"></alias>
</input>
<input type="tablet" bus="usb">
<alias name="input2"></alias>
<address type="usb" bus="0" port="1" device="0"></address>
</input>
<graphics type="spice" port="5904" autoport="yes" listen="::0.0.0.0" passwd="7658f28aced2">
<image compression="glz"></image>
<jpeg compression="always"></jpeg>
<streaming mode="filter"></streaming>
</graphics>
<sound model="ich6">
<codec type="duplex"></codec>
</sound>
<video>
<model type="vga" heads="1" vram="49152"></model>
</video>
<redirdev type="spicevmc" bus="usb">
<address type="usb" bus="1" port="1" device="0"></address>
</redirdev>
<memballoon model="virtio"></memballoon>
<panic model="isa"></panic>
</devices>
<commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0"></commandline>
</domain>
```xml
## Description of problem
when add cputune to xml, when start guest,cgropu report error.I am sure machine.slice service is work well.
I open the debug of libvirtd,i found it not to write cpuset.cpus and cpuset.mems,so the two files is empty.
why create cgroup of machine-qemu libvirt not auto write cpuset.cpus and cpuset.mems of machine-qemu?
But in other host,the same env of this host.it work well,I don't know why.
## Steps to reproduce
1.add cputune to xml:
```xml
<cputune>
<shares>1024</shares>
<period>100000</period>
<quota>20000</quota>
</cputune>
```xml
2.virsh create test.xml
3.I get a error:
2023-08-11 05:47:12.677+0000: 5883: warning : qemuDomainDefValidate:6010 : CPU topology doesn't match numa CPU count; partial NUMA mapping is obsoleted and will be removed in future
2023-08-11 05:47:12.682+0000: 5883: warning : qemuDomainDefValidate:6010 : CPU topology doesn't match numa CPU count; partial NUMA mapping is obsoleted and will be removed in future
2023-08-11 05:47:13.190+0000: 5883: warning : qemuDomainObjTaint:10693 : Domain id=15 name='GUS37e3e279-94d0-4124-929a-7658f28aced2' uuid=37e3e279-94d0-4124-929a-7658f28aced2 is tainted: high-privileges
2023-08-11 05:47:13.225+0000: 5883: error : virCgroupSetValueRaw:466 : Unable to write to '/sys/fs/cgroup/cpuset/machine.slice/machine-qemu\x2d15\x2dGUS37e3e279\x2d94d0\x2d4124\x2d929a\x2d7658f28aced2.scope/tasks': No space left on device
2023-08-11 05:47:13.226+0000: 5883: error : virCgroupRemoveRecursively:2363 : Unable to remove /sys/fs/cgroup/cpu,cpuacct/machine.slice/machine-qemu\x2d15\x2dGUS37e3e279\x2d94d0\x2d4124\x2d929a\x2d7658f28aced2.scope/ (16)
2023-08-11 05:47:13.226+0000: 5883: error : virCgroupRemoveRecursively:2363 : Unable to remove /sys/fs/cgroup/cpu,cpuacct/machine.slice/machine-qemu\x2d15\x2dGUS37e3e279\x2d94d0\x2d4124\x2d929a\x2d7658f28aced2.scope/ (16)
2023-08-11 05:47:13.226+0000: 5883: error : virCgroupRemoveRecursively:2363 : Unable to remove /sys/fs/cgroup/memory/machine.slice/machine-qemu\x2d15\x2dGUS37e3e279\x2d94d0\x2d4124\x2d929a\x2d7658f28aced2.scope/ (16)
2023-08-11 05:47:13.226+0000: 5883: error : virCgroupRemoveRecursively:2363 : Unable to remove /sys/fs/cgroup/devices/machine.slice/machine-qemu\x2d15\x2dGUS37e3e279\x2d94d0\x2d4124\x2d929a\x2d7658f28aced2.scope/ (16)
2023-08-11 05:47:13.226+0000: 5883: error : virCgroupRemoveRecursively:2363 : Unable to remove /sys/fs/cgroup/freezer/machine.slice/machine-qemu\x2d15\x2dGUS37e3e279\x2d94d0\x2d4124\x2d929a\x2d7658f28aced2.scope/ (16)
2023-08-11 05:47:13.226+0000: 5883: error : virCgroupRemoveRecursively:2363 : Unable to remove /sys/fs/cgroup/blkio/machine.slice/machine-qemu\x2d15\x2dGUS37e3e279\x2d94d0\x2d4124\x2d929a\x2d7658f28aced2.scope/ (16)
2023-08-11 05:47:13.830+0000: 5883: error : qemuProcessSetupVcpus:5761 : unsupported configuration: cgroup cpu is required for scheduler tuning
Edited by cheng qi