Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3615136pxb; Mon, 16 Nov 2020 21:36:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzR0yYfdV+K60u17TMutodcKLEpX3/4/jTNK4GU5AdhukSk6aCiHLOgPXnFL3eTxjc/IgdU X-Received: by 2002:a17:906:ae52:: with SMTP id lf18mr18802459ejb.9.1605591375302; Mon, 16 Nov 2020 21:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605591375; cv=none; d=google.com; s=arc-20160816; b=sUCL04YBcH1IPxyqTT93Wa0mkaPB+uqI9LdKTD/7BZpitstwV29iSvuKATJ4Ca3E1V HhgyLcV+XggX512o1ipEwuppT6DApdLv+tkqS6v6Je9JWDYMN61dSPUExGxip4fSC3qZ fb/CpnMzqTy6JUGTwCT0i8niF4ejJRvRG806n67Z+jIsa8Jq2E7qSfBGYFmxcM4zRleL supge88yI7E4oFhN1YJN6m1SIJbqnPAaRZvE+DVppgQ5KX4yb9wD6EBcfJvkAX9GcMW9 szBtrwBHKA9UdyHyni/9djr5EmtwVGEjoNuLvdSFGJy9DQH1G8cpaSYMuM3jHhPLr0uf H0fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=AdtmUVtCqRechgOMcs7UOyJlsODdPYETsUzDMSP30ME=; b=OHiMF5UuceLWV3Xr4gKUyubLNttO2i2lcyLqaeffS6zpbNk8waeMpgzI5SePocLFCn KpkXOD9qSZ9rJLhDY+2pmA5sFoKt5fMlT1eI69p7S0DglSblUPPQRpd9zdOyfiomsfVe 8zdfnvaQNIv512ys3QNolHCL8Y7slncv7Od+0M4suDHZGfsKl2q6Q8YA2Ckz6JpASLmt /KVhXZ5N/NItW0k7s9kI6fWtGeZX+OXgdXxaBrDyVWY8H541y0Wb/kMN55wj6I81oaLr 9W5xlwSj2cBvtTwMzgNo6Rx9fpITlmzTvYHGUkEbs5t2xPB7c5LO/wxCYMRPfL9Puj6t 86uw== 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 bu6si13712653edb.94.2020.11.16.21.35.51; Mon, 16 Nov 2020 21:36:15 -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 S1726603AbgKQFca (ORCPT + 99 others); Tue, 17 Nov 2020 00:32:30 -0500 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:46347 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbgKQFc3 (ORCPT ); Tue, 17 Nov 2020 00:32:29 -0500 X-Greylist: delayed 449 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Nov 2020 00:32:28 EST Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1ketU5-001CTB-2k; Tue, 17 Nov 2020 06:24:53 +0100 Received: from p57bd9382.dip0.t-ipconnect.de ([87.189.147.130] helo=[192.168.178.139]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1ketU4-000ZYQ-Qv; Tue, 17 Nov 2020 06:24:52 +0100 Subject: Re: [PATCH v2 00/13] arch, mm: deprecate DISCONTIGMEM To: Mike Rapoport , Andrew Morton Cc: Alexey Dobriyan , Catalin Marinas , Geert Uytterhoeven , Greg Ungerer , Jonathan Corbet , Matt Turner , Meelis Roos , Michael Schmitz , Mike Rapoport , Russell King , Tony Luck , Vineet Gupta , Will Deacon , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-snps-arc@lists.infradead.org References: <20201101170454.9567-1-rppt@kernel.org> From: John Paul Adrian Glaubitz Message-ID: <43c53597-6267-bdc2-a975-0aab5daa0d37@physik.fu-berlin.de> Date: Tue, 17 Nov 2020 06:24:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201101170454.9567-1-rppt@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.147.130 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On 11/1/20 6:04 PM, Mike Rapoport wrote: > It's been a while since DISCONTIGMEM is generally considered deprecated, > but it is still used by four architectures. This set replaces DISCONTIGMEM > with a different way to handle holes in the memory map and marks > DISCONTIGMEM configuration as BROKEN in Kconfigs of these architectures with > the intention to completely remove it in several releases. > > While for 64-bit alpha and ia64 the switch to SPARSEMEM is quite obvious > and was a matter of moving some bits around, for smaller 32-bit arc and > m68k SPARSEMEM is not necessarily the best thing to do. > > On 32-bit machines SPARSEMEM would require large sections to make section > index fit in the page flags, but larger sections mean that more memory is > wasted for unused memory map. > > Besides, pfn_to_page() and page_to_pfn() become less efficient, at least on > arc. > > So I've decided to generalize arm's approach for freeing of unused parts of > the memory map with FLATMEM and enable it for both arc and m68k. The > details are in the description of patches 10 (arc) and 13 (m68k). Apologies for the late reply. Is this still relevant for testing? I have already successfully tested v1 of the patch set, shall I test v2? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913