Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp96712pxb; Thu, 21 Jan 2021 02:10:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyeDobWUQkwTA7xbypIpZwmvmFDrOVjBStnJgCzOTjFVYI41BN5jsRmQ9laPyemYCSKeDQ X-Received: by 2002:a17:906:f919:: with SMTP id lc25mr9112258ejb.323.1611223828607; Thu, 21 Jan 2021 02:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611223828; cv=none; d=google.com; s=arc-20160816; b=AQocvxadb4eWh0QREGf3+NahqPYr+R6GupzkWgt3aAeqdMZMJmTt7Jv+Kq6XRWzDCQ 48ZmbAWxy+JSfF8F6gOQ/vZ3nEGyepHGM07Gc6d95zCr/ep9/zVHhbMYvk0eGAO0UwnE I2ycRnJyVA/OZHvux5huKk431/n1L9Qk2dIJiOBjG9aFh7DGAeXbFUz6ANrh7Ypia+Pq Xh/4M4yoSneqLMAux4HJWPARjymPSeY/cV1JPC7UqygAvoBjfEWDyYr8bsmnwAc5zE7b yZb5lyXqOoM4l1WOf3YLTecpnbLwXWusa4QiB8+MzyojhZG6xlv6jQtl7LkB2MnmGIeX Ak5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=0ct2xsljFJTq21mxMXhUDFNZB8ydQSp6+f/joLZKNyg=; b=JQ7IweRb5jI8M/aCKXpyMV1xbbBZO8kQWiJZedhamlDm1mVRwtMeUlVUMMi7+EMFi9 I1jXJMtKLjMqcb5+DSvN+rlzifGND69U6MgCQcYwAGBALQsfo4Wr0QueEQKS76jj9PAm k18EBGXfTPG3eXOIqDBe93vKuwQ5Kq02Q40tst/ZGWfGmG6465YUe3GjJpEbWKEAirIW CmrId8LzrF3tuFeo6e81anVXOtWq036qzJGfmebPlDLzEJd0eiLV4zXrCbU8yZfSfiHg Q81JhTm8UYpHdGTfIQmbarEg52SUPCgbJzB0/tGHUSVg6DFaZ0onNC2eXOQRhnBj7Mj4 BCOw== 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 p1si2153414eds.205.2021.01.21.02.10.05; Thu, 21 Jan 2021 02:10:28 -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 S1728336AbhAUKJR (ORCPT + 99 others); Thu, 21 Jan 2021 05:09:17 -0500 Received: from gentwo.org ([3.19.106.255]:52784 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728657AbhAUKJI (ORCPT ); Thu, 21 Jan 2021 05:09:08 -0500 Received: by gentwo.org (Postfix, from userid 1002) id A245C3F04E; Thu, 21 Jan 2021 10:08:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id A030D3EFF6; Thu, 21 Jan 2021 10:08:17 +0000 (UTC) Date: Thu, 21 Jan 2021 10:08:17 +0000 (UTC) From: Christoph Lameter X-X-Sender: cl@www.lameter.com To: Sudarshan Rajagopalan cc: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Anshuman Khandual , David Hildenbrand , Mike Rapoport , Mark Rutland , Logan Gunthorpe , Andrew Morton , Steven Price , Suren Baghdasaryan Subject: Re: [PATCH 1/1] arm64/sparsemem: reduce SECTION_SIZE_BITS In-Reply-To: <43843c5e092bfe3ec4c41e3c8c78a7ee35b69bb0.1611206601.git.sudaraja@codeaurora.org> Message-ID: References: <43843c5e092bfe3ec4c41e3c8c78a7ee35b69bb0.1611206601.git.sudaraja@codeaurora.org> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Jan 2021, Sudarshan Rajagopalan wrote: > But there are other problems in reducing SECTION_SIZE_BIT. Reducing it by too > much would over populate /sys/devices/system/memory/ and also consume too many > page->flags bits in the !vmemmap case. Also section size needs to be multiple > of 128MB to have PMD based vmemmap mapping with CONFIG_ARM64_4K_PAGES. There is also the issue of requiring more space in the TLB cache with smaller page sizes. Or does ARM resolve these into smaller TLB entries anyways (going on my x86 kwon how here)? Anyways if there are only a few TLB entries then the effect could be significant.