LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemd-cgtop

Monitor cgroup resource usage

TLDR

Start an interactive view
$ systemd-cgtop
copy
Change the sort order
$ systemd-cgtop --order [cpu|memory|path|tasks|io]
copy
Show CPU usage by time instead of percentage
$ systemd-cgtop --cpu=percentage
copy
Change the update interval
$ systemd-cgtop -d [interval]
copy
Only count userspace processes (no kernel threads)
$ systemd-cgtop -P
copy

SYNOPSIS

systemd-cgtop [options]

DESCRIPTION

systemd-cgtop shows the top control groups by resource usage, similar to top but organized by cgroups. It displays CPU, memory, and I/O statistics for each control group.The tool is useful for monitoring resource consumption by services and understanding which systemd units are using system resources. Interactive mode supports keyboard shortcuts for changing display options.

PARAMETERS

--order _field_

Sort by cpu, memory, path, tasks, or io
-d, --delay _interval_
Update interval (supports ms, us, min suffixes)
-P
Count only userspace processes
-k
Include kernel threads in counts
-n, --iterations _n_
Run for n iterations and exit
-b, --batch
Run in batch mode (non-interactive)
-r, --raw
Output raw numbers without units
--depth _n_
Maximum cgroup tree depth to show

INSTALL

sudo apt install systemd
copy
sudo dnf install systemd
copy
sudo pacman -S systemd
copy
sudo zypper install systemd
copy
brew install systemd
copy
nix profile install nixpkgs#systemd
copy

CAVEATS

I/O accounting requires appropriate cgroup controllers to be enabled. Some resource statistics may not be available depending on kernel configuration. Part of the systemd suite.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid