From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68502C433DB for ; Fri, 29 Jan 2021 00:18:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 329FF64D9E for ; Fri, 29 Jan 2021 00:18:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231307AbhA2AS3 (ORCPT ); Thu, 28 Jan 2021 19:18:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhA2ASX (ORCPT ); Thu, 28 Jan 2021 19:18:23 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3F23C061574 for ; Thu, 28 Jan 2021 16:17:42 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id n7so7251701qkc.4 for ; Thu, 28 Jan 2021 16:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=s/LVnHuHfggklx757SIGO6yZNw1KlsoN1rDXMGqgBwE=; b=YE4DaCx2D46Zsfc8bHQqOpLTFxLxPB7C5ut77WOZvZYhjTK2P4eCGY3EC5IHOlp8gM Ki92zQIqg6f5pVhe0mkjSlwEWmheG9/o6brrvN6KZ4ax5iz9ZgWTMH5q3kQWw0+egePM 2ttHZbG0lKRr6JjMWTuxyounw9IgkjZ4TOC5aV/dg+Y0qgb1+a9XDdIkzt19sN5TgrjS tnP5kLpuF+adepTif6obpo/fXhaFpUhEpE0qHuKI9psDQUCh39sgwY8jlfFkeqp2BWV4 GJy2KGxFGrolQ4T9bH82I9qmTjzXAQQinjfQ4BUc5G+ARRJwiTvAQ4khq3ptHtzIDymy PLlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s/LVnHuHfggklx757SIGO6yZNw1KlsoN1rDXMGqgBwE=; b=Twv4enPlQe0DkSzRHFbJXHhKa/D1dNfVaPYjMILzXPYmuWzle7/erTGw0EDn3E69aN 8ja9EIU6yfl11axuOZUQaXp/dDbSkewEXzM3MrwhRm5bhMn1YQ91+GAtMOc3cCCT0ZKl 9RnmK2772bJaQK+NunI86EEpz8z5f1TRRn+BfioQYRdlL8p7x+zNeXSq3Cc7ps/DSDhE ATBZ++c6sMShxObm/ZN1f3kBZMF/JGfSANFjTRV7WNrVI7RVZEHN7zzErEIEgUd5h4wN ZH+pEVtRsLVS5dzIN9IppNZJiP9mWhvKUsc1PW03B7SpFThHmqFRWBkAvCrgLpI2FBiT 3qOg== X-Gm-Message-State: AOAM532O8bbgtiDGeeDCjR3kttQqlo/vevZJxm/+ACNqdTeJpe+mSuOI V5354Z9MMB0LStBYlpSIXqR60wW/6ou/DSls X-Google-Smtp-Source: ABdhPJxhhCY4l8kdhxKUj+HgBQb3VaZPHr3ZGeGhWcOGvTWqf/TIXgB8j1zd67/vYrCPlKsrOe9LXg== X-Received: by 2002:a05:620a:ce8:: with SMTP id c8mr2002684qkj.282.1611879461968; Thu, 28 Jan 2021 16:17:41 -0800 (PST) Received: from [192.168.1.10] (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id q4sm4817170qkj.5.2021.01.28.16.17.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 16:17:41 -0800 (PST) Subject: Re: Re: [PATCH 0/1] arm64/sparsemem: reduce SECTION_SIZE_BITS To: Will Deacon , Catalin Marinas , linux-kernel@vger.kernel.org, Anshuman Khandual , linux-arm-kernel@lists.infradead.org, Sudarshan Rajagopalan , David Hildenbrand , linux-mm@kvack.org Cc: kernel-team@android.com References: <161125239746.2653965.4342337503570976678.b4-ty@kernel.org> From: Pavel Tatashin Message-ID: <2489ef84-dd4d-b659-a61b-38582d168316@soleen.com> Date: Thu, 28 Jan 2021 19:17:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <161125239746.2653965.4342337503570976678.b4-ty@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/21/21 1:26 PM, Will Deacon wrote: > On Wed, 20 Jan 2021 21:29:12 -0800, Sudarshan Rajagopalan wrote: >> This patch is the follow-up from the discussions in the thread [1]. >> Reducing the section size has the merit of reducing wastage of reserved memory >> for vmmemmap mappings for sections with large memory holes. Also with smaller >> section size gives more grunularity and agility for memory hot(un)plugging. >> >> But there are also constraints in reducing SECTION_SIZE_BIT: >> >> [...] > > Applied to arm64 (for-next/misc), thanks! We have been using 128M for 4K pages for a while, using patch [1] without issues. One thing that needs to be also modified is makedumpfile [2]- line 76, must update it SECTIONS_SIZE_BITS based on the PAGESIZE. [1] https://lore.kernel.org/lkml/20190423203843.2898-1-pasha.tatashin@soleen.com/ [2] https://sourceforge.net/p/makedumpfile/code/ci/master/tree/arch/arm64.c > > [1/1] arm64/sparsemem: reduce SECTION_SIZE_BITS > https://git.kernel.org/arm64/c/f0b13ee23241 > > Cheers, > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3CFBC433E0 for ; Fri, 29 Jan 2021 00:18:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 93E5864D9E for ; Fri, 29 Jan 2021 00:18:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 93E5864D9E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IAZZrHRVLLyL17UP8Bvcbk62LYQa0f44ZE5Tese4EHw=; b=mF1EKlsAFUFyyeCjk+oQq7eh/ sobNmOEkroIbe/zA7wmP9ocY07LJiTiSn2m7QgGzE0B+Ss4rAkupp71an5Kv47M6JeMicZ0SauAF1 UKaKx5CXD/W37c4/xja/1yRP175ngeXEbU4qXDyGPESmsPsHwvGrmBEVdTinOAaaUv62uedxnfSv8 /t+kyWSVkC3EK5Y5orMXV3783s13oLPHkUJfgrKJjo4vm9+/sBkVEt6k9LYgwSwhZGq82EhSdvzuy bQjVGO7PB3qwbt3ynR0yUgYM34P2ocAgnR4fYLv5pERJIHO9TyUgbNj1csAYDBluDxMqrXDAK+3C4 9A5m2tq8Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5HTv-0004BL-Ga; Fri, 29 Jan 2021 00:17:47 +0000 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5HTr-0004Af-SO for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 00:17:45 +0000 Received: by mail-qk1-x730.google.com with SMTP id u20so7237688qku.7 for ; Thu, 28 Jan 2021 16:17:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=s/LVnHuHfggklx757SIGO6yZNw1KlsoN1rDXMGqgBwE=; b=YE4DaCx2D46Zsfc8bHQqOpLTFxLxPB7C5ut77WOZvZYhjTK2P4eCGY3EC5IHOlp8gM Ki92zQIqg6f5pVhe0mkjSlwEWmheG9/o6brrvN6KZ4ax5iz9ZgWTMH5q3kQWw0+egePM 2ttHZbG0lKRr6JjMWTuxyounw9IgkjZ4TOC5aV/dg+Y0qgb1+a9XDdIkzt19sN5TgrjS tnP5kLpuF+adepTif6obpo/fXhaFpUhEpE0qHuKI9psDQUCh39sgwY8jlfFkeqp2BWV4 GJy2KGxFGrolQ4T9bH82I9qmTjzXAQQinjfQ4BUc5G+ARRJwiTvAQ4khq3ptHtzIDymy PLlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s/LVnHuHfggklx757SIGO6yZNw1KlsoN1rDXMGqgBwE=; b=I+di+6534xddStRGkVUry2eNOXVYyff40WsSrTjUz14L+QS0yn233jt0ytI9FX70ZO lvR1znVCD/5eK0Guv9SpUqENHdjiM73xg3Fl3VTF2pVYznaybMbwZJHKlZ5763yjLO1p fsIax/JuVspxJGfvVc/Hs1uiWyJWsry79ByknnJYDosxwoFgB/hgyERpJcaLlex4Pkq7 GjyTQtDPhrqxL+hiFmbjezyE8yMir2cAkMe8l9IKJREFJ/NfY5bm0KbH1aVx6qd7xrcx KYgRtHUCFzlQbwd2anp4VKG0Z1jdxKha1c+QrW7prJNleRSTWKF6WH1i+dxz0yTnyfQ0 BIMg== X-Gm-Message-State: AOAM531gfJxwm1X68Xt5MoMdzFG4yBz1yBzwGPknV7WrUYmCKp6+MD34 ELFPHRyWqOY7slgnfrAmYHwKIg== X-Google-Smtp-Source: ABdhPJxhhCY4l8kdhxKUj+HgBQb3VaZPHr3ZGeGhWcOGvTWqf/TIXgB8j1zd67/vYrCPlKsrOe9LXg== X-Received: by 2002:a05:620a:ce8:: with SMTP id c8mr2002684qkj.282.1611879461968; Thu, 28 Jan 2021 16:17:41 -0800 (PST) Received: from [192.168.1.10] (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id q4sm4817170qkj.5.2021.01.28.16.17.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 16:17:41 -0800 (PST) Subject: Re: Re: [PATCH 0/1] arm64/sparsemem: reduce SECTION_SIZE_BITS To: Will Deacon , Catalin Marinas , linux-kernel@vger.kernel.org, Anshuman Khandual , linux-arm-kernel@lists.infradead.org, Sudarshan Rajagopalan , David Hildenbrand , linux-mm@kvack.org References: <161125239746.2653965.4342337503570976678.b4-ty@kernel.org> From: Pavel Tatashin Message-ID: <2489ef84-dd4d-b659-a61b-38582d168316@soleen.com> Date: Thu, 28 Jan 2021 19:17:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <161125239746.2653965.4342337503570976678.b4-ty@kernel.org> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210128_191744_257293_1E05DECA X-CRM114-Status: GOOD ( 13.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-team@android.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 1/21/21 1:26 PM, Will Deacon wrote: > On Wed, 20 Jan 2021 21:29:12 -0800, Sudarshan Rajagopalan wrote: >> This patch is the follow-up from the discussions in the thread [1]. >> Reducing the section size has the merit of reducing wastage of reserved memory >> for vmmemmap mappings for sections with large memory holes. Also with smaller >> section size gives more grunularity and agility for memory hot(un)plugging. >> >> But there are also constraints in reducing SECTION_SIZE_BIT: >> >> [...] > > Applied to arm64 (for-next/misc), thanks! We have been using 128M for 4K pages for a while, using patch [1] without issues. One thing that needs to be also modified is makedumpfile [2]- line 76, must update it SECTIONS_SIZE_BITS based on the PAGESIZE. [1] https://lore.kernel.org/lkml/20190423203843.2898-1-pasha.tatashin@soleen.com/ [2] https://sourceforge.net/p/makedumpfile/code/ci/master/tree/arch/arm64.c > > [1/1] arm64/sparsemem: reduce SECTION_SIZE_BITS > https://git.kernel.org/arm64/c/f0b13ee23241 > > Cheers, > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel