Install the scripts and the dependence prettytable:
git submodule update --init
sudo install prettytable.sh/prettytable /usr/local/bin/
sudo install ./display_gpu_process.sh /usr/local/bin/Then, you can query process by running command display-gpu-process.sh.
-
Download the latest
ttyd, for example:curl -LO https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.$(arch) mv ttyd.$(arch) ttyd chmod +x ./ttyd sudo install ./ttyd /usr/local/bin/
-
Start up the monitor server
ttyd display-gpu-process.sh
You can leverage systemd to automatic start-up the monitor server.
mkdir -p ~/.config/systemd/user
cp ./systemd/gpu-monitor.service ~/.config/systemd/user/
systemctl --user enable gpu-monitor.service
systemctl --user start gpu-monitor.serviceBesides, you can start-up the server right after boot and keep it running without any open session by enable lingering for your own user.
loginctl enable-linger