Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1162245pxb; Wed, 1 Sep 2021 19:26:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDclu9yElst5XVRfZD/AttMcgcrXktdyabXN2mZ093N37rmJ4gs7jfvUG+hs8m+NRQV08m X-Received: by 2002:a17:906:8258:: with SMTP id f24mr1066934ejx.375.1630549610091; Wed, 01 Sep 2021 19:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630549610; cv=none; d=google.com; s=arc-20160816; b=Ey34bg6vg80coJZfX70b/zljuzrVrYea/DmkcL+agjl6k2Z/1HR9d4dC5dOyh8Tr5g BKFmS+s1bgWNrRqmHQtxpcuyN0IiVG93kzgcp3OPbY92/26AY+Q5wRzjnE2EMSnIG/Qo AypiVhhk4v2ZFCtzm7ED+e9H56Dl7XYzrO7mRTmnwiE8xTPTNFwUksD9rUSt2R1tFpFu Eed5baQ1569v+OjknAzUJAx7YRBH30rRbd1yhzGj9KMfOIieqqx7z5UjX9c4K3BJm5F6 XfV3CGtdMEHUiZgEHTbRLcGIBCg/xOE2GXFAboIZcVmiZcRz297zDgUwbd2b61mLlUun h8fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=JgQvcAnHJT6cR0o+0bsAXMHCpYYFefWSWT6u0gZEByY=; b=n7HvEgE7XtfbzHTmO9ijIGxBSZ+JCNrRWYaBVTILhyFF78p7wrVOEnrT7s+pdtSYQJ HtZR13csJcDJsv75Us1wPsvxSwa0VNsRuRQxKJqn2hH3MPaNcIXR07NWIUgArUkUaXPN trS7ydyTkZdPCtOstMteAU91Nwh6oXSWnMNXB1Rl5nAPe+bHFbILFZnRNnQYA1dDBe4z YTwcY1S+ivtW1r00jyBjPvU+LPSBSvWULka6Rt5pDbHObO2ttBH68waZWsBHJMDoJHlw Wvq8O1GcM/FEgEpgZBNNDQF+0CQvZ8TwqcBjJqEjmqpqJ0dASAFExJOSAqQChzJD/P84 TA1w== 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 nb19si393864ejc.567.2021.09.01.19.26.24; Wed, 01 Sep 2021 19:26:50 -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 S232666AbhIBCYh (ORCPT + 99 others); Wed, 1 Sep 2021 22:24:37 -0400 Received: from mga02.intel.com ([134.134.136.20]:24025 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243704AbhIBCYY (ORCPT ); Wed, 1 Sep 2021 22:24:24 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10094"; a="206153851" X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="206153851" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 19:23:26 -0700 X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="691080809" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.11.199]) ([10.209.11.199]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 19:23:25 -0700 Subject: Re: [mm] 2d146aa3aa: vm-scalability.throughput -36.4% regression To: Feng Tang 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 References: <20210816032855.GB72770@shbuild999.sh.intel.com> <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> From: Andi Kleen Message-ID: Date: Wed, 1 Sep 2021 19:23:24 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210902013558.GA97410@shbuild999.sh.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Andi