diff options
author | Samuel Williams | 2019-11-30 01:09:05 +0900 |
---|---|---|
committer | Samuel Williams | 2019-11-30 01:09:05 +0900 |
commit | 45492fda4e16f4406f22bec2852d46ab19bfc69a (patch) | |
tree | 94d106536b23b475d8ccd5b50436b3b7181dea98 | |
parent | cf380d7eb1ea052da29ef143df2398a489a8287e (diff) | |
download | aur-45492fda4e16f4406f22bec2852d46ab19bfc69a.tar.gz |
Add memory and CPU limits to README.
-rw-r--r-- | README.md | 10 |
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 |