aws 문서 참고하기: https://aws.amazon.com/ko/premiumsupport/knowledge-center/ec2-memory-swap-file/
64MB * 16 = 1GB
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo vi /etc/fstab
하단에 vi를 열고 하단 내용 추가
/swapfile swap swap defaults 0 0