LSSUBSYS(1) libcgroup Manual LSSUBSYS(1)

# [NAME](#NAME)

lssubsys - list hierarchies containing given subsystem

# [SYNOPSIS](#SYNOPSIS)

**lssubsys** \[**-m|--mount-points**] \[**-M|--all-mount-points**] \[*controller*] \[...]  
**lssubsys** \[**-m|--mount-points**] \[**-M|--all-mount-points**] \[**-i|--hierarchies**] \[**-a|--all**]  
**lssubsys** \[**-h|--help**]

# [DESCRIPTION](#DESCRIPTION)

**lssubsys** list the hierarchies containing the given subsystem(s). If no subsystem is defined, it displays all mounted hierarchies.

[**controller**](#controller)

defines the subsystem whose hierarchy is shown. If this parameter is not used, the command will list all mounted subsystems.

[**-m, --mount-points**](#m,)

Display mount points. Only the first mount points of shown hierarchies are displayed.

[**-M, --all-mount-points**](#M,)

Display mount points. All mount points of shown hierarchies are displayed, each on separate line.

[**-a, --all**](#a,)

Display all subsystems (including unmounted ones).

[**-i, --hierarchies**](#i,)

Display the attached hierarchy number if the subsystem is in a hierarchy. If the option **-m** is also used, the hierarchy number is shown only for unmounted hierarchies.

[**-h, --help**](#h,)

Display help and exit.

# [EXAMPLE](#EXAMPLE)

The command **lssubsys -am** lists all subsystems which are present in the system, mounted ones will be shown with their mount point:

```
$ lssubsys -am
ns
cpuset
cpu,devices
cpuacct /cgroup/cpuacct
memory /cgroup/memory
freezer /cgroup/freezer
net_cls /cgroup/net_cls
```

The command **lssubsys -ami** lists all subsystems which are present in the system, mounted subsystems are listed with their mount points, unmounted ones which are in a hierarchy are listed with their hierarchy number:

```
$ lssubsys -ami
ns
cpuset 5
cpu,devices 6
cpuacct /cgroup/cpuacct
memory /cgroup/memory
freezer /cgroup/freezer
net_cls /cgroup/net_cls
```

# [NOTES](#NOTES)

[lssubsys is currently supported on cgroups v1 only.](#lssubsys)

# [ENVIRONMENT VARIABLES](#ENVIRONMENT_VARIABLES)

[**CGROUP\_LOGLEVEL**](#CGROUP_LOGLEVEL)

controls verbosity of the tool. Allowed values are **DEBUG**, **INFO**, **WARNING** or **ERROR**.

# [SEE ALSO](#SEE_ALSO)

[lscgroup (1)](/man/enterprise-packages/libcgroup/lscgroup.1), [cgcreate (1)](/man/enterprise-packages/libcgroup/cgcreate.1), [cgdelete (1)](/man/enterprise-packages/libcgroup/cgdelete.1), [cgconfig.conf (5)](/man/enterprise-packages/libcgroup/cgconfig.conf.5)

2009-11-05 Linux

---

Document: lssubsys(1) from libcgroup 3.2.0-r10 (Chainguard OS)
Source: https://github.com/libcgroup/libcgroup
