[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.10.1607191204320.52203@chino.kir.corp.google.com>
Date: Tue, 19 Jul 2016 12:05:13 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Xishi Qiu <qiuxishi@...wei.com>
cc: Joonsoo Kim <iamjoonsoo.kim@....com>,
Vlastimil Babka <vbabka@...e.cz>,
Andrew Morton <akpm@...ux-foundation.org>,
Naoya Horiguchi <n-horiguchi@...jp.nec.com>,
Linux MM <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] mem-hotplug: use GFP_HIGHUSER_MOVABLE in,
alloc_migrate_target()
On Tue, 19 Jul 2016, Xishi Qiu wrote:
> Memory offline could happen on both movable zone and non-movable zone, and we
> can offline the whole node if the zone is movable_zone(the node only has one
> movable_zone), and if the zone is normal_zone, we cannot offline the whole node,
> because some kernel memory can't be migrated.
>
> So how about change alloc_migrate_target() to alloc memory from the next node
> with GFP_HIGHUSER_MOVABLE, if the offline zone is movable_zone.
>
I think sharing alloc_migrate_target as a migration callback may not be
worth it; CMA and memory offline are distinct usecases and probably
deserve their own callbacks.
Powered by blists - more mailing lists