From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f197.google.com (mail-qt0-f197.google.com [209.85.216.197]) by kanga.kvack.org (Postfix) with ESMTP id 418426B000C for ; Fri, 4 May 2018 12:54:27 -0400 (EDT) Received: by mail-qt0-f197.google.com with SMTP id y7-v6so16435111qtn.3 for ; Fri, 04 May 2018 09:54:27 -0700 (PDT) Received: from aserp2130.oracle.com (aserp2130.oracle.com. [141.146.126.79]) by mx.google.com with ESMTPS id n12-v6si1755333qtb.361.2018.05.04.09.54.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 May 2018 09:54:26 -0700 (PDT) Subject: Re: [PATCH v8 0/6] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64 References: <1523431317-30612-1-git-send-email-hejianet@gmail.com> <05b0fcf2-7670-101e-d4ab-1f656ff6b02f@gmail.com> From: Pavel Tatashin Message-ID: <23b14717-0f4a-10f2-5118-7cb8445fbdab@oracle.com> Date: Fri, 4 May 2018 12:53:40 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Daniel Vacek , Jia He Cc: Russell King , Catalin Marinas , Will Deacon , Mark Rutland , Ard Biesheuvel , Andrew Morton , Michal Hocko , Wei Yang , Kees Cook , Laura Abbott , Vladimir Murzin , Philip Derrin , AKASHI Takahiro , James Morse , Steve Capper , Gioh Kim , Vlastimil Babka , Mel Gorman , Johannes Weiner , Kemi Wang , Petr Tesarik , YASUAKI ISHIMATSU , Andrey Ryabinin , Nikolay Borisov , Daniel Jordan , Eugeniu Rosca , linux-arm-kernel , open list , Linux-MM > I'm wondering, ain't simple enabling of config > DEFERRED_STRUCT_PAGE_INIT provide even better speed-up? If that is the > case then it seems like this series is not needed at all, right? > I am not sure why is this config optional. It looks like it could be > enabled by default or even unconditionally considering that with > commit c9e97a1997fb ("mm: initialize pages on demand during boot") the > deferred code is statically disabled after all the pages are > initialized. Hi Daniel, Currently, deferred struct pages are initialized in parallel only on NUMA machines. I would like to make a change to use all the available CPUs even on a single socket systems, but that is not there yet. So, I believe Jia's performance improvements are still relevant. Thank you, Pavel