binpash / try

Inspect a command's effects before modifying your live system
MIT License
5.18k stars 66 forks source link

Set memory limit? #121

Closed linsyking closed 1 year ago

linsyking commented 1 year ago

Is there a way to set the memory limit when executing the command?

ezrizhu commented 1 year ago

Hi, currently there is no way to set the memory limit when executing a command with try natively. The tool you’re looking for is control groups.

Currently there are no plans to implement try with cgroups, but I’ll circle in @angelhof to see if this would be a good idea, since limiting process resource usage may help when we’re running a lot in parallel.

angelhof commented 1 year ago

I agree with @ericzty that there are no plans to implement memory limits in try soon since this is orthogonal to try's goals.