Is it reasonable to make a RAID-1 array with a ram disk and a physical disk to maximize read performance and protect data?

Posted by Petr Pudlák on Server Fault See other posts from Server Fault or by Petr Pudlák
Published on 2012-11-25T20:35:05Z Indexed on 2012/11/25 23:08 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

In one of the answers on SO (I forgot which one) I've seen a suggestion to make a RAID-1 array composed of a RAM disk and a physical partition. By adding the physical partition with --write-mostly and enabling --write-behind the system should read everything instantly from the RAM disk but still save all data to the physical partition so that the data are preserved and the RAID array can be assembled again after reboot.

Is such a setup reasonable? Will it perform any better in some scenario than having just the physical partition and perhaps tweaking the kernel to favor disk cache (swappiness and vfs_cache_pressure)?

© Server Fault or respective owner

Related posts about linux

Related posts about mdadm