From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756846AbcBDGC0 (ORCPT ); Thu, 4 Feb 2016 01:02:26 -0500 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:60300 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752396AbcBDGCZ (ORCPT ); Thu, 4 Feb 2016 01:02:25 -0500 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Thu, 4 Feb 2016 15:02:21 +0900 From: Joonsoo Kim To: Vlastimil Babka Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Luiz Capitulino , "Kirill A . Shutemov" , Zhang Yanfei , Yasuaki Ishimatsu , Naoya Horiguchi , Mel Gorman , Davidlohr Bueso , Hillf Danton , Mike Kravetz Subject: Re: [PATCH] mm, hugetlb: don't require CMA for runtime gigantic pages Message-ID: <20160204060221.GA14877@js1304-P5Q-DELUXE> References: <1454521811-11409-1-git-send-email-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1454521811-11409-1-git-send-email-vbabka@suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2016 at 06:50:11PM +0100, Vlastimil Babka wrote: > Commit 944d9fec8d7a ("hugetlb: add support for gigantic page allocation at > runtime") has added the runtime gigantic page allocation via > alloc_contig_range(), making this support available only when CONFIG_CMA is > enabled. Because it doesn't depend on MIGRATE_CMA pageblocks and the > associated infrastructure, it is possible with few simple adjustments to > require only CONFIG_MEMORY_ISOLATION instead of full CONFIG_CMA. > > After this patch, alloc_contig_range() and related functions are available > and used for gigantic pages with just CONFIG_MEMORY_ISOLATION enabled. Note > CONFIG_CMA selects CONFIG_MEMORY_ISOLATION. This allows supporting runtime > gigantic pages without the CMA-specific checks in page allocator fastpaths. You need to set CONFIG_COMPACTION or CONFIG_CMA to use isolate_migratepages_range() and others in alloc_contig_range(). Thanks.