From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751573AbdI1IHR (ORCPT ); Thu, 28 Sep 2017 04:07:17 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38365 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbdI1IHP (ORCPT ); Thu, 28 Sep 2017 04:07:15 -0400 X-Google-Smtp-Source: AOwi7QDPQET+GW2rKSeJM8zd6pWQWthlYTBBmbFusyH0Mn6Y3y8r+4lb+mvMVfqjKhR9G74NkZ1Dig== Date: Thu, 28 Sep 2017 10:07:11 +0200 From: Ingo Molnar To: "Kirill A. Shutemov" Cc: Ingo Molnar , Linus Torvalds , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Andy Lutomirski , Cyrill Gorcunov , Borislav Petkov , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv7 01/19] mm/sparsemem: Allocate mem_section at runtime for SPARSEMEM_EXTREME Message-ID: <20170928080711.3msbrmwluqwfhjkg@gmail.com> References: <20170918105553.27914-1-kirill.shutemov@linux.intel.com> <20170918105553.27914-2-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170918105553.27914-2-kirill.shutemov@linux.intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Kirill A. Shutemov wrote: > Size of mem_section array depends on size of physical address space. > > In preparation for boot-time switching between paging modes on x86-64 > we need to make allocation of mem_section dynamic. > > The patch allocates the array on the first call to > sparse_memory_present_with_active_regions(). > > Signed-off-by: Kirill A. Shutemov What is the size of the allocations here, in bytes, for the two main variants? Thanks, Ingo