Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2013996pxa; Fri, 7 Aug 2020 00:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEz1KHXTIjJcqLC/b2SNZOSiZFjH3fNoh5r83ZH+PhOJPx50FMN9c6SjoTcCHhNpjoygx4 X-Received: by 2002:a05:6402:c81:: with SMTP id cm1mr7282548edb.256.1596784860833; Fri, 07 Aug 2020 00:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596784860; cv=none; d=google.com; s=arc-20160816; b=Cp1v/bB8mCjSEzvQTMN2+EBMw+nlG71yccRgFGK39GF6bKYSATn7FMMAB0NoYdmhUl 9EoWWJDjlxOzc4rVyjuMTfs7I+VRGVx8wHwTPqqnfBbFWZEVYh/NCP9PndNIDoc12X+X ZOqN3+jztzH2ZCGrLzdcKsnHzixNurWvqeC1JnQbgv+Wis8vgr84IOXfhenbBU7B1ccC njF6poASJlppAwqwwCI2jOu2yjYdtYUb/mtyTMw/VwB8QXj5RVVI4vCaqKJCkuJMKLvO +mhr8UAKKpLmKykZAhfh2zOolC2FPR7VjjcEore0b3ipTA5vEHSqBKyUFD3mKlcKQojL RM+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=d9Z/Ox4MVCO30Qu/8bxw5R/32QKfTtJLQ0f2otA0dlk=; b=qhrFDlDnF24eHwNdfU7aTU/ft5nuBcbvgyI1Ovw0ZFOlVeDMsRSXBaRifUPee3GmCO beboj+WH0/GaOi42ndv3L6sFljXf7VE/CLag0EAFoAYXIzFeC9TpDwaz2hCZLprM2CW+ TY44Bfgo64ILDcmdiZclJvb1HUt2gI2F8Y8u985pb1FvPtdSZ00FsI8G1k6NiUZ4NhUM j3CwpozXveuy2+jJWd2PSTLErUW+Xtzsr/Y7gHRiZOBRYf1Ke3+Z4jr8feRdFeBjz1Ur 9s9CRokT/ogO0ZXQkPzM0bBe+0TrsZoLEP8Y4yMRZWW5E0VPVNmuWRcwQEkLX4q4DACv m+MA== ARC-Authentication-Results: i=1; mx.google.com; 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 dp15si5702073ejc.199.2020.08.07.00.20.38; Fri, 07 Aug 2020 00:21:00 -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; 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 S1726831AbgHGHR0 (ORCPT + 99 others); Fri, 7 Aug 2020 03:17:26 -0400 Received: from mga05.intel.com ([192.55.52.43]:18216 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbgHGHRZ (ORCPT ); Fri, 7 Aug 2020 03:17:25 -0400 IronPort-SDR: niAEalFBLdxcA0n6bWAWRGSlTyRCVVM+xsZX5yPp00mtpSa7D+u6SdMx9Wezu+fJwYENOITMy5 0aWZUo/sSINw== X-IronPort-AV: E=McAfee;i="6000,8403,9705"; a="237871146" X-IronPort-AV: E=Sophos;i="5.75,444,1589266800"; d="scan'208";a="237871146" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2020 00:17:24 -0700 IronPort-SDR: TW2/Rs+oqVNyglT8SzPM1QCZ+r337k9xEfMIf6xTm3CR693d7jRwYZJWOfJqpBWRiswXg1Gb0R FKA72pWheM4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,444,1589266800"; d="scan'208";a="289534895" Received: from shao2-debian.sh.intel.com (HELO localhost) ([10.239.13.3]) by orsmga003.jf.intel.com with ESMTP; 07 Aug 2020 00:17:20 -0700 Date: Fri, 7 Aug 2020 15:16:43 +0800 From: kernel test robot To: Ingo Molnar Cc: Dan Williams , 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 Subject: Re: [x86/copy_mc] a0ac629ebe: fio.read_iops -43.3% regression Message-ID: <20200807071643.GL23458@shao2-debian> References: <159630256804.3143511.8894023468833792004.stgit@dwillia2-desk3.amr.corp.intel.com> <20200803094257.GA23458@shao2-debian> <20200806133452.GA2077191@gmail.com> <20200806153500.GC2131635@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200806153500.GC2131635@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 06, 2020 at 05:35:00PM +0200, Ingo Molnar wrote: > > * Dan Williams wrote: > > > 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. > > It would be nice to double check this on the kernel-test-robot side as > well, to make sure it's not a false positive. > Hi Ingo, We recompiled the kernels with option "-falign-functions=32", and the regression still exists: 7476b91d4db369d8 a0ac629ebe7b3d248cb9380778 testcase/testparams/testbox ---------------- -------------------------- --------------------------- %stddev change %stddev \ | \ 22103 -43% 12551 fio-basic/2M-performance-2pmem-xfs-libaio-dax-50%-200s-read-200G-tb-ucode=0x5002f01/lkp-csl-2sp6 22103 -43% 12551 GEO-MEAN fio.read_iops Best Regards, Rong Chen