For performance testing, you will need to run your code on a VM instance on Amazon Web Services (AWS). Here are the steps for how to get setup for running on AWS. Note that if you are using the shared cluster, you do not need to do any setup.
NOTE: Please don't forget to SHUT DOWN your instances when you're done for the day to avoid burning through credits overnight!
-
Navigate to your "Instances" page in AWS by selecting the correct link in the left hand menu.
-
Click on the button that says
Launch Instances
. Choose theUbuntu Server 20.04 LTS (HVM), SSD Volume Type
AMI: -
Next, under
Key pair (login)
, choose a key pair. You can use the same key pair from assignment 3. Alternatively, you can create a new one. To create a new one, clickCreate new key pair
and give it whatever name you'd like. This will download a keyfile to your computer called<key_name>.pem
which you will use to login to the VM instance you are about to create. -
Scroll down to
Configure storage
and change the size of theRoot volume
to 100 GiB to accomodate the packages we will need to install to make the instance functional for the assignment. -
Once you've done all previous steps, scroll to the bottom and click
Launch instance
Note: m5.8xlarge
instances cost $1.792 / hour, so leaving one running for a whole day will consume $43 worth of your AWS coupon.
- Now that you've created your VM, you should be able to SSH into it. You need the public IP address to SSH into it, which you can find on the instance page by clicking the
View All Instances
button on the current page and then the instance ID for your created instance (note, it may take a moment for the instance to startup and be assigned an IP address): Once you have the IP address, you can login to the instance by running this command:
ssh -i path/to/key_name.pem ubuntu@<public_ip_address>
- Once you SSH into your VM instance, you'll want to install whatever software you need to make the machine a useful development environment for you. For example we recommend:
sudo apt update
sudo apt install emacs25
sudo apt install make
sudo apt install g++
If you're confused about any of the steps, having problems with setting up your account or have any additional questions, reach us out on Ed!
Again, please don't forget to SHUT DOWN your instances when you're done with your work for the day!