Skip to content
Snippets Groups Projects
Commit 54ab5d7c authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Add detailed warning message if task_cgroup_memory fails.

Kernel option cgroup_enable=memory is likely what you want to fix,
at least Debian and Ubuntu ship with it disabled.
parent eadf917e
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,10 @@ extern int task_cgroup_memory_init(slurm_cgroup_conf_t *slurm_cgroup_conf)
/* initialize memory cgroup namespace */
if (xcgroup_ns_create(slurm_cgroup_conf, &memory_ns, "", "memory")
!= XCGROUP_SUCCESS) {
error("task/cgroup: unable to create memory namespace");
error("task/cgroup: unable to create memory namespace. "
"You may need to set the Linux kernel option "
"cgroup_enable=memory (and reboot), or disable "
"ConstrainRAMSpace in cgroup.conf.");
return SLURM_ERROR;
}
......
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