{"id":428,"date":"2010-01-14T15:04:41","date_gmt":"2010-01-14T20:04:41","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=428"},"modified":"2010-01-14T15:04:41","modified_gmt":"2010-01-14T20:04:41","slug":"freenas-slow-file-copy","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2010\/01\/freenas-slow-file-copy\/","title":{"rendered":"FreeNAS Slow File Copy"},"content":{"rendered":"<p>I recently built a fairly nice NAS system for a customer:<br \/>\n0.7 Khasadar (revision 4919)<br \/>\n2.5GHz Dual Core Pentium<br \/>\n4GB DDR2 PC1066<br \/>\n5x hot swap 2TB SATA<br \/>\n10\/100\/1000 Intel Pro NIC<br \/>\n10\/100\/1000 Full duplex switch connection<\/p>\n<p>After formatting the drives in SoftRAID 5 (1.8TB x 4 = 7.2TB &#8211; 5% for defragmentation = 6.84TB available), I started to backup many of their ISOs and daily computer backups and other logs.  Everything was going smoothly using Windows File Sharing (Samba) until I got to the larger files.<\/p>\n<p>Initially the files would copy at 80+MB\/sec, but then they&#8217;d slow down to 50&#8230; 30&#8230; 20&#8230; even down to 8 or so MB\/sec.  Ouchies when you&#8217;re talking about a 40+GB file to transfer.  FTP yielded the same results.  I noticed that sometimes the drives on the NAS wouldn&#8217;t even be blinking, so it had to be another issue.<\/p>\n<p>If you login on the web panel of the FreeNAS, under Services you will find CIFS\/SMB.<br \/>\nCheck under Advanced Settings<br \/>\nYou&#8217;ll see Send and Receive buffer sizes &#8211; by default they are 16MB (16*1024 = 16384)<br \/>\nI changed the buffer size to 128MB (128*1024 = 131072) and checked the results<\/p>\n<p>120MB\/sec, slow down to 80&#8230; 70&#8230; 60&#8230;  So 60MB\/sec.  That&#8217;s over 6 times faster at a cost of 8 times the RAM.  I can live with that.<\/p>\n<p>So just for jollies I increased it to 512MB and then to 1024MB.  Both stopped around 70MB\/sec.  Then, as a final test, I dropped it down to 256MB (256*1024 = 262144), which seemed to be OK.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently built a fairly nice NAS system for a customer: 0.7 Khasadar (revision 4919) 2.5GHz Dual Core Pentium 4GB DDR2 PC1066 5x hot swap 2TB SATA 10\/100\/1000 Intel Pro NIC 10\/100\/1000 Full duplex switch connection After formatting the drives in SoftRAID 5 (1.8TB x 4 = 7.2TB &#8211; 5% for defragmentation = 6.84TB available), &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2010\/01\/freenas-slow-file-copy\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">FreeNAS Slow File Copy<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-428","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=428"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/428\/revisions"}],"predecessor-version":[{"id":429,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/428\/revisions\/429"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}