Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp323259pxb; Thu, 5 Nov 2020 00:31:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzF013z2Nvyi0z+w0zejGFYDw2NDt9/JPUJXQXTlg/KWWLZjuQoxioVRpagsOPfw/qfgvp0 X-Received: by 2002:a17:906:5052:: with SMTP id e18mr1150234ejk.530.1604565080290; Thu, 05 Nov 2020 00:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604565080; cv=none; d=google.com; s=arc-20160816; b=f4lBKa7IAZjeq1DHV+fEZ7VjHA2Ce6gTkJQIu5TPxXOsEO2OCX1q1b2e8p0eB+4Qwe A61m6WN9j6rWjtcT+t/wZzR/QMThcbfrOmuC/Ta6sIK1OrV41HUwEcbBeNa4xKHkbkAA RZd0uy7klGtS3koMBkCc1C3PaVVgiGDOhAi+rRhuLsAFeoVXYC4mRtwlss8NgGEftDMV sNgnooaj8KjeU+33PJrOSWRbEtfdFCKxmOfc+haDNLc0OlgvjzkrOk021nJLabd/XThl 47zUG6KuxK3zKbgicU3l6Uu8TMgSUHXLstv5MbTZz/5hl1tbsfz4dTVdN73DZLJ+BSjl msCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=wAGVT2PdB1Z8sEEJju+a7hGq3pqksXFvIlr7bVhs2BA=; b=dJVVz6JrPbejK4/bvG44jg+nTC69iYYv+KitSPm40TBsR7Teyp7Xcpy3kZViz5edcc rZnnyGAUJdQqLA5CLs/rRSot/8MRluFZFvyp6IZM34MBU05NGxYUlPM8w8fBM8oHGhy/ HcUHtTnSXPw31KbtpTImtVM8ogmK0GI7nklD114Eo13plg9La/MHYHKEUtuOjtXzNMPx +EaLj2uU4F+sxUsMTFgF5voRuZBuaLmU6SC8m89rR34z+vMwVPFQOb9Wo00NvDRKjrgM y38Dc6GT9bfdwLiUakIc9fYougrspdiJKWRA+bwjJYqItfuovh9q8MNTQnJEtjk8a71I 5m1g== 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 h4si651790ejj.390.2020.11.05.00.30.58; Thu, 05 Nov 2020 00:31:20 -0800 (PST) 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 S1729386AbgKEI3B (ORCPT + 99 others); Thu, 5 Nov 2020 03:29:01 -0500 Received: from mga09.intel.com ([134.134.136.24]:27512 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgKEI3B (ORCPT ); Thu, 5 Nov 2020 03:29:01 -0500 IronPort-SDR: Tzg6rNHMPvE8s3uQs/2RMtgl6l1pGgEl/nFoEn3Fm9x962so/lkI3JmBmu2KpaDoq5WMuwwbAe avjvlbyVsGnQ== X-IronPort-AV: E=McAfee;i="6000,8403,9795"; a="169490978" X-IronPort-AV: E=Sophos;i="5.77,453,1596524400"; d="scan'208";a="169490978" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2020 00:28:59 -0800 IronPort-SDR: nUp/+X//aM/SYwFrMlZRSVMFyjVB+CltZDanTK50mC5M7+c7kJSW+CJpNolPwd/GVCX9TvTc6J c0NRomAH2n7g== X-IronPort-AV: E=Sophos;i="5.77,453,1596524400"; d="scan'208";a="539293116" Received: from xingzhen-mobl.ccr.corp.intel.com (HELO [10.238.4.68]) ([10.238.4.68]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2020 00:28:57 -0800 Subject: Re: [LKP] Re: [mm/gup] a308c71bf1: stress-ng.vm-splice.ops_per_sec -95.6% regression To: Linus Torvalds , kernel test robot , Jann Horn Cc: Peter Xu , LKML , lkp@lists.01.org, kernel test robot , zhengjun.xing@intel.com References: <20201102091428.GK31092@shao2-debian> From: Xing Zhengjun Message-ID: Date: Thu, 5 Nov 2020 16:28:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/5/2020 2:29 AM, Linus Torvalds wrote: > On Mon, Nov 2, 2020 at 1:15 AM kernel test robot wrote: >> >> Greeting, >> >> FYI, we noticed a -95.6% regression of stress-ng.vm-splice.ops_per_sec due to commit: >> >> commit: a308c71bf1e6e19cc2e4ced31853ee0fc7cb439a ("mm/gup: Remove enfornced COW mechanism") >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > Note that this is just the reverse of the previous 2000% improvement > reported by the test robot here: > > https://lore.kernel.org/lkml/20200611040453.GK12456@shao2-debian/ > > and the explanation seems to remain the same: > > https://lore.kernel.org/lkml/CAG48ez1v1b4X5LgFya6nvi33-TWwqna_dc5jGFVosqQhdn_Nkg@mail.gmail.com/ > > IOW, this is testing a special case (zero page lookup) that the "force > COW" patches happened to turn into a regular case (COW creating a > regular page from the zero page). > > The question is whether we should care about the zero page for gup_fast lookup. > > If we do care, then the proper fix is likely simply to allow the zero > page in fast-gup, the same way we already do in slow-gup. > > ENTIRELY UNTESTED PATCH ATTACHED. > > Rong - mind testing this? I don't think the zero-page _should_ be > something that real loads care about, but hey, maybe people do want to > do things like splice zeroes very efficiently.. I test the patch, the regression still existed. ========================================================================================= tbox_group/testcase/rootfs/kconfig/compiler/nr_threads/disk/testtime/class/cpufreq_governor/ucode: lkp-csl-2sp5/stress-ng/debian-10.4-x86_64-20200603.cgz/x86_64-rhel-8.3/gcc-9/100%/1HDD/30s/pipe/performance/0x5002f01 commit: 1a0cf26323c80e2f1c58fc04f15686de61bfab0c a308c71bf1e6e19cc2e4ced31853ee0fc7cb439a da5ba9980aa2211c1e2a89fc814abab2fea6f69d (debug patch) 1a0cf26323c80e2f a308c71bf1e6e19cc2e4ced3185 da5ba9980aa2211c1e2a89fc814 ---------------- --------------------------- --------------------------- %stddev %change %stddev %change %stddev \ | \ | \ 3.406e+09 -95.6% 1.49e+08 -96.4% 1.213e+08 stress-ng.vm-splice.ops 1.135e+08 -95.6% 4965911 -96.4% 4041777 stress-ng.vm-splice.ops_per_sec > > And note the "untested" part of the patch. It _looks_ fairly obvious, > but maybe I'm missing something. > > Linus > > > _______________________________________________ > LKP mailing list -- lkp@lists.01.org > To unsubscribe send an email to lkp-leave@lists.01.org > -- Zhengjun Xing