Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756226AbcDGOV4 (ORCPT ); Thu, 7 Apr 2016 10:21:56 -0400 Received: from foss.arm.com ([217.140.101.70]:34583 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753999AbcDGOVy (ORCPT ); Thu, 7 Apr 2016 10:21:54 -0400 Date: Thu, 7 Apr 2016 15:21:48 +0100 From: Will Deacon To: Chen Feng Cc: catalin.marinas@arm.com, ard.biesheuvel@linaro.org, mark.rutland@arm.com, akpm@linux-foundation.org, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mhocko@suse.com, kirill.shutemov@linux.intel.com, rientjes@google.com, linux-mm@kvack.org, puck.chen@foxmail.com, oliver.fu@hisilicon.com, linuxarm@huawei.com, dan.zhao@hisilicon.com, suzhuangluan@hisilicon.com, yudongbin@hislicon.com, albert.lubing@hisilicon.com, xuyiping@hisilicon.com, saberlily.xia@hisilicon.com Subject: Re: [PATCH 1/2] arm64: mem-model: add flatmem model for arm64 Message-ID: <20160407142148.GI5657@arm.com> References: <1459844572-53069-1-git-send-email-puck.chen@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459844572-53069-1-git-send-email-puck.chen@hisilicon.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 617 Lines: 16 On Tue, Apr 05, 2016 at 04:22:51PM +0800, Chen Feng wrote: > We can reduce the memory allocated at mem-map > by flatmem. > > currently, the default memory-model in arm64 is > sparse memory. The mem-map array is not freed in > this scene. If the physical address is too long, > it will reserved too much memory for the mem-map > array. Can you elaborate a bit more on this, please? We use the vmemmap, so any spaces between memory banks only burns up virtual space. What exactly is the problem you're seeing that makes you want to use flatmem (which is probably unsuitable for the majority of arm64 machines). Will