Allow to configure cgroups to limit CPU/RAM of processes
It is sometimes useful to artificially limit the CPU and RAM of a process. For instance: to study how a software behaves when it is CPU-bound, we may want to iterate with several configurations (1 core, 2 cores, 4 cores, 8 cores). An easy way to do this is to put the process in a cgroup and configure a limit on this cgroup.
We should look at how cgroups are handled in the planning module, and maybe extract it as a standalone functionality.