ssh instance nvidia-gpu monitoring on macOS with BitBar
brew cask install bitbar
git clone https://github.com/arnav-gudibande/gpu-monitoring.git
cd /your/save/path/gpu_monitoring
chmod +x server_logs.5s.py
open -a BitBar
- set bitbar plugin directory to
/your/save/path/gpu_monitoring
- bitbar -> preferences -> refresh all
-
Adding ssh instances
- say you want to monitor nvidia-gpu utilization on
example_user_name@example_instance_name
- make sure you can ssh to this instance using an ssh key
- to add an instance, set
user_name="example_user_name"
andinstance_name="example_instance_name"
inserver_logs.5s.py
- say you want to monitor nvidia-gpu utilization on
-
GPU configuration
- the current setup can monitor 1 GPU
- find GPU ID using
nvidia-smi
on remote machine - set
gpu_id={GPU_ID}
to configure which gpu to monitor
-
Custom Refresh Rate
- BitBar refreshes according to the script name, in this case:
server_logs.{timeout}.py
- Use BitBar to set a custom refresh
- BitBar refreshes according to the script name, in this case: