Using the lab servers
- http://lewisresearchlab.org/computing/ or http://www.math.ualberta.ca/~mduller/LRG-IT/index.html
- We have 4 servers, LRG1 and LRG2 (more powerful), and deneb and gilford (less cores, less memory)
- The servers run in Unix but you can use them to run Python, R, and Matlab code
- Getting started on the servers
- Use PuTTY or MobaXTerm to run commands on the server
- Use WinSCP to send files to the server’s file system, and retrieve files created by your server commands
- Use “top” to see what’s running, “q” to exit
- Tips on how to increase your effectiveness on the server
- Using “screen”, or alternatively, “tmux”
- screen -S giveitaname
- To detach: Ctl-a d
- To attach: screen -d -r name
- Tmux new -t giveitaname
- To detach: ctrl-b d
- To attach: tmux attach -t name
- screen -S giveitaname
- Running code in parallel
- Using “screen”, or alternatively, “tmux”
- Tips on how to cooperate with others on the server
- “nice” command – if your code isn’t super high priority, you can tab it to run after higher priority commands
- Lower number is higher priority (example: nice -n 9 commandname)
- Can do renice command.
- “nice” command – if your code isn’t super high priority, you can tab it to run after higher priority commands
- Shell script example
- #!/bin/bash
- nice -n 9 Rscript server_example_20201123.R
- mail -s “Testing the server’s capability” pt1@ualberta.ca <<< ‘Done’
- Need to set the execution flag on the file, can use winscp file properties or use command line (chmod 700 filename)