Re: Page fault scalability patch V18: Drop first acquisition of ptl
From: Andrew Morton
Date: Thu Mar 03 2005 - 00:49:34 EST
Christoph Lameter <clameter@xxxxxxx> wrote:
>
> On Wed, 2 Mar 2005, Andrew Morton wrote:
>
> > Have the ppc64 and sparc64 people reviewed and acked the change? (Not a
> > facetious question - I just haven't been following the saga sufficiently
> > closely to remember).
>
> There should be no change to these arches
But we must at least confirm that these architectures can make these
changes in the future. If they make no changes then they haven't
benefitted from the patch. And the patch must be suitable for all
architectures which might hit this scalability problem.
> > > Because if a pte is locked it should not be used.
> >
> > Confused. Why not just spin on the lock in the normal manner?
>
> I thought you wanted to lock the pte? This is realized through a lock bit
> in the pte. If that lock bit is set one should not use the pte. Otherwise
> the lock is bypassed. Or are you proposing a write lock only?
I was suggesting a lock in (or associated with) the pageframe of the page
which holds the pte. That's just a convenient way of hashing the locking.
Probably that's not much different from the atomic pte ops.
> > If the other relvant architecture people say "we can use this" then perhaps
> > we should grin and bear it. But one does wonder whether some more sweeping
> > design change is needed.
>
> Could we at least get the first two patches in? I can then gradually
> address the other issues piece by piece.
The atomic ops patch should be coupled with the main patch series. The mm
counter one we could sneak in beforehand, I guess.
> The necessary more sweeping design change can be found at
>
> http://marc.theaimsgroup.com/?l=linux-kernel&m=110922543030922&w=2
>
> but these may be a long way off.
Yes, that seemed sensible, although it may not work out to be as clean as
it appears.
But how would that work allow us to address page_table_lock scalability
problems?
-
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/