Amazon EC2

From Mosuma
Jump to: navigation, search

Ephemeral Instance store SLOWER than General Purpose SSD EBS

# 43.7158 s, 24.6 MB/s m1.small instance ephemeral store 
dd if=/dev/zero of=/dev/xvdg1 bs=1G count=1 oflag=direct

# 30.8534 s, 34.8 MB/s m1.small SSD General purpose EBS 
dd if=/dev/zero of=/dev/xvds1 bs=1G count=1 oflag=direct

Time to replace the ephermeral with EBS SSD!

EBS SSD now serves as swap partitions on my instances!

Adding swapfile to micro instances

dd if=/dev/zero of=/var/swapfile bs=1024 count=1048576
mkswap /var/swapfile
echo "/var/swapfile    none    swap sw 0 0" >> /etc/fstab
chmod 0600 /var/swapfile
swapon -a

Debian Images