MIT Political Science Methodology Lab (PML) Workshop Series
Mason Reece
Gabrielle Péloquin-Skulski
October 18, 2024
Goals
Hands on experience!
xvii
Supercloud
When to Use What
Resource Comparison
XVII – Learning, long-term scraping tasks
Supercloud – Parallellized scripts, large memory requirements, etc.
Setting up XVII
We’ll make you an account
Connecting to xvii via ssh – Mac/Linux use the Terminal, Windows use Powershell
ssh<your username>@xvii.mit.edu
Immediately change your password using passwdand save it somewhere
Basic Linux Commands
ls# List filespwd# Print working directorycd<to># Change directorymv<file><from><to># Move filesmkdir<name of dir># Create new directorynano<file># Command line text editorcat<file># Print contents of filerm-rf<dir or file># Delete stuff (no undo!)find# Finding files/foldersrsync<from><to># Transfer datapasswd# Change your password
Important xvii Commands
htop to check CPU/RAM usage of server
ps aux | grep <username> Prints out all the processes you have running. Useful for killing processes that have stalled or have other issues
kill -i <pid> Kills a process you have running. <pid> comes from the previous command
Time Limits: Jobs are limited to 4 days and 4 hours
Tip: If your task doesn’t complete within this timeframe, your code may need optimization—consider attending a PLM workshop for help.
Only accessible WITHIN the US (I have been able to use it in Canada with a VPN)
Advantages of SuperCloud as Opposed to XVII
Increased power: Access to more computational resources, including thousands of CPU cores and GPUs.
Up-to-date environment: Fewer issues with outdated packages or software compatibility.
Support resources: Available office hours for personalized help, along with extensive online documentation and tutorials.
Disadvantage: - No RStudio interface: Unlike XVII, SuperCloud doesn’t provide a direct RStudio interface for running analyses, requiring users to manage R from the command line
Getting Access to SuperCloud
Complete a cybersecurity training before applying for a SuperCloud account (very short).
Request approval from your advisor/PI by having them email supercloud@mit.edu to confirm that you will be using SuperCloud for your work. Note: SuperCloud will not contact your advisor directly—you must handle this step to get approval.
Note that approval can take up to a week.
Setting Up Your Account
Once you get approval you will receive an email with your username and further instructions to set up your account
You will be working only on the terminal of your computer
Open new console tab, where you are NOT logged in to the MIT account.
Add your files to your SuperCloud account. Note: First part of the code is where the file is located on computer and second part is where you want the file to be located on SuperCloud