Skip to content

mantvmass/ztop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ztop

Linux Windows License

A terminal system monitor for Windows and Linux. Displays CPU, memory, disk, network, GPU, and processes in a single screen.

ztop running in a terminal

Building

Requires a recent Rust toolchain.

cargo build --release

The binary is placed at target/release/ztop.

Live GPU statistics (usage, VRAM, temperature) come from:

  • NVIDIAnvml-wrapper. Cross-platform, enabled by default. Pass --no-default-features to skip it.
  • AMD on Linux/sys/class/drm/card*/device/ (gpu_busy_percent, mem_info_vram_*, hwmon/temp*_input). Requires the amdgpu driver. No extra dependency, always compiled on Linux.
  • Intel and other vendors — no driver-agnostic source; fields stay N/A.

Adapter enumeration via wgpu is always enabled.

Keys

q  Esc  Ctrl-C        Quit
↑ ↓                   Move selection
PgUp  PgDn            Page up / down
Home  End             Jump to top / bottom
← →                   Scroll the name column
Mouse wheel + click   Supported
s     Cycle sort key   (CPU → memory → PID → time → name)
r     Reverse sort
t     Toggle tree view
c     Cycle category   (all → system → user → startup → other)
/     Search           Use n / N to step through matches
\     Filter           Updates as you type

F9 / k   Kill the selected process (confirms before sending)
F8       Send a signal by number (9, 15, 1, 2, …)
F7       Renice

Inside a prompt, Enter commits and Esc cancels.

Notes

  • Renice currently reports N/A on both platforms. Windows uses SetPriorityClass rather than the POSIX nice scale, and the Linux side has not been wired up. The system renice command can be used as a workaround.
  • Load average is hidden on Windows. The kernel does not expose one.
  • GPU temperature is reported for NVIDIA (any OS, via NVML) and for AMD on Linux (via amdgpu sysfs hwmon). Intel and other vendors report N/A.
  • Process CPU% follows the htop convention: 100% represents one fully utilised core, so multi-threaded processes may exceed 100%. Task Manager normalises against total system CPU, which is the source of the difference.

License

Released under the MIT License. See LICENSE for the full text.

About

A terminal system monitor for Windows and Linux. Displays CPU, memory, disk, network, GPU, and processes in a single screen.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages