Slow write to LSI Logic / Symbios Logic SAS1068E

i had to install system [ Debian that is ] on HP DL120G5 server.

all went fine but it turned out write on the disk drives connected to onboard sas/sata controller was horrible. apparently other people experienced similar issue – this controller by default does not enable write cache. but solutions found on the web did not really work for me – they advices to enable write cache in the raid settings; i’ve run:

cd /usr/local/src
wget ftp://ftp.lsil.com/HostAdapterDrivers/linux/lsiutil/lsiutil.tar.gz
tar -zxvf lsiutil.tar.gz
cd lsiutil
make
./lsiutil

but when i tried to go into RAID actions i got:

RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 21
No active physical disks

although disks were connected to LSI controller:

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 42
/proc/mpt/ioc0 is SCSI host 4
 B___T___L  Type       Operating System Device Name
 0   1   0  Disk       /dev/sda    [4:0:0:0]
 0   2   0  Disk       /dev/sdb    [4:0:1:0]

but.. setting Write cache in ‘Change IO Unit settings’ of expert mode:

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] e
14.  Change IO Unit settings (multi-pathing, queuing, caching)
Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 14
Multi-pathing:  [0=Disabled, 1=Enabled, default is 0] 0
SATA Native Command Queuing:  [0=Disabled, 1=Enabled, default is 0] 0
SATA Write Caching:  [0=Disabled, 1=Enabled, default is 1] 1

and rebooting the server did the trick.

before in dmesg i saw:

sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA

now i have:

sd 4:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

and

time (dd if=/dev/zero of=bigfile count=1024 bs=1M; sync)

gives me reasonable 65MB/sec instead of miserable 13.

maybe this post will help someone…

5 thoughts on “Slow write to LSI Logic / Symbios Logic SAS1068E

  1. This helped me check something. Thanks ! :)

    Also, I would recommend to people with UPS systems to enable Write Caching on the LSIUTIl by going to > 21 (Raid Actions) > 32 (Change volume settings) and then enabling Write Caching in there. This helped me a lot to increase the RAID performance, but it is risky on power failures if the raid controller doesn’t come with a BBU (Battery Backup Unit).

    I hope this will also help others.

    Thanks!

    1. nice to know that you found this useful. yes… if the data is important bbu for the raid cache [or equivalent with supercapacitors and non-volatile memory] is a must.

  2. Hello,
    I just wanted to thank you for this post. I was trying to enable write caching on a Dell SAS5/i (LSI1068 and a PCI-X to PCI-e bridge). All the guides i could find on the interwebs suggested to go through the RAID menu, but I couldn’t go down this route as the SAS5/i is a crippled version of the more common 5/ir without any RAID capabilities whatsoever (and even if it had I wouldn’t be using them).
    Now write performance went from 7 to 190 MB/s!

    Thanks again!

Leave a Reply

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)