On Fri, Jan 10, 2014 at 10:24:07AM -0500, Jeff Moyer wrote: > Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx> writes: > > > This patch set implements pageio as I described in my talk at > > Linux.Conf.AU. It's for review more than application, I think > > benchmarking is going to be required to see if it's a win. We've done > > some benchmarking with an earlier version of the patch and a Chatham card, > > and it's a win for us. > > > > The fundamental point of these patches is that we *can* do I/O without > > allocating a BIO (or request, or ...) and so we can end up doing fun > > things like swapping out a page without allocating any memory. > > > > Possibly it would be interesting to do sub-page I/Os (ie change the > > rw_page prototype to take a 'start' and 'length' instead of requiring the > > I/O to be the entire page), but the problem then arises about what the > > 'done' callback should be. > > For those of us who were not fortunate enough to attend your talk, would > mind providing some background, like why you went down this path in the > first place, and maybe what benchmarks you ran where you found it "a > win?" No need to attend - the LCA A/V team live streamed it over the intertubes and had the recording up on the mirror within 24 hours: http://mirror.linux.org.au/pub/linux.conf.au/2014/Thursday/239-Further_adventures_in_non-volatile_memory_-_Matthew_Wilcox.mp4 > Another code path making an end-run around the block layer is > interesting, but may keep cgroup I/O throttling from working properly, > for example. Well, this is really aimed at CPU cache coherent DRAM speed devices, so I think the per-IO overhead of throttling would be prohibitive for such devices. IMO, those devices will spend more CPU time in the IO path than doing the IO (which is likely to be the CPU doing a memcpy!), so IO rates will be more effectively controlled by restricting CPU time rather than adding extra overhead into the block layer to account for each individual IO.... Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html