Received: by 10.192.165.148 with SMTP id m20csp370981imm; Fri, 4 May 2018 11:34:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr4GB0cifaQNSKtCVO0LuHAMh22jS1rQNUcMVPmeR7D4OHL7WVrikKwuhCF7y1lxFxLW2sW X-Received: by 2002:a17:902:524:: with SMTP id 33-v6mr29227369plf.25.1525458881039; Fri, 04 May 2018 11:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525458881; cv=none; d=google.com; s=arc-20160816; b=V9h5bJrvryxxXIDtORSOmUNtO48Vwrjno9CjP05RH3252uus8sVMuKg0HULnNkiX5M aZCBMVSt8x9nOZYs0fmnz6AYHPmD3Gzn0hNpikTGmMVISwzjQLVgff1roSixgNyjJ5Sm jELAMGpu7jT0WyNP0EhAQNTVvf7tWxi4XePQBBgjfI1/XJYW4WBSSb6+VbsHZZKZhVWl Pr69HpDA3J2Yyv1MWSMRS6jHGBH/dFH5wpS//oKj4N4615oOJrf5AEvLIx5ZnFqe22VS SCLCka6R8gOyBdzJWXu441gO3q74YLc7IeR3uQ2d2dXbv1cwdopBY7wt/8rCxM7d1D6U eNzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :arc-authentication-results; bh=oUxbmfkbe+4274qc4FYsFb5KvNicMjGYCcKRpXTUayI=; b=lX75og5XHNs0A8jUi9Y865d1kK7F7FrLxvxjSvcnSObUvlIC9vHX4gpPF/SOQNkE5z 0zF7zLDgPFAqy9jzhlj0yIFyLEPgiofmHeE3p/8hsexqbHIix03Q43Acru717lcoRL+G RPPhCjkVSzdbltMtc8XBrvLLeBZ4Be4W3hAmHQ9zdxnV51b4q4ebe1eLX3SxpRa2SvYo 4foCnj6GfBHWycRrGCZmO9GqP9W40XPaXYL+SG//uWT9ef5U3lSxsGrjGBtsXdWHFGT1 YO7C2SMp02qjl8ZlTEwePTIfA9krrEtwoMW6V5cV90KD4ugOXL/k3bwG99FxSWVKPKEi 9s5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12-v6si13630511pgr.437.2018.05.04.11.34.26; Fri, 04 May 2018 11:34:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751851AbeEDSd6 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 4 May 2018 14:33:58 -0400 Received: from mail-oi0-f49.google.com ([209.85.218.49]:37127 "EHLO mail-oi0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbeEDSd5 (ORCPT ); Fri, 4 May 2018 14:33:57 -0400 Received: by mail-oi0-f49.google.com with SMTP id w123-v6so10996572oia.4 for ; Fri, 04 May 2018 11:33:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Z4j9BTrt4TkjJ51HfDuhp1Ji31eKYbmrzM5GRDkh3Tc=; b=tGXpuLxBhWXYEObR7zkmOdj4DwvSt5Rrb5Vs8riKaigd8DIWwzh0CIpcZlytKUzekr 6/ojKQbb0CEZ7QAS82MTW5j8qAFBf7Rod2/M3No6/MGco2eloHOGD3xh4QsYrEZdwJb/ iH7el5CX06n9hiES0KwB7njytfVka+f91G3U2V4GLTfhdizAzN9dOT3XyG1QE6jzQLco 1MD5h1wrwdXEeobmnNTTVz258EY3hfS4HiblU6i9FQtCBMCe31VyJz9NuvgIYFkWU39i 9za2Rt+4KKyGgzVKMwrLY720FPDavqMZ8BNtlsPhIf1hY8qTIZ5aG2xU8Hi1OPK/D2vN AVVg== X-Gm-Message-State: ALQs6tAINwNIJkhkyqMdIDkPjPKcmJi5qCMdwWQCHJ8srCT592vDDwZX XLKCOh8dKsUvC3C9bJgFKyXBUz8BpACqHotHWgCEhA== X-Received: by 2002:aca:500f:: with SMTP id e15-v6mr18577054oib.304.1525458836669; Fri, 04 May 2018 11:33:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:5995:0:0:0:0:0 with HTTP; Fri, 4 May 2018 11:33:56 -0700 (PDT) In-Reply-To: <23b14717-0f4a-10f2-5118-7cb8445fbdab@oracle.com> References: <1523431317-30612-1-git-send-email-hejianet@gmail.com> <05b0fcf2-7670-101e-d4ab-1f656ff6b02f@gmail.com> <23b14717-0f4a-10f2-5118-7cb8445fbdab@oracle.com> From: Daniel Vacek Date: Fri, 4 May 2018 20:33:56 +0200 Message-ID: Subject: Re: [PATCH v8 0/6] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64 To: Pavel Tatashin Cc: Jia He , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 4, 2018 at 6:53 PM, Pavel Tatashin wrote: >> 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. Ahaa, I thought it also works on UP or single node systems. I didn't study the code closely. Sorry about the noise. And thank you, Pavel. You're right. --nX > Thank you, > Pavel