Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.24 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.24 KB

gpu-monitoring

ssh instance nvidia-gpu monitoring on macOS with BitBar

Screen Shot 2020-04-10 at 1 17 16 PM

Installation

  1. brew cask install bitbar
  2. git clone https://github.com/arnav-gudibande/gpu-monitoring.git
  3. cd /your/save/path/gpu_monitoring
  4. chmod +x server_logs.5s.py
  5. open -a BitBar
  6. set bitbar plugin directory to /your/save/path/gpu_monitoring
  7. bitbar -> preferences -> refresh all

Configuration

  • 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" and instance_name="example_instance_name" in server_logs.5s.py
  • 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