Re: [PATCH 11/25] mm, compaction: Use free lists to quickly locate a migration source

2019-01-16 Thread Mel Gorman
On Wed, Jan 16, 2019 at 04:00:22PM +0100, Vlastimil Babka wrote: > On 1/16/19 3:33 PM, Mel Gorman wrote: > >>> + break; > >>> + } > >>> + > >>> + /* > >>> + * If low PFNs are being found and discarded then > >>> +

Re: [PATCH 11/25] mm, compaction: Use free lists to quickly locate a migration source

2019-01-16 Thread Vlastimil Babka
On 1/16/19 3:33 PM, Mel Gorman wrote: >>> + break; >>> + } >>> + >>> + /* >>> +* If low PFNs are being found and discarded then >>> +* limit the scan as fast searching is finding >>> +

Re: [PATCH 11/25] mm, compaction: Use free lists to quickly locate a migration source

2019-01-16 Thread Mel Gorman
On Wed, Jan 16, 2019 at 02:15:10PM +0100, Vlastimil Babka wrote: > > > > + if (free_pfn < high_pfn) { > > + update_fast_start_pfn(cc, free_pfn); > > + > > + /* > > +* Avoid if skipped recently. Move

Re: [PATCH 11/25] mm, compaction: Use free lists to quickly locate a migration source

2019-01-16 Thread Vlastimil Babka
On 1/4/19 1:49 PM, Mel Gorman wrote: > The migration scanner is a linear scan of a zone with a potentiall large > search space. Furthermore, many pageblocks are unusable such as those > filled with reserved pages or partially filled with pages that cannot > migrate. These still get scanned in the

[PATCH 11/25] mm, compaction: Use free lists to quickly locate a migration source

2019-01-04 Thread Mel Gorman
The migration scanner is a linear scan of a zone with a potentiall large search space. Furthermore, many pageblocks are unusable such as those filled with reserved pages or partially filled with pages that cannot migrate. These still get scanned in the common case of allocating a THP and the cost