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?" Swapping is the real reason. Everything else is cherries. One of my colleagues was comparing swapping performance between different interfaces for fast storage (eg NV-DIMMs). I must admit to not actually knowing what his results *were*. We did a bunch of custom hacks to get his performance numbers up, and on the plane here I finally wrestled those custom hacks into an interface that worked for any block device. > 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. Definitely something that should be taken into consideration, although I would *starts handwaving massively* think that we could fit cgroup throttling into bdev_{read,write}_page, by returning an error which causes the caller to fall back to the bio path, which ends up doing ... whatever cgroup throttling would have done if the pageio path didn't exist. -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- 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