LSI MegaRaid 9260 on Debian 6 ( squeeze ) / Proxmox 2 : MegaCLI + Fimware update + Performance Tuning

Install LSI MegaRaid 9260 cli ( MegaCLI )

add the repository

install megacli

Install latest LSI MegaRaid 9260 firmware

The firmware needs to be updated to P24 and then to P29, otherwise the update will fail with image is corrupted error.
download the latest firmware from http://www.ultralight.org/~azher/linux/RAID/9260-4i/

view the status of the megaraid

Logical drive 0 on adapter 0 status

BBU status

Performance tuning with BBU ( Read Cache, Write Cache, ReadAhead )

Enable Read Cache, and always cache data

Enable disks’ cache

Adaptative ReadAhead

Enable writecache (must have BBU)

Disbale writecache if BBU is bad

Enable NCQ for the drives

confirm the performance tuning

Default Cache Policy: WriteBack, ReadAdaptive, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Cached, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Enabled

megaclisas-status
Report summarized raid status

– Controller informations –
– ID | Model
c0 | LSI MegaRAID SAS 9260-4i

– Arrays informations –
– ID | Type | Size | Status | InProgress
c0u0 | RAID10 | 1089G | Optimal | None

– Disks informations
– ID | Model | Status
c0u0p0 | SEAGATE ST3600057SS 00086SL3N5BC | Online, Spun Up
c0u0p1 | SEAGATE ST3600057SS 00086SL3N9R5 | Online, Spun Up
c0u0p0 | SEAGATE ST3600057SS 00086SL3RBSF | Online, Spun Up
c0u0p1 | SEAGATE ST3600057SS 00086SL3F46G | Online, Spun Up

http://hwraid.le-vert.net/wiki/LSIMegaRAIDSAS

Kernel Tuning

Default (Before):

root@prox:~# cat /sys/block/sda/queue/scheduler
noop anticipatory deadline [cfq]

root@prox:~# pveperf
CPU BOGOMIPS: 64000.68
REGEX/SECOND: 821244
HD SIZE: 94.49 GB (/dev/mapper/pve-root)
BUFFERED READS: 387.55 MB/sec
AVERAGE SEEK TIME: 3.84 ms
FSYNCS/SECOND: 2131.25
DNS EXT: 65.57 ms
DNS INT: 38.45 ms (extremeshok.com)

root@prox:~# dd if=/dev/zero of=/root/ddfile bs=64k count=100k conv=fdatasync
102400+0 records in
102400+0 records out
6710886400 bytes (6.7 GB) copied, 24.043 s, 279 MB/s

root@prox:~# dd if=/root/ddfile of=/dev/null bs=64k count=100k
102400+0 records in
102400+0 records out
6710886400 bytes (6.7 GB) copied, 3.48995 s, 1.9 GB/s

root@prox:~# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 5924 MB in 2.00 seconds = 2963.33 MB/sec
Timing buffered disk reads: 1170 MB in 3.00 seconds = 389.87 MB/sec

Performance Tuning
[social-locker locker_id="c370fc52c7fe44a42" theme="blue" message="Please share this page with your friends to unlock the premium content!" facebook="true" likeurl="https://extremeshok.com" google="true" googleurl="https://extremeshok.com" tweet="true" tweettext="" tweeturl="https://extremeshok.com" follow="true" linkedin="true" linkedinurl="https://extremeshok.com"]

Reboot to apply the performance tuning

[/social-locker]

Tuned (After):

root@prox:~# cat /sys/block/sda/queue/scheduler
noop anticipatory deadline [cfq]

root@prox:~# pveperf
CPU BOGOMIPS: 64001.05
REGEX/SECOND: 832946
HD SIZE: 94.49 GB (/dev/mapper/pve-root)
BUFFERED READS: 476.65 MB/sec
AVERAGE SEEK TIME: 3.49 ms
FSYNCS/SECOND: 2296.46
DNS EXT: 62.17 ms
DNS INT: 36.47 ms (extremeshok.com)

root@prox:~# dd if=/dev/zero of=/root/ddfile bs=64k count=100k conv=fdatasync
102400+0 records in
102400+0 records out
6710886400 bytes (6.7 GB) copied, 23.9527 s, 280 MB/s

root@prox:~# dd if=/root/ddfile of=/dev/null bs=64k count=100k
102400+0 records in
102400+0 records out
6710886400 bytes (6.7 GB) copied, 2.21905 s, 3.0 GB/s

root@prox:~# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 5926 MB in 2.00 seconds = 2964.12 MB/sec
Timing buffered disk reads: 1452 MB in 3.00 seconds = 483.65 MB/sec

1 reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">