[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3fbf3abc-0196-9e96-3760-266395362f00@suse.cz>
Date: Thu, 31 Jan 2019 15:12:25 +0100
From: Vlastimil Babka <vbabka@...e.cz>
To: Mel Gorman <mgorman@...hsingularity.net>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: David Rientjes <rientjes@...gle.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Linux List Kernel Mailing <linux-kernel@...r.kernel.org>,
Linux-MM <linux-mm@...ck.org>
Subject: Re: [PATCH 09/22] mm, compaction: Use free lists to quickly locate a
migration source
On 1/31/19 2:55 PM, Vlastimil Babka wrote:
> On 1/18/19 6:51 PM, Mel Gorman wrote:
> ...
>
>> + for (order = cc->order - 1;
>> + order >= PAGE_ALLOC_COSTLY_ORDER && pfn == cc->migrate_pfn && nr_scanned < limit;
>> + order--) {
>> + struct free_area *area = &cc->zone->free_area[order];
>> + struct list_head *freelist;
>> + unsigned long flags;
>> + struct page *freepage;
>> +
>> + if (!area->nr_free)
>> + continue;
>> +
>> + spin_lock_irqsave(&cc->zone->lock, flags);
>> + freelist = &area->free_list[MIGRATE_MOVABLE];
>> + list_for_each_entry(freepage, freelist, lru) {
>> + unsigned long free_pfn;
>> +
>> + nr_scanned++;
>> + free_pfn = page_to_pfn(freepage);
>> + if (free_pfn < high_pfn) {
>> + update_fast_start_pfn(cc, free_pfn);
>
> Shouldn't this update go below checking pageblock skip bit? We might be
> caching pageblocks that will be skipped, and also potentially going
Ah that move happens in the next patch.
Powered by blists - more mailing lists