Skip to content
Snippets Groups Projects
Commit 9a548ec1 authored by Matthieu Hautreux's avatar Matthieu Hautreux Committed by Morris Jette
Browse files

task/cgroup: disable notify_on_release on the slurm root cgroups

In order to avoid the removal/creation of the slurm root cgroups
of the managed subsystems, disable the notify_on_release to prevent
the release agent from removing them automatically.
parent fcffea8c
No related branches found
No related tags found
No related merge requests found
......@@ -317,12 +317,15 @@ extern char* task_cgroup_create_slurm_cg (xcgroup_ns_t* ns) {
}
#endif
/* create slurm cgroup in the ns (it could already exist) */
/* create slurm cgroup in the ns (it could already exist)
* disable notify_on_release to avoid the removal/creation
* of this cgroup for each last/first running job on the node */
if (xcgroup_create(ns,&slurm_cg,pre,
getuid(), getgid()) != XCGROUP_SUCCESS) {
xfree(pre);
return pre;
}
slurm_cg.notify = 0;
if (xcgroup_instanciate(&slurm_cg) != XCGROUP_SUCCESS) {
error("unable to build slurm cgroup for ns %s: %m",
ns->subsystems);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment