diff --git a/xml/slert_systemd_shielding.xml b/xml/slert_systemd_shielding.xml
index f8d8676..b073ece 100644
--- a/xml/slert_systemd_shielding.xml
+++ b/xml/slert_systemd_shielding.xml
@@ -49,6 +49,14 @@ AllowedCPUs=0-1
&prompt.root;cat /etc/systemd/system/system.slice.d/40-shielding.conf
[Slice]
AllowedCPUs=0-1
+
+ &prompt.root;cat /etc/systemd/system/user.slice.d/40-shielding.conf
+[Slice]
+AllowedCPUs=0-1
+
+ &prompt.root;cat /etc/systemd/system/machine.slice.d/40-shielding.conf
+[Slice]
+AllowedCPUs=0-1
@@ -62,11 +70,18 @@ AllowedCPUs=0-1
AllowedCPUs=2-15
- The setup can also be changed at runtime (for debugging reasons):
+ and apply the new config files to systemd:
-&prompt.root;systemctl set-property --runtime workload.slice AllowedCPUs=4-15
-&prompt.root;systemctl set-property --runtime init.scope AllowedCPUs=0-3
-&prompt.root;systemctl set-property --runtime system.slice AllowedCPUs=0-3
+&prompt.root;systemctl daemon-reload
+
+
+ The setup can also be changed dynamically until next reboot (for debugging reasons):
+
+&prompt.root;systemctl set-property --runtime workload.slice AllowedCPUs=2-15
+&prompt.root;systemctl set-property --runtime init.scope AllowedCPUs=0-1
+&prompt.root;systemctl set-property --runtime system.slice AllowedCPUs=0-1
+&prompt.root;systemctl set-property --runtime user.slice AllowedCPUs=0-1
+&prompt.root;systemctl set-property --runtime machine.slice AllowedCPUs=0-1
@@ -84,7 +99,11 @@ Slice=workload.slice
Should not the sensitive job have a form of a service but an ad-hoc command, you may start it in a systemd scope:
-&prompt.root;systemd-run --scope -p Slice=workload.slice command arg1 ...
+&prompt.root;systemd-run --scope --uid=<UID> -p Slice=workload.slice command arg1 ...
+
+ starting such a scope is privileged operation but you can pass the --uid
+ argument to run the workload as given user.
+
Existing processes cannot be moved under the shield since that would involve process migration between cgroups which would cause distortion of the accounting state.
But sensitive workload should start with their resources secured in advance anyway.