Skip to content
GladTechInfoPublic

About

Terminal system monitor: CPU, memory, disks, network and processes — in the style of igtop

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

50 Commits

Folders and files

Repository files navigation

istop

Licence: GPL-3.0-or-later Latest release CI Rust 1.88 or later Platform: Linux x86-64

istop 0.5.3 on a 44-thread Proxmox VE host, switching the guest CPU and memory columns to the right edge and back

Install — on any x86-64 Linux, one command installs the latest release (.deb, .rpm or a static binary, checked against the release's SHA256SUMS):

sh -c "$(curl -fsSL https://raw.githubusercontent.com/GladTechInfo/istop/main/install.sh)"

Then run istop; q quits and ? lists every key. More in Quick Start and Installation.

A terminal system monitor for Linux: CPU, memory, disks, network and processes in one screen. It labels every process with the Proxmox container or VM, Docker or Podman container it runs in, shows ZFS pools and the ARC the way ZFS counts them, and scales network graphs to the port's link speed. It is the system-wide companion to igtop (GPUs) and iztop (ZFS pools), and shares their look.

Contents

  1. Introduction
  2. Features
  3. Screenshots
  4. Quick Start
  5. Installation
  6. Usage Guide
  7. Keyboard Shortcuts
  8. Understanding the Interface
  9. Advanced Usage
  10. Technical Details
  11. Development
  12. Licence

1. Introduction

What istop is

istop is an interactive system monitor that runs in a terminal, in the tradition of top, htop and btop. One screen shows how busy each processor thread is, how memory is used, how much space and I/O each disk has, how much network traffic is flowing, and which processes are responsible. You can sort, filter and inspect processes, send them signals and change their priority.

The problem it solves

General-purpose monitors treat a virtualisation host like any other machine, which hides the questions that matter on one:

Question What istop does
Which guest is this process? The WHERE column names the Proxmox container (CT 101) or VM (VM 105), or docker / podman.
Who owns this process inside an unprivileged container? Users are looked up in that container's own user list, so they show by name rather than as a shifted number such as 100033.
Is memory really full on a ZFS host? The ZFS ARC, which the kernel counts as used although most of it can be reclaimed, is set apart within USED, as is ZFS's dirty data (writes not yet on disk), and has its own section: what it holds, its hit rate and its misses.
How full is the pool? ZFS pools are shown once each, with space as zfs list counts it and I/O from the member disks, or (z) through the datasets as btop counts it.
How much of the 10 Gbit/s port is in use? The network graph's full height is the port's link speed by default.

istop also never writes its configuration file unless you press W (Shift+W), so trying a setting never changes your defaults by accident.

Who it is for

  • Linux beginners who want a clear, readable picture of what their machine is doing.
  • Proxmox VE, Docker and Podman administrators who need to see which guest is responsible for load.
  • ZFS users, who get pool space and ARC figures that match ZFS's own tools.
  • Advanced users and developers, who get a scriptable --once mode and documented data sources.

2. Features

Area Features
CPU Busy, user, system, iowait and steal; temperature, package power and clock where available; one bar per thread; ten minutes of history; load averages, running and blocked tasks, context switches and interrupts.
Memory Used, cache and swap; on ZFS hosts, the ARC against its ceiling, split into MFU data, MRU data, metadata, dnodes and other, with hit rate and misses per second; available, free, shared and dirty memory.
Disks Local filesystems and ZFS pools: space, read and write rates, and a history of how busy each device is. A menu (d) chooses which are shown and in what order.
Network Receive and send graphs for one interface, scaled to the link speed, automatically, or to a fixed rate. Follows the busiest physical port unless you choose one.
Processes Flat list or tree; sort by PID, location, user, name, nice value, threads, CPU time, CPU use or memory; filter; a detail box with CPU history, disk I/O, cgroup and command line; signals and renice; mouse support.
Containers Proxmox CT and VM, Docker and Podman labels on every process; container users by name. On Proxmox VE, a guests view (v) lists each VM and container as one row, its processes added together, in VMID order.
Header Host name, clock, uptime, battery, and the container istop itself runs in.
Configuration Optional key = value file, written only when you press W (Shift+W).
Scripting --once prints every figure as plain text.
Small and safe One static binary with no dependencies; written in Rust with #![forbid(unsafe_code)].

3. Screenshots

These screenshots and animations show istop 0.5.3 running in a 212-column terminal on a 44-thread Proxmox VE host with 252 GiB of memory and four ZFS pools during its normal workload. The host appears as node1. Identifying names and process arguments have been anonymised.

The whole screen, with each area numbered — explained in Understanding the Interface.

istop: annotated interface

The detail box (Enter) for a selected process, above the process list.

istop: process detail box

Guests first (v) shows one row per Proxmox VM or container. Press Enter to expand a guest. The animation expands the PBS container, moves its live columns to the right edge and back with Shift+V, then switches to the process tree.

PBS expanded, with live CPU and memory columns switching positions before tree view

Beside the guest name (default). CPU%, MEM and MEM% follow the process name. CORES and ALLOC show the guest's configured capacity, and RX/s and TX/s its network traffic.

Expanded PBS guest with CPU%, MEM and MEM% beside the process name

At the right edge (Shift+V). The same guest remains expanded. Its live figures and those of its child processes now line up at the far right. Press Shift+V again to switch back, or Shift+W to save the current position.

Same expanded PBS guest with CPU%, MEM and MEM% at the right edge

Tree view (e) — each process under its parent.

istop: tree view


4. Quick Start

On any x86-64 Linux, one command installs the latest release:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/GladTechInfo/istop/main/install.sh)"
istop                  # start the monitor; q quits, ? lists every key

The install script picks the release file for your system — the .deb on Debian, Ubuntu and Proxmox VE, the .rpm on Fedora, RHEL and openSUSE, the static binary in /usr/local/bin everywhere else, Arch Linux and Alpine included — checks it against the release's SHA256SUMS and installs it, using sudo when you are not root. It prints each command it runs. istop runs as an ordinary user; sudo istop adds a few figures (see Permissions).

Run the same command again to update. To remove istop:

curl -fsSL https://raw.githubusercontent.com/GladTechInfo/istop/main/install.sh | sh -s -- --uninstall

The script also takes --version X.Y.Z (a particular release), --method deb|rpm|bin (another file than the one it picks) and --bindir DIR (where the static binary goes), after sh -s -- as above. To do each step by hand, or to build from source, see Installation.


5. Installation

5.1 Requirements

Requirement Details
Operating system Linux on x86-64 (64-bit Intel or AMD processors).
Privileges None. Root adds CPU package power, other users' disk I/O, and signals or renice for other users' processes.
ZFS (optional) On ZFS hosts, the zfs and zpool commands, for pool space and members. The ARC figure needs only the kernel module.
Font A Nerd Font in your terminal for the icons; otherwise use --no-icons or press i.

Everything else is read from /proc and /sys; there is no daemon and nothing to configure first.

5.2 Choosing an installation method

Method Best for Updates
Release package (.deb, .rpm) Debian, Ubuntu, Proxmox VE, Fedora, RHEL and rebuilds, openSUSE Install the newer package
Arch Linux / CachyOS package Arch Linux, CachyOS and other Arch-based systems Rebuild with makepkg
Static binary Any other x86-64 distribution, including Alpine Replace the file
From source on GitHub Developers; unreleased changes git pull and rebuild

A package-manager installation puts istop under /usr/bin and lets your package manager track, update and remove it. A manual installation (static binary or a source build) puts it wherever you copy it — usually /usr/local/bin — and you update and remove it yourself.

5.3 Release packages (.deb and .rpm)

Every GitHub release carries four files:

File For Installs to
istop_<version>-1_amd64.deb Debian, Ubuntu, Proxmox VE /usr/bin/istop
istop-<version>-1.x86_64.rpm Fedora, RHEL, Rocky Linux, AlmaLinux, openSUSE /usr/bin/istop
istop-<version>-x86_64-linux Any x86-64 Linux wherever you copy it
SHA256SUMS Checksums of the three files above

All three contain the same statically linked binary, so they behave identically everywhere and depend on no system libraries. Before a release's files are uploaded, the release workflow installs, runs and removes each package in containers of Debian 12 and 13, Ubuntu 22.04 and 24.04, Fedora, Rocky Linux 9, openSUSE Tumbleweed and Alpine.

These are packages attached to GitHub releases, not packages in your distribution's own repositories: apt install istop or dnf install istop without a file name will not find them.

Step 1 — download the package and its checksums:

ver=$(curl -s https://api.github.com/repos/GladTechInfo/istop/releases/latest | sed -n 's/.*"tag_name": "v\(.*\)".*/\1/p')
base=https://github.com/GladTechInfo/istop/releases/download/v$ver
curl -LO "$base/SHA256SUMS"
curl -LO "$base/istop_${ver}-1_amd64.deb"        # Debian, Ubuntu, Proxmox VE
curl -LO "$base/istop-${ver}-1.x86_64.rpm"       # Fedora, RHEL, openSUSE

To install a particular version instead of the latest, set it by hand, for example ver=0.4.1.

Step 2 — check the download. This must print OK for the file you downloaded:

sha256sum --check --ignore-missing SHA256SUMS

The packages are not signed; this checksum is the check that the file is the one published here.

Step 3 — install it with the command for your distribution:

Distribution Install command Notes
Debian 12, 13 sudo apt install ./istop_*_amd64.deb The ./ tells apt to install a local file.
Ubuntu 22.04, 24.04 and later sudo apt install ./istop_*_amd64.deb As Debian.
Proxmox VE sudo apt install ./istop_*_amd64.deb As root, omit sudo.
Fedora sudo dnf install ./istop-*.x86_64.rpm
RHEL, Rocky Linux, AlmaLinux sudo dnf install ./istop-*.x86_64.rpm
openSUSE Tumbleweed, Leap sudo zypper install --allow-unsigned-rpm ./istop-*.x86_64.rpm zypper refuses unsigned local packages without the flag.

Step 4 — confirm it works: istop --version, then istop.

5.4 Arch Linux and CachyOS

istop is not yet in the AUR: the package is ready, but AUR account registration was paused when it was prepared. Until it is published, build the same package from this repository with makepkg, which downloads the release's source, compiles it, runs the tests and installs the result under /usr/bin through pacman:

sudo pacman -S --needed git base-devel rust      # build tools, if not already installed
git clone https://github.com/GladTechInfo/istop
cd istop/packaging/aur
makepkg -si                                       # build, then install with pacman

CachyOS and other Arch-based distributions use the same steps. If you use rustup rather than the rust package, leave rust out of the first command. To remove it later: sudo pacman -R istop.

5.5 Other distributions (static binary)

The static binary runs on any x86-64 Linux distribution, whatever its C library, so it suits Alpine, Void, Gentoo, Slackware and others:

ver=$(curl -s https://api.github.com/repos/GladTechInfo/istop/releases/latest | sed -n 's/.*"tag_name": "v\(.*\)".*/\1/p')
base=https://github.com/GladTechInfo/istop/releases/download/v$ver
curl -LO "$base/SHA256SUMS"
curl -LO "$base/istop-${ver}-x86_64-linux"
sha256sum --check --ignore-missing SHA256SUMS                     # must print OK
sudo install -m 0755 "istop-${ver}-x86_64-linux" /usr/local/bin/istop

install -m 0755 copies the file and makes it executable for every user.

5.6 Building from source (GitHub)

Step 1 — install Git, a C linker and curl:

Distribution Command
Debian, Ubuntu, Proxmox VE sudo apt install git curl build-essential
Fedora, RHEL, Rocky, Alma sudo dnf install git curl gcc binutils
openSUSE sudo zypper install git curl gcc binutils
Arch Linux, CachyOS sudo pacman -S --needed git curl base-devel
Alpine sudo apk add git curl build-base

Step 2 — install Rust 1.88 or later with rustup, the official installer (distribution packages are often older — Debian 12 ships 1.63):

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"          # make cargo available in this terminal
rustc --version               # should print 1.88.0 or later

On Arch Linux and CachyOS, sudo pacman -S rustup && rustup default stable does the same.

Step 3 — download the source code and enter it:

git clone https://github.com/GladTechInfo/istop
cd istop

Step 4 — build a release binary:

cargo build --release

Cargo downloads the libraries istop uses, compiles everything with optimisations and writes the program to target/release/istop.

Step 5 — run it: ./target/release/istop

Step 6 — install it system-wide (optional):

sudo install -m 0755 target/release/istop /usr/local/bin/istop

Step 7 — update to the latest source later:

cd istop
git pull
cargo build --release
sudo install -m 0755 target/release/istop /usr/local/bin/istop

To build a particular release, check out its tag first, for example git checkout v0.4.1. For a static binary that runs on other machines, see Static builds.

5.7 Updating

Installed with How to update
Install script Run the install command again.
.deb package Download the newer .deb and install it the same way; apt replaces the old version.
.rpm package Download the newer .rpm and install it the same way.
makepkg (Arch, CachyOS) cd istop && git pull && cd packaging/aur && makepkg -si
Static binary Download the newer binary and repeat the install command.
Source build See step 7 above.

5.8 Uninstalling

Installed with How to remove
Install script curl -fsSL https://raw.githubusercontent.com/GladTechInfo/istop/main/install.sh | sh -s -- --uninstall
.deb package sudo apt remove istop
.rpm package (Fedora, RHEL) sudo dnf remove istop
.rpm package (openSUSE) sudo zypper remove istop
makepkg (Arch, CachyOS) sudo pacman -R istop
Static binary or source build sudo rm /usr/local/bin/istop, and delete the cloned directory if you have one.

The only file istop ever writes is its configuration file, and only when you press W (Shift+W). To remove it too: rm -r ~/.config/istop.


6. Usage Guide

Starting istop

istop

istop fills the terminal with five areas: the header, CPU, memory and disks, network, and processes. Press ? at any time for the list of keys, and q to quit. A larger terminal shows more — more process rows, longer history and a detail box with room to spare.

Permissions

As an ordinary user Additionally as root (sudo istop)
Every figure, except those in the next column. CPU package power (the RAPL energy counters are root-only).
Disk I/O of your own processes in the detail box. Disk I/O of every process.
Signals and renice for your own processes; lowering priority only. Signals and renice for any process, including raising priority.

Everyday examples

Command What it does
istop The monitor.
sudo istop Adds CPU power and every process's disk I/O.
istop -s mem Sorts processes by memory.
istop -s mem -r The same, smallest first.
istop -f nginx --tree Starts filtered to processes matching nginx, in tree view.
istop -i 500 Samples twice a second.
istop --once Prints one plain-text snapshot and exits.
istop --default-config Prints every setting with its description.

Working with processes

  1. Select a process with ↑ ↓, PgUp PgDn, Home End, or a mouse click.
  2. Sort with ← → to move between columns; r reverses the order. The sorted column has a ▼ or ▲ beside its name.
  3. Filter with / or f, type part of a name, command line, user or container label, or an exact PID, and press Enter to keep the filter (Esc clears it). Matching ignores case. The process box's title shows the filter.
  4. Inspect with Enter (or a second click on the selected row): the detail box opens above the list. Enter again or Esc closes it.
  5. Act with k for the signal menu or N to renice. Both ask for confirmation through their own menu, and Esc cancels.
  6. Per guest on Proxmox VE: v lists every VM and container first, one row each with its processes added together, so each guest's CPU and memory can be read at a glance. Enter on a guest row lists its processes beneath it; o changes the guests' order.

Filter typed in the process box title

The process title shows the active filter, pve.

Collapsed guests with live CPU and memory beside their names

Press Enter on a guest to inspect its processes and their owners.

Troubleshooting

Symptom Cause and remedy
CPU power is missing or n/a The RAPL counters are readable by root only; run sudo istop. Inside a VM or container they are usually absent.
No CPU temperature The CPU's sensor driver is not loaded (k10temp or zenpower on AMD, coretemp on Intel), or istop runs in a VM. ls /sys/class/hwmon/*/name lists the sensors the kernel offers.
A ZFS pool is missing from the disks box istop needs the zfs and zpool commands: check that zfs list works. Also check disk_hidden in the configuration, or press d.
A disk you hid has gone for good Press d, then r, to show every disk again in the default order.
A network share is missing from the disks box By design: network filesystems are never shown, because asking an unreachable server for its free space blocks.
Squares or question marks instead of icons The terminal font lacks Nerd Font glyphs. Install a Nerd Font, or use --no-icons (icons = false to keep it).
Illegal instruction from a binary you built Your Rust standard library contains AVX-512; see Static builds.
The configuration file is reported as having errors istop reports each faulty line with its number and applies the rest; istop --default-config shows the valid keys.

7. Keyboard Shortcuts

Press ? or F1 in istop for this list. Help closes on any key.

istop's help window

General

Key Action Explanation
q, Ctrl+C Quit Restores the terminal and exits.
Esc Close, clear or quit Clears an active filter first; otherwise closes the detail box; otherwise quits.
?, F1 Help Shows every key, the menus' included. On a short screen ↑ ↓ PgUp PgDn Home End scroll it (the title then says so); any other key closes it.
Space Pause or resume Stops sampling and freezes the display. Every rate starts afresh on resume. In tree view, Space folds or unfolds the selected branch instead.
+ (or =) Sample faster Steps the interval down: 10000 → 5000 → 2000 → 1000 → 500 → 250 → 100 ms. In tree view, unfolds the selected branch instead.
- (or _) Sample slower Steps the interval up the same ladder. In tree view, folds the selected branch instead.
1 2 3 4 Show or hide boxes 1 CPU, 2 memory and disks, 3 network, 4 processes. At least one box always stays shown; the remaining boxes take the space.
d Disks menu Choose which disks and pools are shown, and in what order. See Disks menu.
z ZFS pool I/O Pool read and write rates from the member disks (physical) alone, or with the I/O through the ARC beside them in violet. See Disks.
s Damping on or off Damped bars (rise fast, fall slowly) or raw bars.
i Icons or ASCII Nerd Font glyphs or plain ASCII letters.
W (Shift+W) Save settings Writes the current settings to the configuration file. Nothing is saved otherwise.
Ctrl+Z Suspend Returns you to the shell; fg resumes istop.

istop with the CPU box hidden

After 1: the CPU box is hidden and the process list takes the space. Press 1 again to bring it back.

istop with ASCII markers

After i: icons are replaced by ASCII characters, for terminals without a Nerd Font.

Processes

Key Action Explanation
↑ ↓ Select Moves the selection one row.
PgUp PgDn Select by page Moves one screenful.
Home End First or last Jumps to the top or bottom of the list.
← → Sort column Moves the sort to the previous or next column.
r Reverse Reverses the sort order.
/, f Filter Type to filter; Backspace edits; Enter keeps the filter; Esc clears it. Delete also clears a kept filter.
Enter Detail box Opens or closes the detail box for the selected process. Needs a process box at least 14 rows high.
e Tree view Switches between the flat list and the tree.
E Fold or unfold all In tree view: folds every branch, or unfolds them all if any are folded.
v Guests first On Proxmox VE: one row per VM and container, its processes added together, above the host's own processes (title: guests first). Enter on a guest row lists or hides its processes. Signals and renice act on single processes only.
Shift+V Guest CPU and memory columns In guests first, move CPU%, MEM and MEM% between the guest name and the right edge. Shift+W saves the position.
o Guest order With guests first: by VMID alone, VMs and containers mixed (vmid); VMs then containers (vm-first); or containers then VMs (ct-first, the Proxmox tree's default), each type in VMID order.
u Pause the list Freezes the process list (title: list paused) while the rest keeps updating, so rows stop moving while you read or select.
c CPU % basis Switches between a share of one thread (as top: four busy threads read 400) and a share of the whole machine. The process box title says which.
t Kernel threads Shows or hides kernel threads.
k Signal menu Opens the signal menu for the selected process (K when vim_keys is on).
N Renice Opens the renice menu for the selected process.

Signal menu. Press the letter of a signal to send it, or any other key to cancel. The result (sent TERM to 1234, or the error) appears in the header.

Signal menu

Key Signal Key Signal
t TERM (15) — ask to exit q QUIT (3)
k KILL (9) — force exit s STOP (19) — freeze
i INT (2) — as Ctrl+C c CONT (18) — unfreeze
h HUP (1) — often "reload" 1, 2 USR1 (10), USR2 (12)
a ALRM (14) w WINCH (28)
p TSTP (20)

Renice menu. ↑ or + raises the nice value (lower priority), ↓ or - lowers it (higher priority), from −20 (highest) to 19 (lowest); Enter applies it and any other key cancels.

Renice menu

Network

Key Action Explanation
n, b Next or previous interface Steps through every interface, including bridges and virtual ones.
a Automatic Returns to following the busiest physical port.
m Graph scale Steps through: link speed (default) → auto → each fixed scale below the link speed (100M, 1G, 10G, 25G, 40G, 100G) → link speed. The header confirms the choice.

Header confirming the network scale

After m on a 10 Gbit/s port: the scale steps from the link speed to auto.

Disks menu

Disks menu

Key Action
↑ ↓, Home End Select a row.
Space, Enter Show or hide the selected disk or pool.
Shift+↑ Shift+↓, + - Move the selected row up or down.
r Default order, everything shown.
W (Shift+W) Save the choice to the configuration file.
Esc, d, q Close the menu.

Mouse

With mouse = true (the default): a click selects a process, a second click on the selected row opens its detail box, and the wheel scrolls three rows at a time.

Vim keys

With vim_keys = true in the configuration: j k move down and up, h l change the sort column, g G jump to the first and last process, and the signal menu moves to K.


8. Understanding the Interface

istop: annotated interface

No. Area What it shows
1 Header Host name, clock, uptime, sampling interval; battery and istop's own container when they apply; messages after a key press.
2 CPU summary line Load averages, running and blocked tasks, processes, threads, context switches, interrupts, clock (and power as root).
3 CPU breakdown How the processor time was spent; temperature, power and clock bars where available.
4 Per-thread bars One bar per hardware thread.
5 CPU history Ten minutes of total CPU busy.
6 Memory Used, cache, ZFS ARC and swap; on ZFS hosts, what the ARC holds, its hit rate and misses.
7 Disks Local filesystems and ZFS pools: busy history, rates, space.
8 Network Receive and send graphs for one interface.
9 Processes The process list or tree.

Colours

Bars are coloured cell by cell along a ramp from green through amber to red, so a bar's colour at its tip says how full it is before you read the number. The dotted part of each row is the empty track. Figures follow the same colours.

A bar made of parts of a whole — the parts of the ZFS ARC, or of USED on a ZFS host — gives each part its own colour instead, with a grey │ between parts. The dividers take their cells from the biggest part, so a part only one cell wide stays visible.

Layout

On a terminal 110 columns wide or more, with the CPU, memory and network boxes all shown, the memory box sits directly under the CPU bars, and the CPU history beside it under the per-thread bars, inside the CPU box's frame. Disks and network follow underneath. On a narrower terminal, or with any of those three boxes hidden (1, 2, 3), each box is drawn whole, one under another, and the memory box shows the ARC as a single bar.

Header (1)

The host name in bold cyan, istop, the clock (local time, read from /etc/localtime), up and the time since boot, then the sampling interval. On a laptop, the battery's charge (and draw, where reported) appears; if istop itself runs inside a container, its type (docker, podman, lxc and so on) is shown. Messages such as sent TERM to 1234 or network graph scale: 100Mbit/s appear here briefly.

CPU (2–5)

CPU box

The box title names the CPU model and the number of hardware threads.

Item Meaning
load The 1-, 5- and 15-minute load averages: roughly, how many tasks were running or waiting to run. Compare with the thread count.
run, blocked Tasks running now, and tasks blocked waiting for I/O.
procs, threads Processes and threads in existence.
ctx, irq Context switches and interrupts per second.
clock The mean current clock of the CPU threads, from cpufreq (scaling_cur_freq); without cpufreq, as in most VMs, from /proc/cpuinfo.
power CPU package power, as root only.
CPU Busy: all time except idle and iowait.
USER, SYSTEM Time running programs, and time in the kernel on their behalf.
IOWAIT Idle time during which I/O was outstanding — a sign that disks are the bottleneck.
STEAL Time the hypervisor gave to another guest; only ever non-zero inside a VM.
TEMP CPU package temperature against its critical limit (shown where a sensor exists).
POWER CPU package draw against the long-term power limit (PL1), as root.
CLOCK Current clock against the maximum.
Per-thread bars Busy share of each hardware thread, numbered from 0.
History Total CPU busy, one column per second of sampled time, newest at the right; the title shows the peak and the span shown.

Memory (6)

Memory and disks

Item Meaning
Title figure Total memory.
available Memory that could be given to a new program without swapping — the kernel's own estimate (MemAvailable).
free Memory not used for anything. Low free is normal; Linux uses spare memory as cache.
cache The page cache: Cached (file contents), Buffers and SReclaimable, less Shmem (shared memory and tmpfs live in Cached but cannot be dropped, so they count as used). Most of it is given back when programs need memory. The ZFS ARC is not part of it.
shared, dirty Shared memory (tmpfs and similar), and data waiting to be written to disk.
USED Memory in use: total minus free, caches included. The bar shows the same amount in parts that do not overlap, in the order used | cache | arc: programs, guests, shared memory and the kernel (blue), the page cache (cyan), then on a ZFS host the clean ARC (violet) and ZFS dirty data not yet written (red). The figure on the right is where the bar ends; available in the line above says how much programs can still get. The kernel does not count the ARC as available although most of it can be given back when programs need memory.
SWAP Swap in use against swap total.
ZFS ARC On ZFS hosts: the ARC's size against its maximum (c_max), split into data on the most frequently used list (MFU, green), data on the most recently used list (MRU, blue), metadata (amber), dnodes (violet) and other (red: headers, dbufs, bonus buffers, and data on neither list — dirty data not yet written and blocks read once and not kept). Data read once sits in MRU; data read again moves to MFU. An amber │ on the track marks the size the ARC is aiming for (c); it is drawn only on the empty track, so it is hidden while the ARC is at or above its target.

On ZFS hosts with the wide layout, the memory box ends with an ARC section:

Item Meaning
zfs arc line The hit rate over the last interval (idle when nothing was read), the target size c, the floor c_min the ARC will not be shrunk below, and the compression ratio of what it holds.
Legend The size of each part of the ZFS ARC bar.
MISSES ARC misses per second, one column per second, scaled to its own peak; the figure is the current rate. A burst is reads the ARC could not serve.

Disks (7)

Column Meaning
Name Mount point, or ZFS pool name.
Type Filesystem type, or zpool.
Busy history A small graph of how busy the device has been: the share of time it had I/O in flight.
r, w Read and write rates in bytes per second. For a pool, the member disks' rates, optionally followed by the ARC's: see below.
% Busy now.
Space Used and total. For a pool, as zfs list counts it (parity excluded).

Only local filesystems are shown, one row per device, and at most six rows; the disks menu (d) chooses which. ZFS datasets are not listed individually: each pool appears once.

A pool's r and w come in two kinds; z (or zfs_io) shows the first alone or both:

  • disk (default): what the member disks did, added up. Parity, mirror copies and ZFS's own metadata are in; reads the ARC answered are not, and writes arrive in bursts as ZFS flushes them. This is what zpool iostat shows.
  • both: the disk figures, each followed in violet by the I/O through the ARC. Reads are what was asked of the pool's datasets and zvols (VM disks included), as btop counts them, plus the stream each running zfs send puts out: reads the ARC answered are in, so they can far exceed what the disks do. Writes are everything written into the pool before parity and mirror copies: file and zvol writes, plus the stream each running zfs receive takes in (a receive writes below the datasets, so their own counters never see it). The box title then reads zfs r/w disk arc.

Busy % and its history are always the member disks'.

Network (8)

Network box

Item Meaning
Title Interface name, graph scale, its position among the interfaces (1/1) and the keys b n m.
RX, TX Receive and send rates now, the peak in view, and the total since boot.
Graphs Receive above, send below, newest at the right.

The scale decides what full height means. link (default) uses the port's negotiated link speed, so the graph's height shows how much of the port is in use; auto fits the traffic in view; fixed scales use a set rate and are never larger than the link speed. Interfaces that report no speed (bridges, most virtual NICs) are drawn automatically under link.

Processes (9)

Process list

Column Meaning
PID Process ID.
WHERE CT n or VM n on Proxmox VE, docker, podman, or host.
USER The owner; inside an unprivileged container, the name from that container's own user list.
PROCESS The program name, followed by its arguments in a dimmer colour. In tree view, branches are drawn with ├─ and └─; an unfolded parent is marked -, and a folded one +N (in amber, with N its number of children) — its row then shows the totals of the whole branch. With guests first (v), a guest row shows the guest's name in blue, marked +N with N its number of processes, with CPU%, MEM and MEM% beside the name by default. CORES and ALLOC show its configured capacity, for example 22 cores and 16.0G (a VM's vCPUs and memory; a container's core and memory limits, where set). RX/s and TX/s show what the guest receives and sends over the network, per second, across all its interfaces. On a narrow terminal CORES gives way first, then ALLOC, then RX/s and TX/s. PID, USER and NI are blank, and the figures are the sums of all its processes, whatever the filter. A faint dotted line fills the rest of the column on every row, to lead the eye to the figures.
NI Nice value: −20 (highest priority) to 19 (lowest).
THR Number of threads.
TIME CPU time used since the process started (minutes:seconds.hundredths).
Bar, CPU% CPU use over the last sample, of one thread by default (c changes the basis).
MEM, MEM% Resident memory, and its share of total memory.

When the box is too narrow for every column, TIME goes first, then THR, then NI; PROCESS keeps at least 8 cells, and CPU%, MEM and MEM% always stay. Below that (about 72 columns) the box says how wide to make the terminal instead of drawing over its own border.

CPU % of the whole machine

After c, the title reads cpu % of the machine. Each process is measured against all 44 threads.

The detail box

Detail box

Field Meaning
History graph (left) The process's CPU use since the box opened, with its peak and scale.
Title line PID, name and state (running, sleeping, disk sleep, stopped, zombie…).
parent Parent PID and name.
user, where Owner and container.
running Time since the process started.
cpu time CPU time used.
nice, threads Priority and thread count.
memory, cpu Resident memory (and share), and current CPU use.
disk io Bytes read and written since start, and the current rates. Other users' processes need root.
cgroup The process's control group path.
command The full command line.

Units

Unit Meaning
B, K, M, G, T Bytes, kibibytes, mebibytes, gibibytes, tebibytes (binary: 1 K = 1024 bytes).
/s Per second.
bit/s Network scales are in bits per second (link speeds); rates beside the graphs are in bytes per second.
% Share of time, or share of a total.
°C, W, MHz Degrees Celsius, watts, megahertz.

Measured, calculated and estimated values

Kind Values
Measured (read directly) Temperatures, clock, memory figures, load averages, link speed, space used, process memory and thread counts.
Calculated (from two readings and the time between them) Every CPU percentage; context switches and interrupts per second; disk and network rates; disk busy; CPU power (energy ÷ time); process CPU %.
Display only Damped bar lengths.

9. Advanced Usage

Command-line options

Option Meaning Default
-i, --interval <MS> Sampling interval in milliseconds, 100–10000. 1000
-s, --sort <KEY> Process sort: pid where user name nice threads time cpu mem. cpu
-r, --reverse Reverse the sort.
-f, --filter <TEXT> Initial process filter.
--tree Start in tree view.
--guests Start with Proxmox VMs and containers first, one row each.
-c, --config <FILE> Configuration file. ~/.config/istop/istop.conf
--default-config Print the default configuration, with descriptions, and exit.
--once Print one plain-text snapshot and exit.
--no-smooth Raw, undamped bars. damped
--damping <SEC> Seconds for a bar to fall by about 90 %, 0.2–30. 4
--fps <N> Animation frame rate while bars move, 5–240. 30
--no-icons ASCII markers instead of Nerd Font glyphs. icons
-V, --version Print the version and exit.
-h, --help Print the help text and exit.

Settings come from the configuration file first; command-line options override them.

Configuration file

The file is $XDG_CONFIG_HOME/istop/istop.conf, normally ~/.config/istop/istop.conf, or the file given with -c. It is plain text: one key = value per line, # for comments. A good start is the default file with every option described:

mkdir -p ~/.config/istop && istop --default-config > ~/.config/istop/istop.conf
Key Values Default Meaning
update_ms 100–10000 1000 Sampling interval in milliseconds.
sort pid where user name nice threads time cpu mem cpu Process sort column.
reverse true, false false Sort the opposite way.
tree true, false false Start in tree view.
guests true, false false Proxmox VMs and containers first, one row each.
guest_metrics_right true, false false Place guest CPU and memory columns at the right edge. Shift+V switches their position.
guest_order vmid, vm-first, ct-first vmid Order of the guest rows: by VMID, or each type by VMID.
per_core true, false true CPU % of one thread (true) or of the machine.
kernel_threads true, false true List kernel threads.
smooth true, false true Damped bars.
damping 0.2–30 4 Seconds for a bar to fall by about 90 %.
fps 5–240 30 Animation frame rate while bars move.
icons true, false true Nerd Font glyphs.
vim_keys true, false false h j k l g G in the process list; signals on K.
mouse true, false true Mouse support.
clock true, false true Clock in the header.
shown_boxes any of cpu mem net proc all four Boxes shown at start.
net_iface interface name, or empty empty Interface shown at start; empty follows the busiest physical port.
net_scale link, auto, 100M, 1G, 10G, 25G, 40G, 100G link Network graph full height.
disk_order mount points or pool names, comma-separated empty These first, in this order; any other follows.
disk_hidden mount points or pool names, comma-separated empty Never shown.
zfs_io disk, both disk ZFS pool read and write rates: member disks alone, or with the I/O through the ARC. logical (0.6.0–0.6.1) is read as both.

The file is written only when you press W (Shift+W), so experimenting never changes it. A disk listed in neither disk_order nor disk_hidden appears after the ordered ones, so a new mount is never lost silently. If a line is invalid, istop reports it with its line number and applies the rest.

Example:

# ~/.config/istop/istop.conf
sort = mem
tree = true
vim_keys = true
net_iface = eno1
net_scale = 10G
disk_order = /, tank
disk_hidden = /boot/efi

Network scale in detail

On a 10 Gbit/s port, m steps link (10G) → auto → 100M → 1G → link. A fixed setting above a port's speed (40G saved, then shown on a 10G port) is drawn at the link speed. Interfaces that report no speed are drawn automatically under link and offer every fixed step.

Scripting with --once

--once samples for one interval, prints a snapshot and exits. Machine-wide figures are key value lines; disks, interfaces and processes are one line each of key=value pairs. Sizes are in bytes (_b), rates in bytes per second (_bps), and a figure the machine does not report is n/a. A real sample, abridged, from the demonstration machine:

host              demo
cpu_model         QEMU Virtual version 2.5+
threads           22
cpu_busy_pct      11.8
cpu_user_pct      8.2
cpu_system_pct    3.6
cpu_iowait_pct    0.0
cpu_steal_pct     0.0
cpu_cores_pct     33 24 9 11 13 6 8 7 15 9 21 12 15 9 7 9 6 12 13 9 8 8
load              2.01 2.44 2.38
temp_c            n/a
cpu_watts         n/a
freq_mhz          2199
uptime_s          14288
mem_total_b       16698425344
mem_used_b        4531499008
mem_in_use_b      9132013568
mem_available_b   12166926336
zfs_arc_b         467973792
zfs_arc_max_b     15624683520
disk path=/ fs=btrfs used_b=44028092416 total_b=59591622656 read_bps=407800 write_bps=0 busy_pct=1 logical_read_bps=n/a logical_write_bps=n/a
disk path=tank fs=zpool used_b=6289717720 total_b=7966982144 read_bps=0 write_bps=0 busy_pct=0 logical_read_bps=81920 logical_write_bps=0
net iface=enp6s18 physical=true rx_bps=58510 tx_bps=1836288 rx_b=9364931574 tx_b=23734618097
proc pid=3 ppid=1 where=host user=root comm=istop nice=0 threads=1 time_s=0.00 cpu=0.0% rss_b=770048 mem=0.0%
  • The process lines are the first 25 in the current sort, after any -f filter, so istop --once -s mem lists the 25 largest.
  • With --guests (or guests = true), every Proxmox guest comes first as a guest line — where, name, procs, threads, time_s, cpu, rss_b, mem, its processes added together, then rx_bps and tx_bps, its network traffic (n/a for a guest with no network interface) — and the proc lines are the host's own processes.
  • --once reports every disk, including those hidden in the configuration.
  • A value containing spaces, quotes or control characters is double-quoted with \\, \" and \xNN escapes, as in where="CT 101". Process names are set by whatever runs in a container, so they are never printed raw.

Examples:

# The busy figure of every disk
istop --once | awk '$1=="disk" {print $2, $NF}'

# The five processes using the most memory
istop --once -s mem | grep '^proc' | head -5

# Warn when available memory falls below 1 GiB
istop --once | awk '$1=="mem_available_b" && $2 < 1073741824 {print "low memory:", $2}'

10. Technical Details

Architecture

istop is a single Rust binary of about 5,600 lines in nine modules, with #![forbid(unsafe_code)]: system calls go through rustix, which makes them directly rather than through the C library.

Module Responsibility
main.rs Command-line parsing, --once, the event loop, keys and mouse.
sys.rs Readers for /proc and /sys: CPU, memory, ARC, mounts, ZFS pools, disks, network, hostname. Each function is a plain read of current counters.
procs.rs The process table, tree, container and user resolution, detail box, signals and renice.
power.rs CPU package power from RAPL, and the battery.
app.rs Joins the samplers, works out rates, keeps history and the damped values.
config.rs The configuration file: parsing, defaults and saving.
clock.rs Local time from /etc/localtime (TZif), without a date library.
ui.rs Rendering with ratatui; bars and graphs are written cell by cell.
theme.rs Colour ramp and glyphs. The glyphs and the ramp's hues are shared with igtop and iztop.
flowchart LR
    subgraph Kernel
        P["/proc: stat, meminfo, loadavg,<br/>diskstats, net/dev, mounts, &lt;pid&gt;/*"]
        S["/sys: cpufreq, hwmon, net,<br/>powercap, power_supply"]
        A["/proc/spl/kstat/zfs/arcstats"]
    end
    Z["zfs list, zpool list<br/>(child processes)"]
    P --> sys[sys.rs] & procs[procs.rs]
    S --> sys & power[power.rs]
    A --> sys
    Z --> sys
    sys --> app[app.rs<br/>rates, history, damping]
    procs --> app
    power --> app
    app --> ui[ui.rs] --> T[(terminal)]
    app --> once["--once text"]
Loading

Data sources

Figure Source
CPU busy, user, system, iowait, steal /proc/stat, as differences between two readings.
Model, thread count /proc/cpuinfo.
Clock /sys/devices/system/cpu/cpu*/cpufreq (scaling_cur_freq, maximum from cpuinfo_max_freq), else /proc/cpuinfo.
Temperature /sys/class/hwmon: Intel coretemp (Package id N), AMD k10temp (Tctl/Tdie) or zenpower, or the cpu_thermal/soc_thermal zone. The limit is the sensor's crit (or max) value, else 100 °C for coretemp and 95 °C otherwise.
Power and limit RAPL package energy counters and constraint_0_power_limit_uw in /sys/class/powercap. Root only.
Load, uptime /proc/loadavg, /proc/uptime.
Memory /proc/meminfo; USED is MemTotal − MemFree, its cache part Buffers + Cached + SReclaimable − Shmem.
ZFS ARC /proc/spl/kstat/zfs/arcstats: size, c, c_min, c_max; data_size, metadata_size, dnode_size, and as other hdr_size, dbuf_size, bonus_size, l2_hdr_size, abd_chunk_waste_size (or other_size before OpenZFS 2.0); mfu_data, mru_data (the rest of data_size counts as other); hits and misses for the hit rate; compressed_size and uncompressed_size for the ratio.
Filesystems /proc/mounts filtered to local types (ext2/3/4, XFS, Btrfs, ZFS, VFAT, exFAT, F2FS, NTFS, bcachefs, JFS, ReiserFS, NILFS2), space from statvfs.
ZFS pools zfs list -Hp -d 0 every 10 s; members from zpool list -vHP every minute.
Disk rates and busy /proc/diskstats: sectors read and written, and milliseconds with I/O in flight.
ZFS ARC rates Reads: /proc/spl/kstat/zfs/<pool>/objset-* nread, one file per mounted dataset and zvol, taken objset by objset so a remount cannot upset the sum. Writes: the same files' nwritten. Plus, from /proc/<pid>/io of each running zfs send and zfs receive, wchar as reads and rchar as writes, credited to the pool its dataset is in (needs root). A compressed or raw send's stream (-c, -w) counts as sent, smaller than the data; a resumed send (-t) is not counted.
Network /proc/net/dev; link speed from /sys/class/net/<if>/speed; an interface with a device link is a physical port.
Processes /proc/<pid>/stat, cmdline, cgroup, io, exe, uid_map, and the container's own /etc/passwd through /proc/<pid>/root.
Battery /sys/class/power_supply.

Process CPU and containers

CPU is the change in a process's utime + stime between two scans, against the wall time between them, as a share of one CPU — the convention top and ps use. Processes are rescanned once a second at most, whatever the sampling interval.

WHERE is read from each process's cgroup path: /lxc/<id> or /lxc.payload.<id> is a Proxmox container, qemu.slice/<id>.scope a Proxmox VM's QEMU process, and docker/libpod paths Docker and Podman. USER inside an unprivileged container is resolved by mapping the UID back through the process's uid_map and looking it up in the container's own /etc/passwd.

A guest's network traffic comes from its interfaces on the host, in /proc/net/dev: a VM's tap<vmid>i<n> and a container's veth<vmid>i<n>, every byte the guest sends or receives (the firewall's fwbr/fwpr/fwln interfaces lie beyond them). The host's receive counter is the guest's TX and its transmit counter the guest's RX. Host processes have no such counter, so only guest rows show traffic. A network card passed through to a VM (PCI passthrough) bypasses the host, so its traffic is not counted.

With guests first, a guest's name, cores and memory come from its configuration in /etc/pve (name, vcpus or cores × sockets, and memory for a VM; hostname, cores and memory for a container; root only). Without it, a VM's name comes from QEMU's -name argument. Its memory is the sum of its processes' resident memory, so pages shared between a container's processes count more than once; it is not the guest's cgroup total, which also counts page cache.

Damping

Bars rise quickly and fall slowly; the time constants are in seconds, so the feel does not depend on the sampling or frame rate. Between samples istop redraws at up to --fps only while a bar is moving, and sleeps once everything has settled. Damping affects only bar lengths: figures and --once are raw.

Safety

  • Network filesystems are never queried: statvfs on an NFS or CIFS mount whose server is down blocks, which would freeze the display.
  • The ZFS commands run in child processes with no input and their errors discarded.
  • Signals and renice go only to the process selected, through an explicit menu.

Dependencies

Crate Version Purpose
ratatui 0.29.0 Terminal user interface.
crossterm 0.28.1 Terminal input and output, mouse.
rustix 0.38 System calls (statvfs, signals, priority, user IDs) without unsafe code in istop.

Limitations

  • Linux on x86-64 only.
  • Network filesystems (NFS, CIFS, SSHFS) are not shown, by design.
  • At most six disk rows are shown; the disks menu chooses which.
  • Container labels cover Proxmox, Docker and Podman; other runtimes show as host.
  • One network interface is drawn at a time; n and b step through the rest.

How istop compares with btop, and why each btop feature was or was not adopted: docs/btop-analysis.md.


11. Development

Building

Task Command
Debug build cargo build
Optimised build for this machine cargo build --release → target/release/istop
Static, portable binary ./build.sh → target/x86_64-unknown-linux-musl/release/istop
Tests cargo test
Lints, as CI runs them cargo clippy --all-targets -- -D warnings

The minimum Rust version is 1.88, set by the locked dependencies in Cargo.lock; the project builds with 1.88.0 and with current stable.

Static builds

build.sh produces a musl-linked static binary for baseline x86-64, so it runs on any x86-64 Linux and any x86-64 CPU. It needs the musl target, and objdump (from binutils) for its final check:

rustup target add x86_64-unknown-linux-musl
./build.sh

The script refuses the result if it contains AVX-512 instructions. Some distributions (CachyOS, for one) ship a Rust standard library built for x86-64-v4, which puts AVX-512 instructions in every binary regardless of -C target-cpu; such a binary dies with Illegal instruction on older CPUs. If build.sh reports this, rebuild the standard library from source:

rustup component add rust-src
ISTOP_BUILD_STD=1 ./build.sh

Packaging

Path Purpose
Cargo.toml → [package.metadata.deb] Debian package, built with cargo deb.
Cargo.toml → [package.metadata.generate-rpm] RPM package, built with cargo generate-rpm.
packaging/aur/PKGBUILD, .SRCINFO Arch Linux package.
.github/workflows/ci.yml On every push: clippy, tests and build.sh.
.github/workflows/release.yml On a published release: builds the static binary, .deb, .rpm and SHA256SUMS, tests them in eight distribution containers, then uploads them.
.github/workflows/aur.yml On a published release: updates and pushes the AUR package (awaiting an AUR account).

Contributing and reporting problems

Bug reports and pull requests are welcome through GitHub issues. Please include istop --version, the distribution and kernel (uname -r), and, where a figure looks wrong, the output of istop --once. Before sending a pull request, run cargo clippy --all-targets -- -D warnings and cargo test.


12. Licence

istop is free software, licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE for the full text.

It is built with ratatui and crossterm (both MIT-licensed) and rustix (Apache-2.0 WITH LLVM-exception, Apache-2.0 or MIT). Its interface follows igtop; the comparison with btop is in docs/btop-analysis.md.

About

Terminal system monitor: CPU, memory, disks, network and processes — in the style of igtop

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages