Subject: Systemd problem regarding resource control

From: mo <[email-masked]>
Date: Sun, 11 Sep 2016 19:04:32 +0200

Hi Debian users :)

Well i'm back again with another problem i absolutely can't figure out. 
First of some information regarding my system and systemd:

mo@srv:~$ systemd --version
systemd 215
+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ 
-SECCOMP -APPARMOR

mo@srv:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 8.5 (jessie)
Release:	8.5
Codename:	jessie

The problem is the following:
According to the systemd.resource-control man page it is possible to 
manage the resources of slices, scopes, sockets and mount points. 
However, always when i try to set a property on one of my virtual 
machine slices the changes have no effect at all.. no matter what i try.

The commands will be listed in order:

$ sudo systemctl set-property --runtime machine-qemu"\x2d"ts.scope 
CPUQuota=10%

No reply or error returned, so we should be good, then i type:

$ systemctl show machine-qemu\x2dts.scope | grep CPU
CPUAccounting=yes
CPUShares=18446744073709551615
StartupCPUShares=18446744073709551615
CPUQuotaPerSecUSec=(null)

As you can see CPUQutoa is _not_ listed here... which is quite strange 
to me. (Since systemctl did not return any error of any kind)

The vm runs under the user "libvirt-qemu" and is started by hand via virsh.

I honestly can't tell what seems to be wrong.
It would be great if any of you guys has a idea what the reason could be.

Thanks in advance :)

Greets

mo