0

I'd like to provide a process with limited number of cores and limited memory. With slurm, I'd solve this with a command like the following:

srun --pty -c32 --mem=178G bash

How would I do this without slurm on a normal desktop computer?

Hoeze
  • 636
  • 5
  • 20
  • Look at ulimits and probably better, running the process within a container running with resource limits – Raman Sailopal Nov 11 '20 at 13:49
  • I'm searching for a direct replacement to this slurm command. As far as I understand, ulimits and containers are not helpful to this end. Ulimits only force e.g. upper process count. Containers run their own OS but I want to run on the host environment. – Hoeze Nov 12 '20 at 10:41
  • A proper replacement would probably need to be based on cgroups – Hoeze Nov 12 '20 at 10:42
  • 1
    Container don't run their own OS but rather their own runtime as a separate isolated process ID on the same OS. This is where they differ from virtual machines. Also, containers' original design built on cgroups. – Raman Sailopal Nov 12 '20 at 10:45
  • Thanks, got your point. Still, I want to use the host runtime without changing users, etc. – Hoeze Nov 13 '20 at 11:30

0 Answers0