Theres a better way to do that, by setting the priority of 2 separate swap partitions to -1 you will get a stripe effect without the soft raid overhead.
thats right, but setting priority to -1 or equal numbers doesn't create raid1 but raid0 like you said.
if in this case one disk crashes there will be just "50%" of the swapped and striped stuff and the server mostly crashes or not?
Meh kind of, keep in mind just how slow memory->swap and swap->memory performance really is. Adding raid (of any kind) is just going to make that even slower. Could you gain something with an HA approach to swap, maybe.... it depends. Stuff in swap is for the most part comprised of anonymous mappings (data that does not map to a file) and if you had a failing disk it is conceivable that it could cause problems. Its hard to say though, because an anonymous mapping could literally be anything, and the application may not even be using it any more.