> In fact that brings up another point - which path do you use by
> default? [...]
the one that is defined to be the first in the MD set.
> If you have the SAN situation where you have a farm of servers each
> with two FC cards two two FC switches and then to two ports on a
> storage array, you don't want everything going to the first switch.
> Just picking one path to use at random would be preferable (unless you
> want to swap every other servers cables around).
raid1's read balancing code done by Mika Kuoppala does exactly the same
thing.
(just randomly distributing will lead to very bad performance, due to the
high granularity of the Linux block-IO interface. So you want to do a
certain amount of clustering across requests, before switching paths.)
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/