0

I am aware that RAID comes with certain write penalties, etc and that varies at different levels. I am trying to figure out how latency is affected in RAID 1. From my SAN, I can look at the number of writes, reads, bytes, and latency in individual HDD. While others match, latency slightly varies. I am trying to figure out the following.

RAID 1 HDD 1 Write Latency: 24ms HDD 2 Write Latency: 28ms

Does that mean the total write latency = 24ms + 28ms? Or just 28ms? or (24+28/2)ms. I am bound to believe it is 28ms because we are trying to find the max?

sqlbuzz
  • 23

2 Answers2

3

You're completely missing the effect of the HP P2000 G3's write cache!

Random writes will hit the flash-backed DRAM write cache on each controller first, be coalesced and fed to the drives sequentially from cache.

In your setup, as long as you have write caching enabled and the proper RAID level to support your application's sequential throughput needs, there isn't much tuning you can do at the storage level. Add to that the fact that you're connected via 6Gbps SAS links!

There's plenty to start examining at the OS level, though. I/O elevators, filesystem choice, readahead, mount options, etc.

Is your application server running Linux?

ewwhite
  • 201,205
1

Total write latency will be the worse of the set for raid 1. That said, it might not even be that bad. Depending on your raid device/software, it might even allow a small skew.

For example, mdadm has

--write-behind=
Specify that write-behind mode should be enabled (valid for RAID1 only).
If an argument is specified, it will set the maximum number of outstanding
writes allowed. The default value is 256. A write-intent bitmap is required
in order to use write-behind mode, and write-behind is only attempted on
drives marked as write-mostly.