Re: [PATCH] .text page fault SMP scalability optimization

From: Andrew Morton
Date: Wed Oct 19 2005 - 03:15:26 EST


Andrea Arcangeli <andrea@xxxxxxx> wrote:
>
> We had a problem on ppc64 where with more than 4 threads a large system
> wouldn't scale well while faulting in the .text (most of the time was
> spent in the kernel despite it was an userland compute intensive app).
> The reason is the useless overwrite of the same pte from all cpu.
>
> I fixed it this way (verified on an older kernel but the forward port is
> almost identical). This will benefit all archs not just ppc64.

How strange. Do you mena that all CPUs were entering the pagefault handler
on behalf of the same pte all the time? That they're staying in lockstep?

If so, there must be a bunch of page_table_lock contention too?
-
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/