Our great sponsors
-
timeout
A script to measure and limit CPU time and memory consumption of black-box processes in Linux
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Doing some research I found that one normally uses the timeout script (this however kills processes instead of limiting the amount of resources they can use) or linux control groups. I haven't used any of these on another OS but wonder if this is also the way to do it on NixOs. or would this be done using a nix-shell with some arguments that I am unaware of?
Not that I know of but if you are having trouble with rebuilding and running out of memory, maybe the solution would be to cache the builds locally? You could use lorri to cache your development builds (https://github.com/target/lorri).