Re: [PATCH v2 7/9] mm/compaction: redesign compaction

2015-10-14 Thread Joonsoo Kim
On Wed, Oct 14, 2015 at 01:38:07PM +0200, Vlastimil Babka wrote: > On 08/24/2015 04:19 AM, Joonsoo Kim wrote: > > [...] > > > This patch solves these problems mentioned in above. > > Freepage scanner is largely changed to scan zone from zone_start_pfn > > to zone_end_pfn. And, by this change, com

Re: [PATCH v2 7/9] mm/compaction: redesign compaction

2015-10-14 Thread Vlastimil Babka
On 08/24/2015 04:19 AM, Joonsoo Kim wrote: [...] > This patch solves these problems mentioned in above. > Freepage scanner is largely changed to scan zone from zone_start_pfn > to zone_end_pfn. And, by this change, compaction finish condition is also > changed that migration scanner reach zone_en

[PATCH v2 7/9] mm/compaction: redesign compaction

2015-08-23 Thread Joonsoo Kim
Currently, compaction works as following. 1) migration scanner scans from zone_start_pfn to zone_end_pfn to find migratable pages 2) free scanner scans from zone_end_pfn to zone_start_pfn to find free pages 3) If both scanner crossed, compaction is finished. This algorithm has some drawbacks. 1) B