Monitoring jobs: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 68: Line 68:
  $ srun --jobid 123456 --pty watch -n 30 nvidia-smi
  $ srun --jobid 123456 --pty watch -n 30 nvidia-smi


It is possible to launch multiple monitoring commands using [[Prolonging terminal sessions#tmux <code>tmux</code>]]. The following command launches <code>htop</code> and <code>nvidia-smi</code> in separate panes to monitor the activity on a node assigned to the given job.
It is possible to launch multiple monitoring commands using [[Prolonging terminal sessions#tmux|<code>tmux</code>]]. The following command launches <code>htop</code> and <code>nvidia-smi</code> in separate panes to monitor the activity on a node assigned to the given job.


  $ srun --jobid 123456 --pty tmux new-session -d 'htop -u $USER' \; split-window -h 'watch nvidia-smi' \; attach
  $ srun --jobid 123456 --pty tmux new-session -d 'htop -u $USER' \; split-window -h 'watch nvidia-smi' \; attach
Bureaucrats, cc_docs_admin, cc_staff
2,306

edits

Navigation menu