Re: [RFC][PATCH 6/8] mm: handle_speculative_fault()

From: Peter Zijlstra
Date: Thu Jan 07 2010 - 13:00:54 EST


On Thu, 2010-01-07 at 09:49 -0800, Linus Torvalds wrote:
>
> The thing is, I can pretty much _guarantee_ that the speculative page
> fault is going to end up doing a lot of nasty stuff that still needs
> almost-global locking, and it's likely to be more complicated and slower
> for the single-threaded case (you end up needing refcounts, a new "local"
> lock or something).

Well, with that sync_vma() thing I posted the other day all the
speculative page fault needs is a write to current->fault_vma, the ptl
and an O(nr_threads) loop on unmap() for file vmas -- aside from writing
the pte itself of course.




--
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/