<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I have all my controllers under a common directory
/sys/fs/cgroup/unified:<br>
<blockquote>cgroup on /sys/fs/cgroup/unified type cgroup
(rw,relatime,hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset)</blockquote>
under which is a "jobs" cgroup running jobs in jobs/<jobid>.
When I start an LXC container,<br>
e.g., under /jobs/123, and have this in my lxc config file:<br>
<blockquote>lxc.mount.auto = cgroup<br>
lxc.aa_profile = unconfined<br>
</blockquote>
I get the following under /sys/fs/cgroup (in the container):<br>
<blockquote>lrwxrwxrwx 1 root root 66 Jul 24 14:47 blkio ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
lrwxrwxrwx 1 root root 66 Jul 24 14:47 cpu ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
lrwxrwxrwx 1 root root 66 Jul 24 14:47 cpuacct ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
lrwxrwxrwx 1 root root 66 Jul 24 14:47 cpuset ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
lrwxrwxrwx 1 root root 66 Jul 24 14:47 devices ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
lrwxrwxrwx 1 root root 66 Jul 24 14:47 freezer ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
lrwxrwxrwx 1 root root 66 Jul 24 14:47 hugetlb ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
drwxr-xr-x 3 root root 60 Jul 24 14:47
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
lrwxrwxrwx 1 root root 66 Jul 24 14:47 memory ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
lrwxrwxrwx 1 root root 66 Jul 24 14:47 perf_event ->
hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset<br>
</blockquote>
Is there some way to get this exposed under a single directory
(e.g., /sys/fs/cgroup/unified)<br>
as I do on the host system rather than entries for all the
controllers? In effect could the<br>
directory
"hugetlb,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset"
be given<br>
a name "unified" instead?<br>
<br>
Thanks,<br>
John<br>
<br>
</body>
</html>