Re: [PATCH 00 of 12] mmu notifier #v13

From: Robin Holt
Date: Tue Apr 22 2008 - 15:42:41 EST


On Tue, Apr 22, 2008 at 08:43:35PM +0200, Andrea Arcangeli wrote:
> On Tue, Apr 22, 2008 at 01:22:13PM -0500, Robin Holt wrote:
> > 1) invalidate_page: You retain an invalidate_page() callout. I believe
> > we have progressed that discussion to the point that it requires some
> > direction for Andrew, Linus, or somebody in authority. The basics
> > of the difference distill down to no expected significant performance
> > difference between the two. The invalidate_page() callout potentially
> > can simplify GRU code. It does provide a more complex api for the
> > users of mmu_notifier which, IIRC, Christoph had interpretted from one
> > of Andrew's earlier comments as being undesirable. I vaguely recall
> > that sentiment as having been expressed.
>
> invalidate_page as demonstrated in KVM pseudocode doesn't change the
> locking requirements, and it has the benefit of reducing the window of
> time the secondary page fault has to be masked and at the same time
> _halves_ the number of _hooks_ in the VM every time the VM deal with
> single pages (example: do_wp_page hot path). As long as we can't fully
> converge because of point 3, it'd rather keep invalidate_page to be
> better. But that's by far not a priority to keep.

Christoph, Jack and I just discussed invalidate_page(). I don't think
the point Andrew was making is that compelling in this circumstance.
The code has change fairly remarkably. Would you have any objection to
putting it back into your patch/agreeing to it remaining in Andrea's
patch? If not, I think we can put this issue aside until Andrew gets
out of the merge window and can decide it. Either way, the patches
become much more similar with this in.

Thanks,
Robin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/