On Tue, Jan 21, 2014 at 04:52:00PM +0000, Hugo Mills wrote: > On Tue, Jan 21, 2014 at 07:25:43AM -0500, Austin S Hemmelgarn wrote: > > > Maybe this happens already: Might a similar effect be automatically > > > achieved by tracking per-device I/O load averages and distributing > > > reads based on the I/O loads of possible read devices? > > > > > That might be the case, it depends on how the I/O load averages are > > calculated. I actually hadn't realized BTRFS did this, I thought it > > behaved more like MD RAID (that is, distributing the reads among devices > > in a un-weighted round-robin fashion). > > I think David tried that a while ago, and the benchmarks were > actually worse. I'm not sure how much investigation he did into why, > though.
I haven't done any extensive testing, only streaming writes, and the heuristic just batched writes by a given threshold before switching to another mirror. Load balancing was done without any logic that would look at actual IO load of the devices. For me, the result was that there's room for improvement. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html