{"id":1326,"date":"2010-02-12T15:04:49","date_gmt":"2010-02-12T07:04:49","guid":{"rendered":"http:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/?p=1326"},"modified":"2010-02-12T18:12:03","modified_gmt":"2010-02-12T10:12:03","slug":"blockdev-perc-6i-raid-controller","status":"publish","type":"post","link":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/?p=1326","title":{"rendered":"blockdev &#038; PERC 6i RAID controller"},"content":{"rendered":"<p>Recently I have done some informal disk performance test on my newly arrived workstations. (copy a 1GB text file on the same file system).<\/p>\n<p>On a Dell Precsion T3500 with Linux software RAID1 of 2x500GB SATA disk with AHCI enabled :<\/p>\n<p><span style=\"font-size: x-small;\">[root@gsx42 disk1]# time cp a b<br \/>\nreal\u00a0\u00a0 \u00a00m4.499s<br \/>\nuser\u00a0\u00a0 \u00a00m0.054s<br \/>\nsys\u00a0\u00a0 \u00a00m1.367s<\/span><\/p>\n<p>On our busy mail server with PERC6i+ 2x15krpm SAS disk<\/p>\n<p><span style=\"font-size: x-small;\">[root@server mail]# time cp a b<br \/>\nreal\u00a0\u00a0\u00a0 0m57.504s<br \/>\nuser\u00a0\u00a0\u00a0 0m0.209s<br \/>\nsys\u00a0\u00a0\u00a0\u00a0 0m2.859s<\/span><\/p>\n<p>It seems that the R\/W performance of our PERC6i+SAS disk is not very satisfactory when compared to our new\u00a0 workstation though the mail server is much busier. After some research on google, I added the below parameter : blockdev &#8211;setra 16384 \/dev\/drive. The original readahead buffer for Linux is 128k, I changed this to 8M and redo the test :<\/p>\n<p><span style=\"font-size: x-small;\">root@server mail]# time cp a b<br \/>\nreal    0m36.426s<br \/>\nuser    0m0.398s<br \/>\nsys     0m2.673s<\/span><\/p>\n<p>A nearly double in performance!! I also note that this readahead buffer is only useful in sequential read of large files. This may not be useful for lots of random access of small blocks of data. However, for our mail server, it need to handle lot of large mailboxes so this should be useful. And for Vmware server hosting the vms in local storage, this parameter will be useful too.<\/p>\n<p>Useful references :<br \/>\n1. <a href=\"http:\/\/webcms.ba.infn.it\/cms-software\/cms-grid\/index.php\/Main\/TuningDiskServers\" target=\"_blank\">http:\/\/webcms.ba.infn.it\/cms-software\/cms-grid\/index.php\/Main\/TuningDiskServers<\/a><\/p>\n<p>2. <a href=\"http:\/\/www.overclock.net\/linux-unix\/388475-linux-performance-tuning.html\">http:\/\/www.overclock.net\/linux-unix\/388475-linux-performance-tuning.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I have done some informal disk performance test on my newly arrived workstations. (copy a 1GB text file on the same file system).<\/p>\n<p>On a Dell Precsion T3500 with Linux software RAID1 of 2x500GB SATA disk with AHCI enabled :<\/p>\n<p>[root@gsx42 disk1]# time cp a b real 0m4.499s user 0m0.054s sys 0m1.367s<\/p>\n<p>On our [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[3],"tags":[57],"class_list":["post-1326","post","type-post","status-publish","format-standard","hentry","category-computer","tag-linux","odd"],"_links":{"self":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1326"}],"version-history":[{"count":12,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1326\/revisions"}],"predecessor-version":[{"id":1335,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1326\/revisions\/1335"}],"wp:attachment":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}