Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1155605ybg; Wed, 29 Jul 2020 07:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvt3k8lDX520OnxP4/rmS1uW6CRoB1I5ikfOtB3ezKYM0O+JH1GNm5nmhGeJ/cGnHSshFH X-Received: by 2002:a50:ee07:: with SMTP id g7mr32153010eds.320.1596032061027; Wed, 29 Jul 2020 07:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596032061; cv=none; d=google.com; s=arc-20160816; b=AV/ConbJ67uNgrPuuJ4z/lXq6pFS/lf7YjhBfy+ajf46U18YhNDjEZZBn6pU5Kresx l8FalyhR3uV0PemS+prkBBEHM/6im6F5AhTqgZiZMTXOz9LCgaZR++DMDlMrXSJ++/YW vrtfB2tLjeyQwJe/KM+RzKTGwJyitfUWt8B5j2uOwVfNTxgirz8HJugFoI8taVpq9cmd PFME6YXzfLJIa97BOL1FBiJFUGiKhzmN+q0Y0KaAKk2awWCQMoG4YWMVEnRVYwaWLHAi UrZr6Y1T0z+pqf5/mGShz6zLVSCO5ts0QFYD/Wo2knSL23glTW1GmBRq4VoWj/86vbGf qoGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=AK3HxZrNGmARSdzjQxs5DQbMfU/om4pX9Z5dGzUuIUA=; b=PKmbLuX/gmTi7B6fscVccVhlLS0zfTi2rmpC07nJ1bIWMCbptPj8zf4Z4YwiTYnE2B gYjyxZUjwR6ZThZLmxLFRPosUj4VDrvk1kv6qIuhGggT4X+ADAsl/750Fpp924wZ4xkK 8XdKR/NVeNDpFhz1f42MxV4/Nbz5vUoO4Xsc3P9I8m5IGc5Gl7u/8HAxL0omkcyk0YAh lKkpt6sqH+hyLUN7a6z4yTDGlgWO97NMGKAalmH2vJkEFRme6iRU1/7jSwhrVk8kQAq8 IlPIgMGBfzfx0hQUjW6sy8Dh/GCOBeMEbMA40fK66p+XJaJpeE9pLWTnkNV1fbg/3U/j 9L9g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si1333159edq.393.2020.07.29.07.13.58; Wed, 29 Jul 2020 07:14:21 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbgG2ONc (ORCPT + 99 others); Wed, 29 Jul 2020 10:13:32 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:25944 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726449AbgG2ON2 (ORCPT ); Wed, 29 Jul 2020 10:13:28 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06TE25Et133130; Wed, 29 Jul 2020 10:13:13 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 32jg248neb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jul 2020 10:13:13 -0400 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 06TE2IcL134462; Wed, 29 Jul 2020 10:13:12 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 32jg248nd0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jul 2020 10:13:12 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06TE54n7014351; Wed, 29 Jul 2020 14:13:10 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma05fra.de.ibm.com with ESMTP id 32gcqk34qk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jul 2020 14:13:10 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06TEBgMf62128482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Jul 2020 14:11:42 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BD224AE061; Wed, 29 Jul 2020 14:13:07 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2B073AE056; Wed, 29 Jul 2020 14:12:57 +0000 (GMT) Received: from linux.ibm.com (unknown [9.148.204.160]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 29 Jul 2020 14:12:57 +0000 (GMT) Date: Wed, 29 Jul 2020 17:12:54 +0300 From: Mike Rapoport To: David Hildenbrand Cc: Justin He , Dan Williams , Vishal Verma , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , "Rafael J. Wysocki" , Dave Jiang , Andrew Morton , Steve Capper , Mark Rutland , Logan Gunthorpe , Anshuman Khandual , Hsin-Yi Wang , Jason Gunthorpe , Dave Hansen , Kees Cook , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , "linux-mm@kvack.org" , Wei Yang , Pankaj Gupta , Ira Weiny , Kaly Xin Subject: Re: [RFC PATCH 0/6] decrease unnecessary gap due to pmem kmem alignment Message-ID: <20200729141254.GE3672596@linux.ibm.com> References: <20200729033424.2629-1-justin.he@arm.com> <20200729093150.GC3672596@linux.ibm.com> <20200729130025.GD3672596@linux.ibm.com> <170d7861-4df8-ecaf-dbdd-9e9a4a832f8f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <170d7861-4df8-ecaf-dbdd-9e9a4a832f8f@redhat.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-29_07:2020-07-29,2020-07-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 mlxlogscore=550 phishscore=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 spamscore=0 adultscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007290091 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 03:03:04PM +0200, David Hildenbrand wrote: > On 29.07.20 15:00, Mike Rapoport wrote: > > On Wed, Jul 29, 2020 at 11:35:20AM +0200, David Hildenbrand wrote: > >>> > >>> There is still large gap with ARM64_64K_PAGES, though. > >>> > >>> As for SPARSEMEM without VMEMMAP, are there actual benefits to use it? > >> > >> I was asking myself the same question a while ago and didn't really find > >> a compelling one. > > > > Memory overhead for VMEMMAP is larger, especially for arm64 that knows > > how to free empty parts of the memory map with "classic" SPARSEMEM. > > You mean the hole punching within section memmap? (which is why their > pfn_valid() implementation is special) Yes, arm (both 32 and 64) do this. And for smaller systems with a few memory banks this is very reasonable to trade slight (if any) slowdown in pfn_valid() for several megs of memory. > (I do wonder why that shouldn't work with VMEMMAP, or is it simply not > implemented?) It's not implemented. There was a patch [1] recently to implement this. [1] https://lore.kernel.org/lkml/20200721073203.107862-1-liwei213@huawei.com/ > -- > Thanks, > > David / dhildenb > -- Sincerely yours, Mike.