{"id":308,"date":"2012-03-06T14:34:50","date_gmt":"2012-03-06T14:34:50","guid":{"rendered":"http:\/\/www.tekhead.org\/blog\/?p=308"},"modified":"2013-04-03T09:24:14","modified_gmt":"2013-04-03T08:24:14","slug":"freenas-0-7-2-nfs-and-iscsi-performance-in-a-vsphere-4-1-lab","status":"publish","type":"post","link":"http:\/\/tekhead.it\/blog\/2012\/03\/freenas-0-7-2-nfs-and-iscsi-performance-in-a-vsphere-4-1-lab\/","title":{"rendered":"FreeNAS 0.7.2 NFS and iSCSI Performance in a vSphere 4.1 Lab"},"content":{"rendered":"<p>While doing some lab testing and benchmarking\u00a0for my upcoming VCAP-DCD exam I came across some interesting results when messing about with NFS and iSCSI using FreeNAS. I plan to re-run the same set of tests soon using the EMC Celerra simulator once I have it set up.<\/p>\n<p>The results are from very simplistic testing using a simple buffered read test only (it would be reasonable to expect write times to be the same or slower, and this is just a quick test for my own info). For this I used the following sample hdparm command in some Ubuntu VMs:<\/p>\n<pre>sudo hdparm -t \/dev\/sda<\/pre>\n<p>A sample output from this command would be:<\/p>\n<pre>\/dev\/sda: \u00a0Timing buffered disk reads: 142 MB in\u00a0 3.11 seconds =\u00a0 45.59 MB\/sec<\/pre>\n<p>As this was a quick performance comparison I only repeated the test three times per storage and protocol type, but even with this simplistic testing the results fairly conclusive.<\/p>\n<p>Test HW was based on my 24GB RAM ESX and\u00a0ESXi cluster in a box solution <em>[hence some results will be faster than you can achieve over a gig network as this is all running on one host]<\/em> running under Windows 7 64-bit with VMware Workstation 8. Components are:<\/p>\n<ul>\n<li>4x ESX\/ESXi 4.1 hosts running in Workstation 8 with an SSD datastore. 4GB RAM and 2x vCPUs each.<\/li>\n<li>1x FreeNAS 0.7.2 instance running in Workstation 8 with an SSD datastore and a SATA datastore. I use this over FreeNAS 8 as it has a significantly smaller memory footprint (512mb instead of 2GB). 1vCPU and 512 MB RAM.<\/li>\n<li>64-bit Ubuntu Linux VMs running nested under the ESX(i) virtual hosts. 1vCPU and 512 MB RAM each.<\/li>\n<\/ul>\n<p>Storage components are:<\/p>\n<ul>\n<li>SATA 2 onboard ICH10R controller<\/li>\n<li>1x Crucial M4 128GB SSD (500MB\/sec Read, 175MB\/Sec Write)<\/li>\n<li>1x Seagate 250GB 7200RPM SATA<\/li>\n<\/ul>\n<p>The results of the testing are as follows:<\/p>\n<table width=\"316\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"128\" \/>\n<col width=\"87\" \/>\n<col width=\"101\" \/><\/colgroup>\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"128\" height=\"20\"><strong>Protocol<\/strong><\/td>\n<td style=\"text-align: center;\" width=\"87\"><strong>Storage Type<\/strong><\/td>\n<td style=\"text-align: center;\" width=\"101\"><strong>Read MB\/sec<\/strong><\/td>\n<\/tr>\n<tr>\n<td height=\"20\">Local VMFS<\/td>\n<td style=\"text-align: center;\">SSD<\/td>\n<td style=\"text-align: center;\">383<\/td>\n<\/tr>\n<tr>\n<td height=\"20\">Local VMFS<\/td>\n<td style=\"text-align: center;\">SATA<\/td>\n<td style=\"text-align: center;\">88<\/td>\n<\/tr>\n<tr>\n<td height=\"20\">FreeNAS 0.7.2 w\/ NFS<\/td>\n<td style=\"text-align: center;\">SSD<\/td>\n<td style=\"text-align: center;\">11<\/td>\n<\/tr>\n<tr>\n<td height=\"20\">FreeNAS 0.7.2\u00a0w\/ NFS<\/td>\n<td style=\"text-align: center;\">SATA<\/td>\n<td style=\"text-align: center;\">5<\/td>\n<\/tr>\n<tr>\n<td height=\"20\">FreeNAS 0.7.2\u00a0w\/ iSCSI<\/td>\n<td style=\"text-align: center;\">SSD<\/td>\n<td style=\"text-align: center;\">175<\/td>\n<\/tr>\n<tr>\n<td height=\"20\">FreeNAS 0.7.2\u00a0w\/ iSCSI<\/td>\n<td style=\"text-align: center;\">SATA<\/td>\n<td style=\"text-align: center;\">49<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>As you can see, FreeNAS with NFS does not play nice with ESX(i) 4. I can confirm that I have seen stats and posts confirming these issues are not aparent in the real world, with NetApp FAS or Oracle Unified Storage (which is aparently awesome on NFS) but for your <strong>home lab<\/strong>, the answer is clear:<\/p>\n<p>For best VM performance\u00a0using FreeNAS 7, stick to iSCSI!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While doing some lab testing and benchmarking\u00a0for my upcoming VCAP-DCD exam I came across some interesting results when messing about with NFS and iSCSI using FreeNAS. I plan [..]<\/p>\n","protected":false},"author":1,"featured_media":320,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[41],"tags":[100,118,119,112,86,94,116,115,117,82,81,540,88],"class_list":["post-308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware","tag-4-1","tag-benchmarking","tag-emc-celerra","tag-esx","tag-esxi","tag-freenas","tag-iscsi","tag-nfs","tag-performance","tag-sata","tag-ssd","tag-vmware","tag-vsphere"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/freenas.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2l3lU-4Y","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/comments?post=308"}],"version-history":[{"count":28,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/308\/revisions"}],"predecessor-version":[{"id":905,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/308\/revisions\/905"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/media\/320"}],"wp:attachment":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/media?parent=308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/categories?post=308"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/tags?post=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}