Re: [RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-04-01 Thread Nadav Amit
> On Apr 1, 2021, at 1:38 AM, Mel Gorman wrote: > > On Wed, Mar 31, 2021 at 09:36:04AM -0700, Nadav Amit wrote: >> >> >>> On Mar 31, 2021, at 6:16 AM, Mel Gorman wrote: >>> >>> On Wed, Mar 31, 2021 at 07:20:09PM +0800, Huang, Ying wrote: Mel Gorman writes: > On Mon, Mar 29,

Re: [RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-04-01 Thread Mel Gorman
On Wed, Mar 31, 2021 at 09:36:04AM -0700, Nadav Amit wrote: > > > > On Mar 31, 2021, at 6:16 AM, Mel Gorman wrote: > > > > On Wed, Mar 31, 2021 at 07:20:09PM +0800, Huang, Ying wrote: > >> Mel Gorman writes: > >> > >>> On Mon, Mar 29, 2021 at 02:26:51PM +0800, Huang Ying wrote: > For

Re: [RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-03-31 Thread Huang, Ying
Mel Gorman writes: > On Wed, Mar 31, 2021 at 07:20:09PM +0800, Huang, Ying wrote: >> Mel Gorman writes: >> >> > On Mon, Mar 29, 2021 at 02:26:51PM +0800, Huang Ying wrote: >> >> For NUMA balancing, in hint page fault handler, the faulting page will >> >> be migrated to the accessing node if

Re: [RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-03-31 Thread Nadav Amit
> On Mar 31, 2021, at 6:16 AM, Mel Gorman wrote: > > On Wed, Mar 31, 2021 at 07:20:09PM +0800, Huang, Ying wrote: >> Mel Gorman writes: >> >>> On Mon, Mar 29, 2021 at 02:26:51PM +0800, Huang Ying wrote: For NUMA balancing, in hint page fault handler, the faulting page will be

Re: [RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-03-31 Thread Mel Gorman
On Wed, Mar 31, 2021 at 07:20:09PM +0800, Huang, Ying wrote: > Mel Gorman writes: > > > On Mon, Mar 29, 2021 at 02:26:51PM +0800, Huang Ying wrote: > >> For NUMA balancing, in hint page fault handler, the faulting page will > >> be migrated to the accessing node if necessary. During the

Re: [RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-03-31 Thread Huang, Ying
Mel Gorman writes: > On Mon, Mar 29, 2021 at 02:26:51PM +0800, Huang Ying wrote: >> For NUMA balancing, in hint page fault handler, the faulting page will >> be migrated to the accessing node if necessary. During the migration, >> TLB will be shot down on all CPUs that the process has run on >>

Re: [RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-03-30 Thread Mel Gorman
On Mon, Mar 29, 2021 at 02:26:51PM +0800, Huang Ying wrote: > For NUMA balancing, in hint page fault handler, the faulting page will > be migrated to the accessing node if necessary. During the migration, > TLB will be shot down on all CPUs that the process has run on > recently. Because in the

[RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-03-29 Thread Huang Ying
For NUMA balancing, in hint page fault handler, the faulting page will be migrated to the accessing node if necessary. During the migration, TLB will be shot down on all CPUs that the process has run on recently. Because in the hint page fault handler, the PTE will be made accessible before the