{"id":120,"date":"2009-11-13T21:06:37","date_gmt":"2009-11-13T20:06:37","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=120"},"modified":"2013-08-14T12:48:00","modified_gmt":"2013-08-14T11:48:00","slug":"slow-write-to-lsi-logic-symbios-logic-sas1068e","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2009\/11\/slow-write-to-lsi-logic-symbios-logic-sas1068e\/","title":{"rendered":"Slow write to LSI Logic \/ Symbios Logic SAS1068E"},"content":{"rendered":"<p>i had to install system [ Debian that is ] on HP DL120G5 server.<br \/>\n<!--more--><br \/>\nall went fine but it turned out write on the disk drives connected to onboard sas\/sata controller was horrible. apparently <a href=\"http:\/\/pocitace.tomasek.cz\/SAS5iRperf\/index.html\">other people<\/a> experienced similar issue &#8211; this controller by default does not enable write cache. but solutions found on the web did not really work for me &#8211; they advices to enable write cache in the raid settings; i&#8217;ve run:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ncd \/usr\/local\/src\r\nwget ftp:\/\/ftp.lsil.com\/HostAdapterDrivers\/linux\/lsiutil\/lsiutil.tar.gz\r\ntar -zxvf lsiutil.tar.gz\r\ncd lsiutil\r\nmake\r\n.\/lsiutil\r\n<\/pre>\n<p>but when i tried to go into RAID actions i got:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nRAID actions menu, select an option:  &#x5B;1-99 or e\/p\/w or 0 to quit] 21\r\nNo active physical disks\r\n<\/pre>\n<p>although disks were connected to LSI controller:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nMain menu, select an option:  &#x5B;1-99 or e\/p\/w or 0 to quit] 42\r\n\/proc\/mpt\/ioc0 is SCSI host 4\r\n B___T___L  Type       Operating System Device Name\r\n 0   1   0  Disk       \/dev\/sda    &#x5B;4:0:0:0]\r\n 0   2   0  Disk       \/dev\/sdb    &#x5B;4:0:1:0]\r\n<\/pre>\n<p>but.. setting Write cache in &#8216;Change IO Unit settings&#8217; of expert mode:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nMain menu, select an option:  &#x5B;1-99 or e\/p\/w or 0 to quit] e\r\n14.  Change IO Unit settings (multi-pathing, queuing, caching)\r\nMain menu, select an option:  &#x5B;1-99 or e\/p\/w or 0 to quit] 14\r\nMulti-pathing:  &#x5B;0=Disabled, 1=Enabled, default is 0] 0\r\nSATA Native Command Queuing:  &#x5B;0=Disabled, 1=Enabled, default is 0] 0\r\nSATA Write Caching:  &#x5B;0=Disabled, 1=Enabled, default is 1] 1\r\n<\/pre>\n<p>and rebooting the server did the trick.<\/p>\n<p>before in dmesg i saw:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsd 4:0:0:0: &#x5B;sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA\r\n<\/pre>\n<p>now i have:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsd 4:0:0:0: &#x5B;sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA\r\n<\/pre>\n<p>and<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ntime (dd if=\/dev\/zero of=bigfile count=1024 bs=1M; sync)\r\n<\/pre>\n<p>gives me reasonable 65MB\/sec instead of miserable 13.<\/p>\n<p>maybe this post will help someone&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>i had to install system [ Debian that is ] on HP DL120G5 server.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":8,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":1888,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/120\/revisions\/1888"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}