
Hi Chris, On Mon, Dec 21, 2015 at 11:10:47PM +1100, Chris Samuel via luv-main wrote:
I'm trying to get Slurm working on a RHEL7.2 system and I've hit an issue where systemd is already using the cpuacct cgroup hierarchy and that prevents Slurm from using it as it seems to be the one case where it can only be in use once.
I.e. having this mount create by systemd:
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
causes:
12725 mount("cgroup", "/cgroup/cpuacct", "cgroup", MS_NOSUID|MS_NODEV|MS_NOEXEC, "cpuacct") = -1 EBUSY (Device or resource busy)
I suspect if slurm mounted the cgroup as cpu,cpuacct then it would work. but it's because it's trying just cpuacct that it's failing. that's the sort of behaviour I've seen before. the OS appears to bind mount them if they're the same. you have the slurm source - care to hack it and give that a go? :) torque 6's cgroup code uses cpu,cpuacct which I presume is in order to play nicely with rhel7. cheers, robin