aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Williams2019-11-30 01:09:05 +0900
committerSamuel Williams2019-11-30 01:09:05 +0900
commit45492fda4e16f4406f22bec2852d46ab19bfc69a (patch)
tree94d106536b23b475d8ccd5b50436b3b7181dea98
parentcf380d7eb1ea052da29ef143df2398a489a8287e (diff)
downloadaur-45492fda4e16f4406f22bec2852d46ab19bfc69a.tar.gz
Add memory and CPU limits to README.
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 81e259fea746..f5d0937c0031 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,16 @@ Boot it:
sudo systemctl enable --now systemd-nspawn@github-actions.service
+### Limits
+
+Limit the memory consumption of your container to 2 GiB:
+
+ systemctl set-property systemd-nspawn@myContainer.service MemoryMax=2G
+
+Limit the CPU time usage to roughly the equivalent of 2 cores:
+
+ systemctl set-property systemd-nspawn@myContainer.service CPUQuota=200%
+
### Attaching Shell
sudo machinectl shell github-actions