LSSUBSYS(1)

πŸ“¦
version 3.2.0 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– LSSUBSYS(1) πŸ’–

okay bestie, welcome to the libcgroup manual page for lssubsys β€” yes that's the manual name, she lives here now πŸŽ€


✨ NAME ✨

lssubsys β€” list hierarchies containing given subsystem πŸ¦‹


🌸 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 πŸ’…

so like, lssubsys lists the hierarchies containing the given subsystem(s), periodt. And if you don't define any subsystem at all? She just displays all the mounted hierarchies for you. no cap, she's generous like that πŸ’–

🌈 controller

defines the subsystem whose hierarchy is shown πŸ‘‘ If you don't use this parameter, the command will list all mounted subsystems. it's giving "i'll handle it myself" energy fr fr


πŸŽ€ OPTIONS πŸŽ€

  • -m, --mount-points β€” Display mount points πŸ’« Only the first mount points of the shown hierarchies get displayed. one and done, she's not doing a whole tour.
  • -M, --all-mount-points β€” Display mount points ✨ All mount points of the shown hierarchies are displayed, each on a separate line. yes queen, give us the full list, every single one πŸ’…
  • -a, --all β€” Display all subsystems (including unmounted ones) πŸ‘€ everybody gets an invite to this party, even the ones not mounted.
  • -i, --hierarchies β€” Display the attached hierarchy number if the subsystem is in a hierarchy πŸ”’ And heads up bestie: if the option -m is also used, the hierarchy number is shown only for unmounted hierarchies. lowkey specific but okay, we respect the rules.
  • -h, --help β€” Display help and exit 🫢 she'll explain herself and then dip.

πŸ”₯ EXAMPLE πŸ”₯

The command lssubsys -am lists all subsystems which are present in the system, and the 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, and 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 πŸ’€

lssubsys is currently supported on cgroups v1 only. that's it, that's the note. don't come for her about v2, she's not that girl (yet) 😭

🧚 ENVIRONMENT VARIABLES 🧚

  • CGROUP_LOGLEVEL β€” controls the verbosity of the tool πŸ‘‘ Allowed values are DEBUG, INFO, WARNING or ERROR. pick your vibe, she'll match it πŸ’œ

🌟 SEE ALSO 🌟

lscgroup (1), cgcreate (1), cgdelete (1), cgconfig.conf (5) β€” go read the whole friend group bestie, they're all iconic 🫢


and that's the whole page, mwah πŸ’‹ this came to you from the Linux source, version dated 2009-11-05, filed under LSSUBSYS(1) β€” literally a legend, obsessed, bye bestie πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from