pikachew-ensimag
pikachew-ensimag

Reputation: 73

Cgroup and Slurm

I know how to use cgroups(allocating memory, cpu usage...) and slurm(submit, suspend/stop a job). I would like to know how cgroups work with slurm. Where could I fix the memory or CPU usage when I submit a job to slurm? I read the documentation from Slurm Schedmd(https://slurm.schedmd.com/cgroups.html) but it doesn't give a good explanation. Maybe it is a misunderstanding of mine. Can anyone explain how to allocate some ressource for a job using cgroup in slurm? Thanks in advance.

Upvotes: 5

Views: 1695

Answers (1)

damienfrancois
damienfrancois

Reputation: 59260

cgroup usage in Slurm is at the admin configuration level, and is transparent for the user. When configured to use cgroups, Slurm creates cgroups for the jobs and deletes them automatically, based on the resources required at job submission (e.g. --mem, --ntasks, etc.)

Upvotes: 6

Related Questions