HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemd-cgtop — Show the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandshowclitopcontrolgroupssystemd-cgtop
linux

Problem

How to use the systemd-cgtop command: Show the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory, or disk I/O load. See also: top. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-cgtop.html>.

Solution

systemd-cgtop — Show the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory, or disk I/O load. See also: top. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-cgtop.html>.

Start an interactive view:
systemd-cgtop


Change the sort order:
systemd-cgtop --order {{cpu|memory|path|tasks|io}}


Show the CPU usage by time instead of percentage:
systemd-cgtop --cpu=percentage


Change the update interval in seconds (or one of these time units: ms, us, min):
systemd-cgtop {{[-d|--delay]}} {{interval}}


Only count userspace processes (without kernel threads):
systemd-cgtop -P

Code Snippets

Start an interactive view

systemd-cgtop

Change the sort order

systemd-cgtop --order {{cpu|memory|path|tasks|io}}

Show the CPU usage by time instead of percentage

systemd-cgtop --cpu=percentage

Change the update interval in seconds (or one of these time units: `ms`, `us`, `min`)

systemd-cgtop {{[-d|--delay]}} {{interval}}

Only count userspace processes (without kernel threads)

systemd-cgtop -P

Context

tldr-pages: linux/systemd-cgtop

Revisions (0)

No revisions yet.