On Tue, Jul 28, 2015 at 04:50:21PM +0200, David Sterba wrote: > On Tue, Jul 28, 2015 at 04:30:36PM +0800, Qu Wenruo wrote: > > Although Liu Bo has already submitted a V10 version of his deduplication > > implement, here is another implement for it. > > What's the reason to start another implementation?
I'm really glad to see more experiments around dedup, its one of those features we haven't fully explored. [ ... ] > > > Any early review or advice/question on the design is welcomed. > > The implementation is looks simpler than the Liu Bo's, but (IMHO) at the > cost of reduced funcionality. > > Ideally, we merge one patchset with all desired functionality. Some kind > of control interface is needed not only to enable/dsiable the whole > feature but to affect the trade-offs (memory consumptin vs dedup > efficiency vs speed), and that in a way that's flexible according to > immediate needs. > > The persistent dedup hash storage is not mandatory in theory, so we > could implement an "in-memory tree only" mode, ie. what you're > proposing, on top of Liu Bo's patchset. Agree here, I'd love to see the two patch sets build on each other. If dedup is really valuable, it's worth storing the hashes etc on disk. But the work to confine the tradeoffs will make it much more usable over the long term. -chris -- 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