Could someone explain the pros and cons for these 2 cache modes on a RAID controller?
Here's what I've gathered...
Write back just writes to the cache memory as fast as it can, and then writes it to the drive at the slower rate as the cache fills up. This is faster, but because data is sitting in the cache longer there is a chance of data loss if there is a crash.
Write through writes to the cache and then to the disk, and then makes sure the data is written to the disk (or something like that, I'm not really sure) This is slower, but safer.
I did some very rough tests by copying a 350MB file from one drive to the RAID 5 array...with write through it took about 25 seconds and with write back it took about 12 seconds.
This was with a promise fasttrack SX4000 with 256MB ECC cache...four 160GB drives in RAID 5.
The default option was write through and believe me, I did notice the slow write speeds. Should I change this to write back for faster speeds, or is it actually unsafe? How long does data sit in the cache? If it's a matter of a few seconds, then I really don't think that's a problem. Opinions ?
Here's what I've gathered...
Write back just writes to the cache memory as fast as it can, and then writes it to the drive at the slower rate as the cache fills up. This is faster, but because data is sitting in the cache longer there is a chance of data loss if there is a crash.
Write through writes to the cache and then to the disk, and then makes sure the data is written to the disk (or something like that, I'm not really sure) This is slower, but safer.
I did some very rough tests by copying a 350MB file from one drive to the RAID 5 array...with write through it took about 25 seconds and with write back it took about 12 seconds.
This was with a promise fasttrack SX4000 with 256MB ECC cache...four 160GB drives in RAID 5.
The default option was write through and believe me, I did notice the slow write speeds. Should I change this to write back for faster speeds, or is it actually unsafe? How long does data sit in the cache? If it's a matter of a few seconds, then I really don't think that's a problem. Opinions ?