[PATCH v2 0/2] send tlb_remove_table_smp_sync IPI only to necessary CPUs

Peter Zijlstra peterz at infradead.org
Tue Jul 4 00:09:50 AEST 2023

On Thu, Jun 22, 2023 at 09:47:22AM -0300, Marcelo Tosatti wrote:

> > there's patches that cure the thp abuse of this.
> The other case where the IPI can happen is:
> CPU-0                                   CPU-1
> tlb_remove_table
> tlb_remove_table_sync_one
>                                         local_irq_disable
>                                         gup_fast
>                                         local_irq_enable
> So its not only the THP case.

(your CPU-1 thing is wholly irrelevant)

Well, I know, but this case *should* be exceedingly rare. Last time
around I asked why you all were tripping this, you pointed at the THP

The THP case should be fixed along the lines of Jann's original patches.

If you can trip this at any significant rate, then we should probably
look at a better allocation scheme. It means you're really low on

More information about the Linuxppc-dev mailing list