Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp27528pxb; Wed, 1 Sep 2021 20:49:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaFMF7Buw21oYTlhj6BPwO0GxiAiUNi4YWraVoUgrzjJugYo8jYLeBOzPDluuBkf5Tj41t X-Received: by 2002:a05:6e02:174a:: with SMTP id y10mr827665ill.121.1630554568563; Wed, 01 Sep 2021 20:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630554568; cv=none; d=google.com; s=arc-20160816; b=R2KPUXjvJCV2iT86/CaLDD7cFvom7P5HggOaQrUp51xjPJAaAc/8W9VSty4SLUUrAL SNOXNTz1jmmzB+rYo0Zy+31gd7ImUbMlVmVabPHbuQSF6tYtPTJeKXhuoUnZ2+quIrkW VdKKlGQmlReZB9yRSIj+CwevKAjAZqALWIc1l9rhOvGPT7Motgp+3kqIXekMNcWmBew0 T5Ws88Aqw3HItRg+edmCZXOx2nLrN4R2Ft6yL5HllE7gkQvVv3kMRsKwuxM/Y27UbO+7 g8T0ovbgYyIqkTcOrOSp7luXeG/d8KIwY0eAm+YxsYiNIcvlE3FRTIyvx7HO3VkHHFFI OptQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=A9QWvH+v1kdrLTahxRzdYHCsWQicEbnCmeRw7CLRGqQ=; b=DC9hoXiW9ZakdA8bNqwfet2tQ/MWJGubOtUCXPimEQrgNnkXsJtaVF/y+RXEJSh1yE Zu0/mfz8z8VLYC1FZT2qVCz37Lg47Hl+jJKO6VsaevY2j5jLcKTcDYjEHcFtYYD+iV5K kxh/1/Th96YHztQaJIp8W1xRRgDNsYqOMfyOX69nu6BrxCezUX3sKoKSnX89QbMZu31O kY1aa0sPuS/dUXf4UPapW5yDJPXdmIBPMF86yLqB2HJP+FZNF6fZy6ee8FUbszF9PcKi BHILA66BlWSdBkzZrxfsHEsjWv7F1GmfvtVaOpfRjFyiONWlJ5L0Shy5j9p6KDdI4MC8 fhqA== 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 y12si709707ilg.98.2021.09.01.20.49.13; Wed, 01 Sep 2021 20:49:28 -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 S242859AbhIBDrc (ORCPT + 99 others); Wed, 1 Sep 2021 23:47:32 -0400 Received: from mga09.intel.com ([134.134.136.24]:52520 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233122AbhIBDrb (ORCPT ); Wed, 1 Sep 2021 23:47:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10094"; a="218966125" X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="218966125" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 20:46:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="520831994" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.146.151]) by fmsmga004.fm.intel.com with ESMTP; 01 Sep 2021 20:46:29 -0700 Date: Thu, 2 Sep 2021 11:46:28 +0800 From: Feng Tang To: Andi Kleen Cc: Michal Koutn?? , Johannes Weiner , Linus Torvalds , andi.kleen@intel.com, kernel test robot , Roman Gushchin , Michal Hocko , Shakeel Butt , Balbir Singh , Tejun Heo , Andrew Morton , LKML , lkp@lists.01.org, kernel test robot , "Huang, Ying" , Zhengjun Xing Subject: Re: [mm] 2d146aa3aa: vm-scalability.throughput -36.4% regression Message-ID: <20210902034628.GA76472@shbuild999.sh.intel.com> References: <20210817024500.GC72770@shbuild999.sh.intel.com> <20210817164737.GA23342@blackbody.suse.cz> <20210818023004.GA17956@shbuild999.sh.intel.com> <20210831063036.GA46357@shbuild999.sh.intel.com> <20210831092304.GA17119@blackbody.suse.cz> <20210901045032.GA21937@shbuild999.sh.intel.com> <877dg0wcrr.fsf@linux.intel.com> <20210902013558.GA97410@shbuild999.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 01, 2021 at 07:23:24PM -0700, Andi Kleen wrote: > > On 9/1/2021 6:35 PM, Feng Tang wrote: > >On Wed, Sep 01, 2021 at 08:12:24AM -0700, Andi Kleen wrote: > >>Feng Tang writes: > >>>Yes, the tests I did is no matter where the 128B padding is added, the > >>>performance can be restored and even improved. > >>I wonder if we can find some cold, rarely accessed, data to put into the > >>padding to not waste it. Perhaps some name strings? Or the destroy > >>support, which doesn't sound like its commonly used. > >Yes, I tried to move 'destroy_work', 'destroy_rwork' and 'parent' over > >before the 'refcnt' together with some padding, it restored the performance > >to about 10~15% regression. (debug patch pasted below) > > > >But I'm not sure if we should use it, before we can fully explain the > >regression. > > Narrowing it down to a single prefetcher seems good enough to me. The > behavior of the prefetchers is fairly complicated and hard to predict, so I > doubt you'll ever get a 100% step by step explanation. Yes, I'm afriad so, given that the policy/algorithm used by perfetcher keeps changing from generation to generation. I will test the patch more with other benchmarks. Thanks, Feng > > -Andi >