[英]Are all processes started by a Slurm job killed on cancelling the job?
If a Slurm job starts processes (could even be daemons), would all of them be automatically killed if I stop the job with scancel?如果 Slurm 作业启动进程(甚至可能是守护进程),如果我用 scancel 停止作业,它们会自动终止吗?
Yes if Slurm is configured with cgroup
support.是的,如果 Slurm 配置了
cgroup
支持。 See details in the documentation请参阅文档中的详细信息
A cgroup
is created upon job start and all processes belong to that cgroup
.作业开始时会创建一个
cgroup
,所有进程都属于该cgroup
。 Once the job is terminated, the cgroup
is removed and all processes then killed by the kernel.一旦作业终止,
cgroup
将被删除,所有进程随后被 kernel 杀死。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.