Re: [PATCH 2/4] mm: Send one IPI per CPU to TLB flush all entries after unmapping pages

From: Ingo Molnar
Date: Thu Jun 11 2015 - 11:03:02 EST



* Mel Gorman <mgorman@xxxxxxx> wrote:

> > In the full-flushing case (v6 without patch 4) the batching limit is
> > 'infinite', we'll batch as long as possible, right?
>
> No because we must flush before pages are freed so the maximum batching is
> related to SWAP_CLUSTER_MAX. If we free a page before the flush then in theory
> the page can be reallocated and a stale TLB entry can allow access to unrelated
> data. It would be almost impossible to trigger corruption this way but it's a
> concern.

Well, could we say double SWAP_CLUSTER_MAX to further reduce the IPI rate?

Thanks,

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