On Tue, 2017-01-17 at 02:00 -0500, Oleg Drokin wrote: > On Jan 16, 2017, at 3:58 PM, James Bottomley wrote: > > > On Mon, 2017-01-16 at 13:39 -0500, Oleg Drokin wrote: > > > It's all relatively easy when you have a separate mount there, so > > > you can store the credentials in the superblock, but we lose on > > > the cache sharing, for example (I don't know how important that > > > is). > > > > It depends what you mean by "cache sharing". If you're thinking of > > the page cache, then it all just works, provided the underlying > > inode doesn't change. If you're in the situation where the > > container > > It only "just works" if the superblock is the same, if there's a > separate mount per container with separate superblock, then there's > no sharing at all. Accounting of said "shared" cache might be > interesting too, which of the containers would you account against? > All of them? Well, caching is done per address_space, which is can be per inode and as you found, inodes are usually per superblock. There are (dirty) tr icks you can do to force sharing at the address space level if you know it's the same file. There was also mention of a ksm like mechanism to force the sharing. Like I said, it was the VZ people who had patches. James -- 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