Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp15133pxu; Thu, 3 Dec 2020 17:50:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOAMTPKDscQX4AccBz9hUZoZ0XFF0UhKp08SVNqdzCCyohf1mOHPvQjK5YpI+9i+nDzJg/ X-Received: by 2002:a17:906:12d3:: with SMTP id l19mr4977377ejb.65.1607046623656; Thu, 03 Dec 2020 17:50:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607046623; cv=none; d=google.com; s=arc-20160816; b=ozK+BW/zX8KAhfFWx8uDanUwiwzqTNjHZqoRbx7LBNgCUvI+JZpMkhNRY4Ipmwk2fw CFyB/yua3QqCYmfSuuX/Eaqk0txi6yvlCeUs/KA0kBO1PZcqUYrZnuo8Yl0TY7hIHbCA DlFZsZqFSmw1mlJ7+WdLuEH7H3KP+/cb+NLmzNkfz+FZE+n+1uiq5Efk6bjR3UihJ/0x o2puEZZC0lldyKGg47cdKbOes5N8Ttc3ytEs2OoAx0AI7Rw6iFSUm1q7yQ8AtGIGImto J4ng0cYm6rrCCuTp49AYD3Ht3qE9PEokWV9V95gIuwDLkFIHLrImet+RMfaZNrnvwQmp qRNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=y4T2RzXsWFYlfXvcjerozQeegvRaqXVAQGasW7joq/Y=; b=HT5husbe7h0d2bqM4B+TJFw2552NBBh9+C7sV1A5B2jXnnJBHgoaCE8WiiQgo2qAgg QIlf4cXaB/3dKnUhm3nTu1I76ev+XyH8H7QACeoq3ksyIRHhc7yr74xUXAE7ta5BDLof QqT7/USgLABCpe33XUQpQZo4KigOxfEIuTHaJ9/iOF/o78UGW/0wWgf7WeWelcO515SR DTl6Z8Rb7v+Ki/QF9c9JkVaaOPMqc7TQyXWA8OBRDG3PMu+SexoblZCzN1pbpd/6vjXr yxj14Kl3zgH8dfj+aUEgJsr/iHNBxnHF4BxLcUOJNOG4yiNHiH8ctvz+makUjPybymqI m6Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si2037311edp.451.2020.12.03.17.49.59; Thu, 03 Dec 2020 17:50:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726763AbgLDBph (ORCPT + 99 others); Thu, 3 Dec 2020 20:45:37 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9102 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgLDBph (ORCPT ); Thu, 3 Dec 2020 20:45:37 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CnFqh4rkdzM04b; Fri, 4 Dec 2020 09:44:16 +0800 (CST) Received: from vm107-89-192.huawei.com (100.107.89.192) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:44:43 +0800 From: Wei Li To: , , , CC: , , , , , , Subject: [PATCH] arm64: mm: decrease the section size to reduce the memory reserved for the page map Date: Fri, 4 Dec 2020 09:44:43 +0800 Message-ID: <20201204014443.43329-1-liwei213@huawei.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [100.107.89.192] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For the memory hole, sparse memory model that define SPARSEMEM_VMEMMAP do not free the reserved memory for the page map, decrease the section size can reduce the waste of reserved memory. Signed-off-by: Wei Li Signed-off-by: Baopeng Feng Signed-off-by: Xia Qing --- arch/arm64/include/asm/sparsemem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/sparsemem.h b/arch/arm64/include/asm/sparsemem.h index 1f43fcc79738..8963bd3def28 100644 --- a/arch/arm64/include/asm/sparsemem.h +++ b/arch/arm64/include/asm/sparsemem.h @@ -7,7 +7,7 @@ #ifdef CONFIG_SPARSEMEM #define MAX_PHYSMEM_BITS CONFIG_ARM64_PA_BITS -#define SECTION_SIZE_BITS 30 +#define SECTION_SIZE_BITS 27 #endif #endif -- 2.15.0