From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754044AbdEQHor (ORCPT ); Wed, 17 May 2017 03:44:47 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36042 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753893AbdEQHoj (ORCPT ); Wed, 17 May 2017 03:44:39 -0400 Date: Wed, 17 May 2017 16:44:26 +0900 From: Joonsoo Kim To: Michal Hocko Cc: Andrew Morton , Rik van Riel , Johannes Weiner , mgorman@techsingularity.net, Laura Abbott , Minchan Kim , Marek Szyprowski , Michal Nazarewicz , "Aneesh Kumar K . V" , Vlastimil Babka , Russell King , Will Deacon , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@lge.com Subject: Re: [PATCH v7 0/7] Introduce ZONE_CMA Message-ID: <20170517074424.GC18406@js1304-desktop> References: <20170425034255.GB32583@js1304-desktop> <20170427150636.GM4706@dhcp22.suse.cz> <20170502040129.GA27335@js1304-desktop> <20170502133229.GK14593@dhcp22.suse.cz> <20170511021240.GA22319@js1304-desktop> <20170511091304.GH26782@dhcp22.suse.cz> <20170512020046.GA5538@js1304-desktop> <20170512063815.GC6803@dhcp22.suse.cz> <20170515035712.GA11257@js1304-desktop> <20170516084734.GC2481@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170516084734.GC2481@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > Okay. We did a lot of discussion so it's better to summarise it. > > > > 1. ZONE_CMA might be a nicer solution than MIGRATETYPE. > > 2. Additional bit in page flags would cause another kind of > > maintenance problem so it's better to avoid it as much as possible. > > 3. Abusing ZONE_MOVABLE looks better than introducing ZONE_CMA since > > it doesn't need additional bit in page flag. > > 4. (Not-yet-finished) If ZONE_CMA doesn't need extra bit in page > > flags with hacky magic and it has no performance regression, > > ??? (it's okay to use separate zone for CMA?) > > As mentioned above. I do not see why we should go over additional hops > just to have a zone which is not strictly needed. So if there are no > inherent problems reusing MOVABLE/HIGMEM zone then a separate zone > sounds like a wrong direction. > > But let me repeat. I am _not_ convinced that the migratetype situation > is all that bad and unfixable. You have mentioned some issues with the > current approach but none of them seem inherently unfixable. So I would > still prefer keeping the current way. But I am not going to insist if > you _really_ believe that the long term maintenance cost will be higher > than a zone approach and you can reuse MOVABLE/HIGHMEM zones without > disruptive changes. I can help you with the hotplug part of the MOVABLE > zone because that is desirable on its own. Okay. Thanks for sharing your opinion. I will decide the final direction after some investigation. Thanks.