Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3993882pxj; Mon, 24 May 2021 20:55:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAbm3jGbMPsCTm0d1xuqSMIciYiKbpJIOjPu7HweUzk70p/FDVoKdvA6+L6O7xI+37uTOM X-Received: by 2002:a05:6e02:1252:: with SMTP id j18mr16929958ilq.205.1621914918445; Mon, 24 May 2021 20:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621914918; cv=none; d=google.com; s=arc-20160816; b=WFYUjJZtEFnHTQl4I5Tp4vbmfGK3QnY6aA/0QRLVrKJ7tBkE8imIt2z1F1oV8gPbgS naQUxXzLZcdHUk+6EHtqcw3BflcuiBkPd2EdJnOLJUI7VJJypPNNhrQVjQRGckwUK81d dpCU4opaXgNgVQeIxqKRkKRcpXoDJlCuiDuQqkfE89cIzeypjKcKqWVpmWPM4e2BrrP4 aGwMEqHQVAX1fjpskY+pK0HSBLIKAsOpazWJY0uWGCozIN059iBU0CRMe7i/Ur/Ah6Vv +QD6T5NZqYFO8DcuFr9bYdHTmvBs1aruDvMfJcISPs98Guk4hwj4i6k1D3FfEIfCwJBQ KElQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KXdwPjLy8p+ZNsFuwTHjb34OCdCdZ+yc5hjsESK2BF8=; b=ncBjRAhOVMJu4P7ZaEg+0zoHF7aDlx2WKknkLYTvmZStEe9gyel3fOkVOGxu1K6D7H DqjPbYXUHLYLnZBaFl7eAvyYcN76Z/uRf1GNnWFltlGeOC95qxoddpa9cr/QX/AstxEP R5GrNy/MgNgQUhg1eywx+FOaWtDOremxg22aGcj5vCrzbxZNAL/uijcP30nWveP1BWsb UqtF/R1m1Bjh7FZMjSxMwI/Vzm0lFhRK5EEecW16/8Czwf8wYQANb+ha2F89DZ7ijDXP oFoTv6Jd8ldRb1g3gEc1UuWHeOPjxemyQAgAhI2XbVM6uJRn5Q2YCThX4RUWaRImFCXi DxBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=VoWuibnI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si15312706jal.79.2021.05.24.20.55.04; Mon, 24 May 2021 20:55:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linux-foundation.org header.s=google header.b=VoWuibnI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbhEYDN1 (ORCPT + 99 others); Mon, 24 May 2021 23:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbhEYDN1 (ORCPT ); Mon, 24 May 2021 23:13:27 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5437C061574 for ; Mon, 24 May 2021 20:11:56 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id f30so6666535lfj.1 for ; Mon, 24 May 2021 20:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KXdwPjLy8p+ZNsFuwTHjb34OCdCdZ+yc5hjsESK2BF8=; b=VoWuibnIL420UYl2n8AsosYrZPnisjXrlOhsUBBlw5MmzcwMF9aDtcTZA9n86EZ04A iKtezaGmdtqOp87nAhTYNsCFAgW07gxImBXhuL8wZaf0s8ZlRDLHhTxtNvByYYlkCKCf MSbtIU2pY4jJV2brIq+Xx1ARPE74uj/QT1t/I= 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=KXdwPjLy8p+ZNsFuwTHjb34OCdCdZ+yc5hjsESK2BF8=; b=KOZFqFfLK55pn6/ZV0ihhKeuTZKamlDpikOnbatott5libRv8i81dd0OOP9e99O1pV fPIJ2Fqpp8Pn3qilkH9we44GZcPo3Ex/ewzKYla//sTqmVnVinHiexF4//pWhteLm8kC cCVqJ2Eh6F4ztUlarr4dhouhAAW3jr8Si2ojxnkXXxvA4jXqykjpPKf/lYd/RazuZ3pu 0H2Mf5GBv1IwfChLiJkNKNBaBEXYLNP6DXTPArl1GHyp3X+EqkjnRjLGJ7leiR17bhJN DllaLsb2BmY/xiGG5r6apwgwHkB1NwsjjUtpvb8q1R5+IrhaxkCgJ/w0rmvFMlTB3z+H IpgQ== X-Gm-Message-State: AOAM5311JIuRb6/w284HjVQMfSmzN7I7WfqJ5eNoGVXJGSvwjejc0BoI mAIVm2kfl+tLPbmkqv7MfwgVGTdGbIxz4xLNkVc= X-Received: by 2002:a05:6512:40f:: with SMTP id u15mr12267871lfk.271.1621912314767; Mon, 24 May 2021 20:11:54 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id m28sm322489lfj.173.2021.05.24.20.11.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 20:11:53 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id q1so1268742lfo.3 for ; Mon, 24 May 2021 20:11:53 -0700 (PDT) X-Received: by 2002:a05:6512:36c5:: with SMTP id e5mr12425672lfs.41.1621912313387; Mon, 24 May 2021 20:11:53 -0700 (PDT) MIME-Version: 1.0 References: <20210525031636.GB7744@xsang-OptiPlex-9020> In-Reply-To: <20210525031636.GB7744@xsang-OptiPlex-9020> From: Linus Torvalds Date: Mon, 24 May 2021 17:11:37 -1000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [mm/gup] 57efa1fe59: will-it-scale.per_thread_ops -9.2% regression To: kernel test robot Cc: Jason Gunthorpe , John Hubbard , Jan Kara , Peter Xu , Andrea Arcangeli , "Aneesh Kumar K.V" , Christoph Hellwig , Hugh Dickins , Jann Horn , Kirill Shutemov , Kirill Tkhai , Leon Romanovsky , Michal Hocko , Oleg Nesterov , Andrew Morton , LKML , lkp@lists.01.org, kernel test robot , "Huang, Ying" , Feng Tang , zhengjun.xing@intel.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 24, 2021 at 5:00 PM kernel test robot wrote: > > FYI, we noticed a -9.2% regression of will-it-scale.per_thread_ops due to commit: > commit: 57efa1fe5957694fa541c9062de0a127f0b9acb0 ("mm/gup: prevent gup_fast from racing with COW during fork") Hmm. This looks like one of those "random fluctuations" things. It would be good to hear if other test-cases also bisect to the same thing, but this report already says: > In addition to that, the commit also has significant impact on the following tests: > > +------------------+---------------------------------------------------------------------------------+ > | testcase: change | will-it-scale: will-it-scale.per_thread_ops 3.7% improvement | which does kind of reinforce that "this benchmark gives unstable numbers". The perf data doesn't even mention any of the GUP paths, and on the pure fork path the biggest impact would be: (a) maybe "struct mm_struct" changed in size or had a different cache layout (b) two added (nonatomic) increment operations in the fork path due to the seqcount and I'm not seeing what would cause that 9% change. Obviously cache placement has done it before. If somebody else sees something that I'm missing, please holler. But I'll ignore this as "noise" otherwise. Linus