[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160527053223.GB13661@js1304-P5Q-DELUXE>
Date: Fri, 27 May 2016 14:32:23 +0900
From: Joonsoo Kim <iamjoonsoo.kim@....com>
To: Chen Feng <puck.chen@...ilicon.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Rik van Riel <riel@...hat.com>,
Johannes Weiner <hannes@...xchg.org>,
mgorman@...hsingularity.net, Laura Abbott <lauraa@...eaurora.org>,
Minchan Kim <minchan@...nel.org>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Michal Nazarewicz <mina86@...a86.com>,
"Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com>,
Vlastimil Babka <vbabka@...e.cz>,
Rui Teng <rui.teng@...ux.vnet.ibm.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, qijiwen@...ilicon.com,
Zhuangluan Su <suzhuangluan@...ilicon.com>,
Dan Zhao <dan.zhao@...ilicon.com>
Subject: Re: [PATCH v3 5/6] mm/cma: remove MIGRATE_CMA
On Fri, May 27, 2016 at 09:42:24AM +0800, Chen Feng wrote:
> Hi Joonsoo,
> > -/* Free whole pageblock and set its migration type to MIGRATE_CMA. */
> > +/* Free whole pageblock and set its migration type to MIGRATE_MOVABLE. */
> > void __init init_cma_reserved_pageblock(struct page *page)
> > {
> > unsigned i = pageblock_nr_pages;
> > @@ -1605,7 +1602,7 @@ void __init init_cma_reserved_pageblock(struct page *page)
> >
> > adjust_present_page_count(page, pageblock_nr_pages);
> >
> > - set_pageblock_migratetype(page, MIGRATE_CMA);
> > + set_pageblock_migratetype(page, MIGRATE_MOVABLE);
>
> I have a question here, if the ZONE_CMA pages are all movable.
>
> Then the unmovable alloc will also use CMA memory. Is this right?
No, previous patch changes that the CMA memory is on separate zone,
ZONE_CMA. We allow that zone when gfp is GFP_HIGHUSER_MOVABLE so
unmovable allocation cannot happen on CMA memory.
Thanks.
Powered by blists - more mailing lists