Skip to content

Instantly share code, notes, and snippets.

@flrichar
Created February 6, 2026 14:18
Show Gist options
  • Select an option

  • Save flrichar/7ffb7d3579855913b075d5213d5f9ead to your computer and use it in GitHub Desktop.

Select an option

Save flrichar/7ffb7d3579855913b075d5213d5f9ead to your computer and use it in GitHub Desktop.
stupid service cpu limit

CPULimit for systemd service

Sometimes it is necessary and cannot be avoided.

vi /etc/systemd/system/something.service

[service]
CPUQuota=50%
...
# save, quit

systemctl daemon-reload

Ensure it is documented and revert if necessary. For experimentation purposes only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment