DEV Community

Kshitij Raj Sharma
Kshitij Raj Sharma

Posted on

Monitor GPU Usage in WSL debian

NVTOP is like htop but for your graphics module . In this short tutorial I will share how to install nvtop in wsl debian

OS used :

cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Enter fullscreen mode Exit fullscreen mode

1) Verify your graphics driver
In my case I have nvidida graphics

nvidia-smi
Enter fullscreen mode Exit fullscreen mode

It should display details about your graphics , if not first install it

2) Edit your debian source list to include non-free releases

sudo nano /etc/apt/sources.list
Enter fullscreen mode Exit fullscreen mode

2) Modify the source list and add following

deb http://deb.debian.org/debian/ bookworm main contrib non-free-firmware
Enter fullscreen mode Exit fullscreen mode

3) Get update

sudo apt get update
Enter fullscreen mode Exit fullscreen mode

4) Now you can install nvtop

sudo apt install nvtop
Enter fullscreen mode Exit fullscreen mode

Now hit nvtop and you are all set !!

Image description

Top comments (0)