{"id":204,"date":"2008-01-24T00:09:31","date_gmt":"2008-01-24T08:09:31","guid":{"rendered":"http:\/\/www.khaitan.org\/blog\/?p=204"},"modified":"2008-01-24T00:09:31","modified_gmt":"2008-01-24T08:09:31","slug":"amazon-ec2-disk-speeds-of-m1small-and-m1large","status":"publish","type":"post","link":"https:\/\/www.khaitan.org\/blog\/2008\/01\/amazon-ec2-disk-speeds-of-m1small-and-m1large\/","title":{"rendered":"Amazon EC2 Disk Speeds of m1.small and m1.large"},"content":{"rendered":"<p>I have been running a two node cluster on EC2 and for the past week or so my database writes have been totally bogged down. After some tests it looked like we&#8217;re hitting the disk I\/0 bottleneck. To my surprise Disk I\/0 was 5-6 times faster on the m1.large instance type.<\/p>\n<p>I ran a cheap command to time the creation of a 1GB file. Here are the results. In both the situations the small test was run on \/mnt which is considered to be a dedicated spindle.<\/p>\n<p><strong>On m1.small<\/strong><br \/>\n<code><br \/>\n[root@]# time dd if=\/dev\/zero of=testfile count=1 bs=1024M<br \/>\n1+0 records in<br \/>\n1+0 records out<br \/>\nreal 0m11.298s<br \/>\nuser 0m0.000s<br \/>\nsys 0m3.390s<\/p>\n<p><\/code><\/p>\n<p><strong>On m1.large<\/strong><\/p>\n<p><code><br \/>\n[root@]# time dd if=\/dev\/zero of=testfile count=1 bs=1024M<br \/>\n1+0 records in<br \/>\n1+0 records out<br \/>\nreal 0m2.982s<br \/>\nuser 0m0.000s<br \/>\nsys 0m2.350s<br \/>\n<\/code><\/p>\n<p>Read about the various EC2 instance types <a href=\"http:\/\/www.amazon.com\/b\/ref=sc_fe_c_0_201590011_2?ie=UTF8&amp;node=370375011&amp;no=201590011&amp;me=A36L942TSJ2AJA\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been running a two node cluster on EC2 and for the past week or so my database writes have been totally bogged down. After some tests it looked like we&#8217;re hitting the disk I\/0 bottleneck. To my surprise Disk I\/0 was 5-6 times faster on the m1.large instance type. I ran a cheap [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/posts\/204"}],"collection":[{"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":0,"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.khaitan.org\/blog\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}