Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1574973pxa; Thu, 6 Aug 2020 10:36:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygfTfSp/RM4xvQSi2AR7ZZCXnWfrEnwXYqEWXK98t+rl/oYoPZFKdrqTLvLR60zNv1zpeD X-Received: by 2002:a50:e844:: with SMTP id k4mr4971888edn.237.1596735417115; Thu, 06 Aug 2020 10:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596735417; cv=none; d=google.com; s=arc-20160816; b=V2Gl6W3EG+GfhKup0vhdkt2QrvPzu+osCGxNneH7rFZNAyIqmF25rdQHkgY2x/KNE7 T4+ccZodKFRuVTaGDX2mrcVmszFpL6EmiKpkyKjWCjEe3kIR9FL2CRvJdczDQWsW/j5m XSccMo0UmnejwKaLo3sP2KNaLPhJ8x65oZtAOau7zrjnCuDk8T+T4f1EPNfOPKDBNqKH 8nPsRb0dyd3GHxz4bEnme+sTfVuz5GCVCd4NRc4iLqlwLfE3LrC1ieB5rUhPgNW2MMMy 7TnrO5PiwnbOETKCBLvv7EixE7M6YdoA5xhge9fRDdjkYG4cDyEWYflyDrDzJwC1+J1l DshQ== 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=27KOdDBMR58YvRnK7H5/nd9yUqjH+UuYcfpnQiwOOLU=; b=qN9A6zNvyTU2R/AVqlPujbHGjz/yYVSUC2urY1tdtvLbGHjk6XtHWH1M9ZRI9uX1PI PGnuQ+9MkYCPOcZTCWDD1knZQMDGq/qWaYQ8tIFJRvANLkZpexpwNJfuoiNNKf6qQX/8 4f9PQeTb1FY7cOtHc3has4WKuQFLXK/XVI4sgI+2pO1z3ToTxa/fVmbc8lXe9hsRZ6Qh mffbXfbWS9ImkpcfxTAfY5p0zdo/zP+xyQb1F67gCAPez6TJWTXXrjuek0gbuHshjXna 8rrtzrx5emcDAUxIcZtEJi5waQXfStH2McnnSIOLUCRpDOim7hwOLKU6Rc3jyvnUkdJz sAVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=tGrB7Z7W; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si3768415edr.146.2020.08.06.10.36.34; Thu, 06 Aug 2020 10:36:57 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=tGrB7Z7W; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729495AbgHFRg1 (ORCPT + 99 others); Thu, 6 Aug 2020 13:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729698AbgHFRfY (ORCPT ); Thu, 6 Aug 2020 13:35:24 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BED4C0086A7 for ; Thu, 6 Aug 2020 08:20:03 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id g19so36922114ejc.9 for ; Thu, 06 Aug 2020 08:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=27KOdDBMR58YvRnK7H5/nd9yUqjH+UuYcfpnQiwOOLU=; b=tGrB7Z7WS0HHtWrS+RAu0IAYwU8Nad8rwMZdG73SY5x2ARE0d1FqXwWCLzD3UMrdlR 6Kn0kjJyU3Zbj6OubM+TRf7kg41JZspNfLxofrrUzUQMRrYpHgt6yi61+Rzw0TSxyySG ZrV978lfm55ZcESwNGZp975asvMxzL4xk01lDpBkj9kuUKt1y4ZnLs/xyWsATvELhJk1 kFLFuZbHju979DVXXQ3lQhqftMpDMvL9oc++9T2qcgkhq/HPw08XX+JQDNIRTow6uAXN WiVbdduH+x+EmynnvVmeE/Jlm8OcHRV5jln6i5lJFo17YjLsUFxNhJ1YjoX3Mjouet1b 4MZA== 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=27KOdDBMR58YvRnK7H5/nd9yUqjH+UuYcfpnQiwOOLU=; b=VYimEth6TiqnsnInDDBRwXzdmZIvJFUwBGOH1wa/DLtnZ01l/rMhfatTMzPX77/W5x 1zpGwSrTmuaw8w/dbWIZPH1yoi3sjTUOJ5cqvEzgvA4j+MhWDwo/EbBCN+WK1k0+7/SJ +OQVTIs5gxba/FnuATfMZWc44qGLwVrcuGGd5yyCSVxJ6hObV0q4GlGF8BazVb2hruxM A6AiIfGTS5LSKqf5H1xSPrb9uuvi+wy0/wsO9vwXD6WOWdTCrmpBUJ0hfwHhIOp4/Sjd E82r1qGN4wFGmSTIFX011YJDv/dHTtDMPwd7zH+KKG1z9HQ5vHH9blMwSFVPgIPBXF60 q70Q== X-Gm-Message-State: AOAM531DjbEtsbAaNQlAv/xe8vLLEJ8rre3XUetxa558Nys2skuMl4vQ vtA9S0AWiiLEdig4PauDj8jPwvPhaHZTL9dlXzHd7w== X-Received: by 2002:a17:906:38d8:: with SMTP id r24mr4667542ejd.341.1596727202027; Thu, 06 Aug 2020 08:20:02 -0700 (PDT) MIME-Version: 1.0 References: <159630256804.3143511.8894023468833792004.stgit@dwillia2-desk3.amr.corp.intel.com> <20200803094257.GA23458@shao2-debian> <20200806133452.GA2077191@gmail.com> In-Reply-To: <20200806133452.GA2077191@gmail.com> From: Dan Williams Date: Thu, 6 Aug 2020 08:19:52 -0700 Message-ID: Subject: Re: [x86/copy_mc] a0ac629ebe: fio.read_iops -43.3% regression To: Ingo Molnar Cc: kernel test robot , Thomas Gleixner , Ingo Molnar , Vishal L Verma , X86 ML , stable , Borislav Petkov , Vivek Goyal , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Linus Torvalds , Tony Luck , Erwin Tsaur , linux-nvdimm , Linux Kernel Mailing List , 0day robot , lkp@lists.01.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 6, 2020 at 6:35 AM Ingo Molnar wrote: > > > * kernel test robot wrote: > > > Greeting, > > > > FYI, we noticed a -43.3% regression of fio.read_iops due to commit: > > > > > > commit: a0ac629ebe7b3d248cb93807782a00d9142fdb98 ("x86/copy_mc: Introduce copy_mc_generic()") > > url: https://github.com/0day-ci/linux/commits/Dan-Williams/Renovate-memcpy_mcsafe-with-copy_mc_to_-user-kernel/20200802-014046 > > > > > > in testcase: fio-basic > > on test machine: 96 threads Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 256G memory > > with following parameters: > > So this performance regression, if it isn't a spurious result, looks > concerning. Is this expected? This is not expected and I think delays these patches until I'm back from leave in a few weeks. I know that we might lose some inlining effect due to replacing native memcpy, but I did not expect it would have an impact like this. In my testing I was seeing a performance improvement from replacing the careful / open-coded copy with rep; mov;, which increases the surprise of this result.