Skip to content

Instantly share code, notes, and snippets.

@Drewlius
Created May 20, 2026 19:07
Show Gist options
  • Select an option

  • Save Drewlius/d75c791079f9aba74e1545baf89acc5c to your computer and use it in GitHub Desktop.

Select an option

Save Drewlius/d75c791079f9aba74e1545baf89acc5c to your computer and use it in GitHub Desktop.
Interactive Nvidia GPU Monitoring Utility

Nvmon

work in progress

-- I may iterate on this in the future I may not --


  • Install dependencies via your package manager if you do not already have them

  • make the script executable

  • chmod +x /<SCRIPT LOCATION>

  • Run the script with its absolute path. It should not require sudo or root access.


Current functionality

After launching my script in your favorite shell, You will be prompted with the options. You must select a number for your desired option. Depending on what you have selected you may have another parameter to select such as Fast or Slow logging. Options are selected with the numerical characters curently 1 - 3. This may change in the future if i decide to iterate on this further.

Currently Available Tools to Choose From

NVTOP

NVIDIA-SMI dmon (detailed GPU STATS AUTO SCROLLING) OPTIONS ARE FAST AND SLOW

NVIDIA-SMI pmon (detailed GPU RUNNING PROCESSES AUTO SCROLLING) OPTIONS ARE FAST AND SLOW

nvtop
nvidia-utils
#!/bin/bash
read -n1 -p "1:NVTOP 2:NVIDIA-SMI DMON 3:NVIDIA-SMI PMON > " c; echo
case $c in
1) nvtop ;;
2) read -n1 -p "1:FAST 2:SLOW > " d; echo
case $d in
1) nvidia-smi dmon -s u ;;
2) nvidia-smi dmon -d 1 ;;
esac
;;
3) read -n1 -p "1:FAST 2:SLOW > " e; echo
case $e in
1) nvidia-smi pmon -s u ;;
2) nvidia-smi pmon -d 1 ;;
esac
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment