Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2388017pxb; Mon, 20 Sep 2021 21:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziSQIu8ga+P6Lf0frdKnj376u8lJC6ktbpZPwXOOYpBtJvDq0UdEBmlyG/9rH3xQSuzYG9 X-Received: by 2002:a17:906:6148:: with SMTP id p8mr32945202ejl.263.1632196991941; Mon, 20 Sep 2021 21:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632196991; cv=none; d=google.com; s=arc-20160816; b=W4ddAHdk5fhAqk5kz8d0ifjffxCIZ9BAUFYVt5WLKIhamTEqXEdwF0iiw3C2yrsiF/ 0OUebKLC73mJ28Oflo34Ypjs3l2dc8EC6z+hiZbS0QWOjzxcLifSW67f01nhRJ+g04U+ 87PT5+C1aMxRYXfEyTvChOcyzYM6m2tdH12EPOpHFKaaRFJzs1M1BqDRDOHS8GT26ZsL G2bfTyYx1hOWUaUmkrJ1aBfoo8FulbmSf+dISvYnxoBAiQdUSYIr1Ck4YGak58oCyA9y gU+4B+Hg4Ktw6G+0W65HCWUA/vbU8yD5Y6ozH/uWuudeA7qNFpKTYVepj1d12QqCReQJ PtsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=vrcaCp8wAG9WhMElbt3SFMZG1ccQwS5//7td2G4tQVw=; b=tsSJSuRaA7JGwV3TSnF6gQ1s34l893mU8mj/BDadh3+GRODpzc1SGw4McjExuNgc5h iRR2uRgpCqZJ+BUcJHMQICGdEYfBe+Z9+A3zIT4mhl5whz57F0YW0SlT3bZxRxtq4N95 X2fK2ZGguP+QwMh2GDAXJ9b6k8B4ZqReEwwmQhbVc+vgoIbhRMfSsUTwZYFhT7rT23KI reKzWXfVH2eQuGNCT7Fj/GcQcfCJ4WLI/uWUSFkabz3fGdN7+yKJoRnWtcv5aOONqPI3 jc9enTT+aryLyPwyIHeUlI+VVlwIVKWWY39L4GMORBdjAJaFLZFWrZ24BVuI0tjtZqxN VmHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LbiW+vJt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si17369391ejn.647.2021.09.20.21.02.48; Mon, 20 Sep 2021 21:03:11 -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=@gmail.com header.s=20210112 header.b=LbiW+vJt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244938AbhIUCJ3 (ORCPT + 99 others); Mon, 20 Sep 2021 22:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237845AbhIUB4t (ORCPT ); Mon, 20 Sep 2021 21:56:49 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32D4EC0313CF for ; Mon, 20 Sep 2021 16:50:20 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id t20so13122897pju.5 for ; Mon, 20 Sep 2021 16:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vrcaCp8wAG9WhMElbt3SFMZG1ccQwS5//7td2G4tQVw=; b=LbiW+vJtWL6WTaQ9//JZW46yS0oAh/MegbVt3qRem/mZh8AZkW9/CtaaV68C2JpLDq HCdEdkmUj0NM+oSrHNiBCk1krYVqBi3PQQ8J0h7ZpCH4Ac26oiLjkr6fDYzW/yypRVxI dIAH6YU2L4BTKvOgMUjY4umP3hCeLgZkWgkaofw2QzaVmalf7TfjuNS/tC6L9AH9SRac QeG/LDCjrFoimKWuFio9+wRhYfdJo4F255JIdMSb3NSElXNXzRGesDkCUNn+PJZdsBwR K/p0IX7K4Ekh23lwVSeZXVedOFnpeqYCwmPPtx545Xo9cis/N5oZ48V1MQiP2CWkTK6e 36Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=vrcaCp8wAG9WhMElbt3SFMZG1ccQwS5//7td2G4tQVw=; b=CKxets030QvC9ljH34yc2+dBlR/5tn410MtsD4wK4rNCh0Ji4xc+5ai6Ot9EvRpNmm BeihIHn/ULGxEF649xQfgTHMQMCue4w583kIYat4SbtjLZqTJnmuiCvyjejIo6AqYwTk aMTPkK7HE+TtJAkRa5MzxOZIANJ4HEfHQYvKKxWyHAQIbx0QzB3tvs3f0AerHxJON3oI ih2MbQtjMh1eRiD75Zc7WmxvMMiuBcOfYyOaDkczlGBPlp4YPSDXOo2EtSR/zq/JoO9V n/g9cl4VxghQinQqit3xP0idm9Gb8hkBUcpJzlDgIMHTjbBAfupQ8HzQ+eTpLzZMggDx OUYw== X-Gm-Message-State: AOAM533Bdd+XTM/1Yw+p6X14GTgwXHMmSCALJDHcOOivSt6t+l8uOR4f DkIpiG9Fc4J3ZN9O5w/dS1c= X-Received: by 2002:a17:90a:f2cd:: with SMTP id gt13mr1779693pjb.153.1632181819626; Mon, 20 Sep 2021 16:50:19 -0700 (PDT) Received: from google.com ([2620:15c:211:201:9a49:e1f0:6fe9:6fd9]) by smtp.gmail.com with ESMTPSA id e13sm15147485pfi.210.2021.09.20.16.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 16:50:19 -0700 (PDT) Sender: Minchan Kim Date: Mon, 20 Sep 2021 16:50:16 -0700 From: Minchan Kim To: Linus Torvalds , zhengjun.xing@intel.com Cc: Andrew Morton , Laura Abbott , Oliver Sang , David Hildenbrand , John Dias , Matthew Wilcox , Michal Hocko , Suren Baghdasaryan , Vlastimil Babka , LKML , linux-mm , lkp@lists.01.org, kernel test robot , "Huang, Ying" , Feng Tang , zhengjun.xing@intel.com, Chris Goldsworthy Subject: Re: [PATCH v3] mm: fs: invalidate bh_lrus for only cold path Message-ID: References: <20210907212347.1977686-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 20, 2021 at 04:29:52PM -0700, Linus Torvalds wrote: > On Tue, Sep 7, 2021 at 2:24 PM Minchan Kim wrote: > > > > kernel test robot reported the regression of fio.write_iops[1] > > with [2]. > > > > Since lru_add_drain is called frequently, invalidate bh_lrus > > there could increase bh_lrus cache miss ratio, which needs > > more IO in the end. > > > > This patch moves the bh_lrus invalidation from the hot path( > > e.g., zap_page_range, pagevec_release) to cold path(i.e., > > lru_add_drain_all, lru_cache_disable). > > Was this confirmed to fix the regression? > > I only see the "tested with 5.14" that the regression was still there > > https://lore.kernel.org/lkml/034fc860-d0d0-0c61-09d2-3c41c4f020c6@intel.com/ > > I don't see a confirmation that this patch fixed it. > > It looks likely, but if you have the confirmation somewhere, it would > help to link that too. > > Or did I miss it? I have no idea why I couldn't find the reply from lore.kernel.org/lkml/ The message id was 89e2b66b-c706-c020-bff5-b815dcd5c461@intel.com in the thread(https://lore.kernel.org/lkml/20210520083144.GD14190@xsang-OptiPlex-9020/) Xing, Zhengjun zhengjun.xing@intel.com confirmed Quote - ``` Hi Minchan, ... I test the patch, the regression reduced to -2.9%. ``` Since then, I modified the patch a little more and couldn't find the message from the public URL. Thus, do we need to confirm it again against latest kernel? Xing, could you confirm whether this patch fixes the regression?