Received: by 10.192.165.148 with SMTP id m20csp2549506imm; Sun, 6 May 2018 18:12:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpOcMIsGgAXwp5BE4NSitvJgIzOfr8QmnStpqukUWLiF/XMKdn4EglT+CGXaDl/GLyZfzXP X-Received: by 2002:a63:2f41:: with SMTP id v62-v6mr11507219pgv.33.1525655567242; Sun, 06 May 2018 18:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525655567; cv=none; d=google.com; s=arc-20160816; b=iVJCwL/doHpG2ESyiJ69iO7qnLM949TY0AW9iiDWoZh7+GrqZ7p/QwgpBXinMjFXF8 2pQ7chXIM0LeuixG7W1J0QAqydm27bD5L7HoU25jd9gUl0SlmhGZgO0OmJ/3pOY0rGm2 f5npxOQfP4BYykX9D7t+5Wx1YJfsqQJsWzV/nY0tEUHibKi02aotjYxgokEnxzxFQGJO b14aW1m1wyQEbyzIBrIdi/WNF0FZGHkOPqDij0kJtZ18BrKdSPTyKrWZnTpjhLm2qI7r PVvbSr1Fp1IAYFfdik2MSWxC/73CyQiwc+yftcpkGYsWIhYw7IJukwhZ5OXPI88hE/yb t3LA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature:arc-authentication-results; bh=vgIo2uqT/6NXdxLDjL+Ulvmw0qxSmUMNUUwHBpc/OYo=; b=MSBE0TKB2YFHYVcCoWdz04lHi9exLTp1fIWFR+iYYAxpOptzgIKI6XXpcWy38ePYib cMGOLxuZHO5DUxl/hiEOegTU5Su++LXwZ3CwzqA5HfEFf569uRo/53jYckOL5bghN7BE p+vQuhfASxxILeVQj351gt/4B/62UWtw0YksBsLEf2BjrL/+pqraJiy4RedyeEGDzGxw eLF27v79RFv7A0nmEshzMeeJn7k9KL7FUm8lq5AdoBPDpBg8IaS3rh8qZb+oPabXreSj XRQ288gbDQWuiByIByuw8THrVD5F6zA0wq6iZnJAQe9fdH4zXOz1zEloYcewN0fuKwC5 XzSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hZE7KDm+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1-v6si17597131pgq.532.2018.05.06.18.12.31; Sun, 06 May 2018 18:12:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hZE7KDm+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751908AbeEGBLA (ORCPT + 99 others); Sun, 6 May 2018 21:11:00 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:40721 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751874AbeEGBK5 (ORCPT ); Sun, 6 May 2018 21:10:57 -0400 Received: by mail-pf0-f194.google.com with SMTP id f189so21483718pfa.7 for ; Sun, 06 May 2018 18:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=vgIo2uqT/6NXdxLDjL+Ulvmw0qxSmUMNUUwHBpc/OYo=; b=hZE7KDm+/3Cj1A1HgUmq2aFBgsPn4JG7nNxUfa1xKPBygkx46WUWOotBZ5IrsMOuDZ fXN2BIc8PKE6r6/MuneXJLXhY8r/xorfnRzozh1KJ2Vk8D+lHLAw7wkd7zvCJucZI6+1 JfwQ+E5F4sC4Gase73dPQ7+cEaLqqdGDuSD2KvjxwWqFgnwkwDrDZbgk7U6UdFA9H/jv UV49gVTNxDMxNmepReTCsbhkZ/DrCpupoYQDKNBE2hd6dnQhb8DJP8dV4rzq0L0OiV4z kd4kLWZTnneL93LRLRo/wVYkTx3nms10sjkeo+iQrpFrr232R3O3rAWBotAcs6DgIkFd iJow== 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-transfer-encoding; bh=vgIo2uqT/6NXdxLDjL+Ulvmw0qxSmUMNUUwHBpc/OYo=; b=bYxePvcVshePlq42eqUYDeyNWt3cFpA98dwWr0yFuizKnEjSBJ73w01Z8LewV9kxs3 fFU0/ISACtVfVzdbubBhxG+ydDhVEOEVFZtScl0cgJ+pPXt2UDtzS6vuPgGlZHqcSR/1 7EDFjfdDHcQILBDU26Q3h6vDi20QYneJl12+Q3AknnGU2jzCMmlzlQn/wJwpdD7+Ur+m HvpYIpOLXtiEq11IjpAxbGw6hKgqhvKWhHRBtv4Iew+9Of95L21xHVGVITleTP+PN5rl P4GaBgqENz0/rY9PoYI/KTDoHzOA89zxL0xOOH60+eUoHS5gaTYQ7xWwruzaek3VgW2H qyKA== X-Gm-Message-State: ALQs6tCQ5hEN4h7OruiiYnv2/0FPGlh3qKLXzL3BPs8VgjhlyoCuPnz2 kFvYBD0HQZVBnhUIZPOHYsQ= X-Received: by 2002:a65:4c4f:: with SMTP id l15-v6mr28890898pgr.61.1525655457215; Sun, 06 May 2018 18:10:57 -0700 (PDT) Received: from [0.0.0.0] (67.216.217.169.16clouds.com. [67.216.217.169]) by smtp.gmail.com with ESMTPSA id y7sm40287826pfy.55.2018.05.06.18.10.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 18:10:56 -0700 (PDT) Subject: Re: [PATCH v8 0/6] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64 To: Pavel Tatashin , Daniel Vacek 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 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: Jia He Message-ID: <448ad581-6635-e732-c49d-9240cdb385b5@gmail.com> Date: Mon, 7 May 2018 09:10:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <23b14717-0f4a-10f2-5118-7cb8445fbdab@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/5/2018 12:53 AM, 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. Thanks for the information. I checked the config in my armv8a server, DEFERRED_STRUCT_PAGE_INIT has not been enabled yet.And my server is single socket. Cheers. Jia