Swap across multiple storage hardware
Swap across multiple storage hardware
Posted Apr 10, 2025 14:51 UTC (Thu) by Wol (subscriber, #4433)In reply to: Swap across multiple storage hardware by aeden
Parent article: Three ways to rework the swap subsystem
Or you can explicitly assign a priority to each, and the kernel will stripe (aka create a raid-0) across all devices of equal priority. So no, actually creating your own raid-0 is not a good idea.
The other thing is there's two types of raid-0 - there's the striping you're thinking of, and there's sequential (which iirc is what swap does by default) where raid will fill one device before moving on to the next.
The only time raid'ing swap makes sense is if you do a raid-1, so the system is hardened against swap-device-failure.
Cheers,
Wol
