Re: [RFC][PATCH 5/8] mm/numa: automatically generate node migration order

2020-07-01 Thread Huang, Ying
Dave Hansen writes: > On 6/30/20 1:22 AM, Huang, Ying wrote: >>> + /* >>> +* To avoid cycles in the migration "graph", ensure >>> +* that migration sources are not future targets by >>> +* setting them in 'used_targets'. >>> +* >>> +* But, do this only once per pass so that

Re: [RFC][PATCH 5/8] mm/numa: automatically generate node migration order

2020-07-01 Thread Dave Hansen
On 6/30/20 1:22 AM, Huang, Ying wrote: >> +/* >> + * To avoid cycles in the migration "graph", ensure >> + * that migration sources are not future targets by >> + * setting them in 'used_targets'. >> + * >> + * But, do this only once per pass so that multiple >> + *

Re: [RFC][PATCH 5/8] mm/numa: automatically generate node migration order

2020-06-30 Thread Huang, Ying
Dave Hansen writes: > +/* > + * Find an automatic demotion target for 'node'. > + * Failing here is OK. It might just indicate > + * being at the end of a chain. > + */ > +static int establish_migrate_target(int node, nodemask_t *used) > +{ > + int migration_target; > + > + /* > +