{"id":226,"date":"2006-08-10T01:42:33","date_gmt":"2006-08-09T16:42:33","guid":{"rendered":"https:\/\/regex.info\/blog\/2006-08-10\/226"},"modified":"2006-11-17T21:36:48","modified_gmt":"2006-11-17T12:36:48","slug":"adding-a-05tb-drive-an-default-dma-settings","status":"publish","type":"post","link":"https:\/\/regex.info\/blog\/2006-08-10\/226","title":{"rendered":"Adding a 0.5TB Drive and Default DMA Settings"},"content":{"rendered":"\n<p>\n\nYesterday, <span class='nobr'>I went to<\/span> Fry's <a\nhref=\"\/blog\/2006-08-06\/225\">again<\/a> to pick up <span class='nobr'>a Big<\/span>\nDisk for my server (the one hosting <a href=\"\/\">my book's\nsite<\/a> and this blog). <span class='nobr'>I was happily<\/span> surprised to find that they had <span class='nobr'>a\nsale,<\/span> ending that day, on <a\nhref=\"http:\/\/www.seagate.com\/cda\/products\/discsales\/marketing\/detail\/0,1081,704,00.html\">Seagate\n500GB hard drives<\/a>, with a 5-year warranty, no less. Normally $300, they\nwere on sale for $200. <span class='nobr'>I hadn't<\/span> even noticed the sale price, and was\nconsidering <span class='nobr'>a different<\/span> brand (<span class='nobr'>I don't<\/span> have <span class='nobr'>a great<\/span> feeling about Seagate,\nbut then, <span class='nobr'>I don't<\/span> have <span class='nobr'>a great<\/span> feeling about <i>any<\/i> hard disk\nmanufacture, but have not had any experience yet, good nor bad, with\nHitachi, so was considering their 500GB drive for $270) when the sales guy\nnoticed <span class='nobr'>I was<\/span> looking at 500GB drives and pointed out the sale. <span class='nobr'>I appreciated<\/span> that.\n\n<\/p>\n   \n<p>\n\nIt was a fully-boxed disk, not an unboxed bulk OEM version, so has a 5-year\nwarranty. Other brands <span class='nobr'>I noticed<\/span> had a 3-year warranty. <span class='nobr'>The difference<\/span> doesn't seem so great to me, though, since three years from now, <span class='nobr'>I'm sure a<\/span>\n0.5TB disk like this will be cheap, and considered to be on the small side\nof things.\n\n<\/p><p>\n\nAnyway, <span class='nobr'>I bought<\/span> it and drove to the ISP to install it. (<span class='nobr'>I should<\/span> note that my hosting is\ncomplimentary of <a href=\"http:\/\/PeakWebHosting.com\/\">Peak Web Hosting<\/a>\nwith the network managed by <a\nhref=\"http:\/\/www.PeakWebConsulting.com\/\">Peak Web Consulting<\/a>, for which\n<span class='nobr'>I remain<\/span> ever grateful.)\n\n<\/p><p>\n\nI installed the drive and put the most-excellent <a\nhref=\"http:\/\/en.wikipedia.org\/wiki\/ReiserFS\">Reiser file system<\/a>\n(<b>reiserfs<\/b>) onto it. &#8220;<b>df -h<\/b>&#8221; showed <span class='nobr'>a size<\/span> of\n<b>460G<\/b>. Sweet. <span class='nobr'>I then started<\/span> <span class='nobr'>a copy<\/span> of 70 gig worth of data\nfrom <span class='nobr'>a drive<\/span> on loan from <span class='nobr'>a friend.<\/span> <span class='nobr'>I knew it<\/span> would take <span class='nobr'>a while,<\/span> so <span class='nobr'>I\nwhipped<\/span> up <span class='nobr'>a little<\/span> Perl app to watch the drives, calculate running copy\nspeed, and predict when it would complete.\n\n<\/p><p>\n\nIt was slow going. <span class='nobr'>The copy was<\/span> running at less than two megabytes\/second. Ugh.\n\n<\/p><p>\n\nI checked out the disk settings with hdparm (&#8220;<b>hdparm -i \/dev\/hdc<\/b>&#8221;)\nand noticed that <a\nhref=\"http:\/\/en.wikipedia.org\/wiki\/Direct_memory_access\">DMA<\/a> was not\nturned on. <span class='nobr'>I turned<\/span> it on (&#8220;<b>hdparam -d1 \/dev\/hdc<\/b>&#8221;) and saw the copy\nspeed go up by over 11&times;.\n\n<\/p><p>\n\nAn <b>11&times;<\/b> speedup via one setting change.\n\n<\/p><p>\n\nI don't know whether the lack of DMA by default is the drive's fault, the\ncontroller's fault, the motherboard's fault, or the OS's fault, but because\nDMA is turned on for the other drives by default, <span class='nobr'>I suspect<\/span> it's the drive. <span class='nobr'>So be careful<\/span> to check that DMA is on after installing <span class='nobr'>a new<\/span> IDE (aka\n&#8220;ATA&#8221; aka &#8220;PATA&#8221;) drive. (It's not an issue with\ndrives using the more modern <a\nhref=\"http:\/\/en.wikipedia.org\/wiki\/Sata\">SATA<\/a> interface.)\n\n<\/p>\n\n\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p> Yesterday, I went to Fry's again to pick up a Big Disk for my server (the one hosting my book's site and this blog). I was happily surprised to find that they had a sale, ending that day, on Seagate 500GB hard drives, with a 5-year warranty, no less. Normally $300, they were on sale for $200. I hadn't even noticed the sale price, and was considering a different brand (I don't have a great feeling about Seagate, but then, I don't have a great feeling about any hard disk manufacture, but have not had any experience yet, good [...]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/226"}],"collection":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":0,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"wp:attachment":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}