Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp216535ybj; Wed, 6 May 2020 15:39:15 -0700 (PDT) X-Google-Smtp-Source: APiQypIuR9CbW8IQJ8yBB+jJOfl1a4CQosKTto7Ma1D2nHYJx/AvBZLSvpEWbRq85opxN6QcoNfR X-Received: by 2002:a17:907:118b:: with SMTP id uz11mr9222622ejb.89.1588804755388; Wed, 06 May 2020 15:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588804755; cv=none; d=google.com; s=arc-20160816; b=HGIpnDSkQfsSrsxJ6iUDW8YwST/PAztdOjTBUIyrNsU7+l4X68liP6DzBz6lgwB+kF 1Z7nU42hzFgR+bEh2XgmoIfajGxsFhzML0Xc/Ja5uVAI6L93V+meqWDm+m7Neseauwx4 wNwrs+pxVEMmHOHDoochcAqNaZdrW5B4uLNHrRwqntB0H4t3zEDk2+aI/5APz5qtjJ1P 9WjmjaOzEWyLZWs2JZCBUeQEpn+Uk8eKMNUUDYV/JMwhfRIDpQHnydVzDjnu0laZqX4x AHOhJrXQgm+95J3DVMsBBkMfYJxWxynHCa+iXKTbhr9Hxot01EEcpj48nVf+UKvZLmOW 6vIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EqjtatwoK6H8Lcx1Rhpj+GxNACQFKFH+9PeapNxu2JM=; b=RaUBK9FZ/CGUQAa3BS1ks3hn9ByP0JoWGTS+SCeiXwogocpdIUWGUr9FGXzeFagFqr +5bMRlg4dZXRMjdMglOldQb/2VUEcQyDMKXnsCyY7vrDLj28lC1WeHC3yqzQGajK9laY QS+lxHQ2q39WB0jRNP/ZHWQAhK8FLlpmRTmv2l3pPPTjjGvRWkarIliJBe/PEO9R1AR/ 7VFNw9AO0ZKPe6KvSVe8M98wMdwZrDaz5kZINvmJ0o/U/N5OCFm1ZEjpAmnCI2qicArH JxtT9FZqVJr8Q/ZIq3H7/hTkIgJ3Wk1MvnsplnoA+GRAJCu7SDku7iXCMAeVJvC40DWv NRwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MTekYnJP; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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. [23.128.96.18]) by mx.google.com with ESMTP id di17si1891833edb.593.2020.05.06.15.38.48; Wed, 06 May 2020 15:39:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MTekYnJP; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S1730313AbgEFWhG (ORCPT + 99 others); Wed, 6 May 2020 18:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729675AbgEFWhG (ORCPT ); Wed, 6 May 2020 18:37:06 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29924C061A0F; Wed, 6 May 2020 15:37:06 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id t12so1780998ile.9; Wed, 06 May 2020 15:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EqjtatwoK6H8Lcx1Rhpj+GxNACQFKFH+9PeapNxu2JM=; b=MTekYnJP90JNHZTmsIuBlkEn4myBtRaTxukh4xi/ctVgI0KxdRIcicfubDzM7VNSZ1 RGnmh3eNtWnS6SV/MGvc8hBdCQxR5ICDyfnkBTkDuDtjc9eW0Mzg+iCG6ErR8hfnkO2b yFHfKAQy8Q5u8XYIetUR8EACxcHMqHfa64OXKnnnPhaPPklkvNf9o6hVjGzqN2REgr6h TTrpAsZIxGLfpn6AhkibRAy2gsztNp7IS/7EPP2Kaq7AsykcWwzSFZXfzFQpyFXwwrdT xmX/YuqCf66apZ5qP/laKCkxPO7cjwyn7lyNtSqhqJRANdjsYjfmeWhoeTvMeiUeIA/L xMnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EqjtatwoK6H8Lcx1Rhpj+GxNACQFKFH+9PeapNxu2JM=; b=SS4dpuFzNWOtGBbnQhVbuu8FrurbkR3rpe2lVMcWcHOhbtoDRhVx19NeFT2Hf3DPt2 2KLQmM3xzgBNTpdalZsK8Xj5inMZDWqPQ/XVtLAEhSsxxXZ64B3bn1E9F8ZFdECYgpyT VoSI64lfFlj5XDcraA8BeuZuCML8VBTqQnUK9ghcPMFM96JcRJ2+Oh0AamkKH3sR6keB DjyUQks4xtQPJrW0D5gQGMia3CGWD55U9nLVyDUo/h8gmRW/YLdoBCFAi8qTgV2uLVsd 1yTiWPHIa/DGnoUY7jXouGuTDdWW2tfOnayZJK6yh3u+KXgl3tj3Ot81iXHwCLjhDyBq K/5A== X-Gm-Message-State: AGi0PubHpmkv11JFryR2BfGKyEkBNT+PbXkH5c5JZECkdBg1td30d07d vq0LAnEiNwlUyOHrwQIP1Inv5dPhXfcZBeGf0w0= X-Received: by 2002:a92:858b:: with SMTP id f133mr10241065ilh.97.1588804625313; Wed, 06 May 2020 15:37:05 -0700 (PDT) MIME-Version: 1.0 References: <20200430201125.532129-1-daniel.m.jordan@oracle.com> <20200430201125.532129-7-daniel.m.jordan@oracle.com> <3C3C62BE-6363-41C3-834C-C3124EB3FFAB@joshtriplett.org> <20200505014844.ulp4rtih7adtcicm@ca-dmjordan1.us.oracle.com> <20200505020916.mve4ijrg4z5h7eh5@ca-dmjordan1.us.oracle.com> <20200506222127.l3p2a2vjavwz2bdl@ca-dmjordan1.us.oracle.com> In-Reply-To: <20200506222127.l3p2a2vjavwz2bdl@ca-dmjordan1.us.oracle.com> From: Alexander Duyck Date: Wed, 6 May 2020 15:36:54 -0700 Message-ID: Subject: Re: [PATCH 6/7] mm: parallelize deferred_init_memmap() To: Daniel Jordan Cc: Josh Triplett , Andrew Morton , Herbert Xu , Steffen Klassert , Alex Williamson , Alexander Duyck , Dan Williams , Dave Hansen , David Hildenbrand , Jason Gunthorpe , Jonathan Corbet , Kirill Tkhai , Michal Hocko , Pavel Machek , Pavel Tatashin , Peter Zijlstra , Randy Dunlap , Shile Zhang , Tejun Heo , Zi Yan , linux-crypto@vger.kernel.org, linux-mm , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, May 6, 2020 at 3:21 PM Daniel Jordan wrote: > > On Tue, May 05, 2020 at 07:55:43AM -0700, Alexander Duyck wrote: > > One question about this data. What is the power management > > configuration on the systems when you are running these tests? I'm > > just curious if CPU frequency scaling, C states, and turbo are > > enabled? > > Yes, intel_pstate is loaded in active mode without hwp and with turbo enabled > (those power management docs are great by the way!) and intel_idle is in use > too. > > > I ask because that is what I have seen usually make the > > difference in these kind of workloads as the throughput starts > > dropping off as you start seeing the core frequency lower and more > > cores become active. > > If I follow, you're saying there's a chance performance would improve with the > above disabled, but how often would a system be configured that way? Even if > it were faster, the machine is configured how it's configured, or am I missing > your point? I think you might be missing my point. What I was getting at is that I know for performance testing sometimes C states and P states get disabled in order to get consistent results between runs, it sounds like you have them enabled though. I was just wondering if you had disabled them or not. If they were disabled then you wouldn't get the benefits of turbo and as such adding more cores wouldn't come at a penalty, while with it enabled the first few cores should start to slow down as they fell out of turbo mode. So it may be part of the reason why you are only hitting about 10x at full core count. As it stands I think your code may speed up a bit if you split the work up based on section instead of max order. That would get rid of any cache bouncing you may be doing on the pageblock flags and reduce the overhead for splitting the work up into individual pieces since each piece will be bigger.