I have been experiementing with multiple ways of setting up a SAN for both VMs and media files. The hardware I have are:
Performance, as you can expect, is poor. The HDD RAID cannot handle movie playback and a file copy at the same time!! And the SSD write latency sometimes spikes up to several seconds (ESXi always do synchronous writes).
② I then experimented with using 2x250GB TLC SSDs (in RAID 1) as write-back caches for the HDDs (using LVM2/mdcache).
This improved write speed & IOPs a bit but is ultimately limited by the write buffer on the SSDs (slows down to <200MB/s after ~4GB continuous write). Random read IO is also extremely poor. So it seems I am gaining little from the cache SSDs and there will be no hope of using this as a SAN for VMs.
③ I am now looking at using Intel Optane memory as write cache (or maybe ZFS ZIL) instead. It should have better write endurance and IOPs. However, I wonder if it is useful to have the TLC SSDs in this array at all?
④ Would I be better off having an bulk storage SAN with a cheaper (non-Optane) MLC SSD and a separete TLC SSD RAID just for VMs?
- 8x 2TB HDDs (a mix of 5600 and 7200RPM ones)
- 3x 120GB TLC SSDs
- 2x 250GB TLC SSDs
- 2x 32GB Intel Optane memory on order
Performance, as you can expect, is poor. The HDD RAID cannot handle movie playback and a file copy at the same time!! And the SSD write latency sometimes spikes up to several seconds (ESXi always do synchronous writes).
② I then experimented with using 2x250GB TLC SSDs (in RAID 1) as write-back caches for the HDDs (using LVM2/mdcache).
This improved write speed & IOPs a bit but is ultimately limited by the write buffer on the SSDs (slows down to <200MB/s after ~4GB continuous write). Random read IO is also extremely poor. So it seems I am gaining little from the cache SSDs and there will be no hope of using this as a SAN for VMs.
③ I am now looking at using Intel Optane memory as write cache (or maybe ZFS ZIL) instead. It should have better write endurance and IOPs. However, I wonder if it is useful to have the TLC SSDs in this array at all?
④ Would I be better off having an bulk storage SAN with a cheaper (non-Optane) MLC SSD and a separete TLC SSD RAID just for VMs?