Skip to content

Instantly share code, notes, and snippets.

@szydan
Created June 12, 2023 10:18
Show Gist options
  • Save szydan/7c553d18be04577ed13568a35d4b6fc8 to your computer and use it in GitHub Desktop.
Save szydan/7c553d18be04577ed13568a35d4b6fc8 to your computer and use it in GitHub Desktop.
limit memory and cpu from command line ubuntu
systemd-run --user --scope -p AllowedCPUs=1 -p MemoryMax=1G -p CPUQuota=10% yarn start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment