Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2386537pxb; Mon, 20 Sep 2021 21:01:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZn7fY9o9J0Y9pdvnlLBlaoeYy2z+SZ7ssJsLVxlNizaFEwc8AwMwTfpXL6bDRssFmN7vq X-Received: by 2002:a17:906:2cd5:: with SMTP id r21mr33152291ejr.435.1632196873151; Mon, 20 Sep 2021 21:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632196873; cv=none; d=google.com; s=arc-20160816; b=y+sN8ojA1wW90ZuER3oC0hmoqJd/KqsTZ4rAldyHkTpTbrQ7l2I7zR+OWxVedag2a1 1tvIvO/jA6A+acOGYQeRXjVGFR5nXwbOJ4e79quF+s3SVhze3xtFPohMsOJR6p3MmF1+ sc9CagBdxLLAenYm+6RvtpRjEqlXh+QbkJ3coCf8HzXvP1UF/MotkX7TCB3h3Uftyh6M 52X0+2l8zi9uQrhffSxQTKeUUvrB9gTqn83zWLvfHVWUj2lbgw4nlOUUX86oQc9jLRXA fTX+w+zyHnGoPQxpx3651IAUxQY7jgzRF+ppz1PkGACbItYOAx74p1gbgL9etTxpKJ3t Hhvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=F04phcRQSPUfY7ZkC6X/DRscrySixKvQV8Zj2GiRtvM=; b=jVl5aT+oKWfWH5jSedfTfJD4YPjf0YvNZUi5SAeeFY4rBUkhLQ/7BZ3yrAoQi/CHNi /kcih4BlSudSbMhfXamw3OzuXPCjzuwLOSPWDdkKq9R0V//MVw58vPJVXUPd83MwpoMr IdZeQ5HvOmYyf/25TmkuWmOirvEoybQYgznGEk2lzWD1Jyq3gJrbEJ9728p+vYjnUYdN MHCQ7HM7PSHnPSucK4fREucrYLJtZ+mUSoVlcNe9Kq4V9dPaJ8B4XnvVK5vAJDGnFDY4 eQEvxcD6I0dKBjsc+Kk/S8vlMPFkvqGkYMJuT/mfVBkEvvXrIkEVgIysDzFYKWYK3mgn IrBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=C7gc4AzP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si12123071edb.279.2021.09.20.21.00.46; Mon, 20 Sep 2021 21:01:13 -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=@linux-foundation.org header.s=google header.b=C7gc4AzP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244674AbhIUCJM (ORCPT + 99 others); Mon, 20 Sep 2021 22:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237252AbhIUBxB (ORCPT ); Mon, 20 Sep 2021 21:53:01 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A15A9C035489 for ; Mon, 20 Sep 2021 16:30:14 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id y28so72545114lfb.0 for ; Mon, 20 Sep 2021 16:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F04phcRQSPUfY7ZkC6X/DRscrySixKvQV8Zj2GiRtvM=; b=C7gc4AzPAKAay4aiwe2Peik4mHpQuwTIEtFvC3AJfU1kJWQtPOpHiQH+hcsqMYD9ZG uT+bzPh9384fxb4Ov2BYgcC3she9ny1rmd4su0zK64zXI4AqFwRbCUnnAkuDr6nq+GAq vC78VMXmBENpN4acXFfAgaGfSlTDblODT0de8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F04phcRQSPUfY7ZkC6X/DRscrySixKvQV8Zj2GiRtvM=; b=giWmVSkVzQsXfGw8daEEySbL9T1MeMsWydGZ/KCVLYFDpDcU2axllEPbsNdNE602P+ lr8uVCYT+1bAOgwn7rormtwuYGUPsdQRiDa+EsNcKX3Ou8O+4yB1GxIAAJgCyYCsvPH9 nC1pEfqLI9QCPKmB8ve3ta7zfYWtG0H6/2ds+gyBlgo/PDKN8PjgPUcTnCLq5A0//2Vz FnmA1lVIpnUFkD6Yj2h6kHw7g5naMwcTjZim+Sz33WrOZSOsaUz1NA3adcB/kUojl4iM p9lzgcw9KEpWxCP6476wDsF92qGvNR/Vjn1qzOE965bv318sl8CkDlJih/HDa0jUMaWl QPMQ== X-Gm-Message-State: AOAM531MroQdJQK+p7MESKQtoylNGIR3ZfaYHHicoP9I+0kCfi/pGoPy 9sgjICPcgcWZksgbpuQgGo73J/3Du0MzBjgdqOQ= X-Received: by 2002:a2e:4b0a:: with SMTP id y10mr23242380lja.110.1632180611523; Mon, 20 Sep 2021 16:30:11 -0700 (PDT) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id v77sm1374592lfa.93.2021.09.20.16.30.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Sep 2021 16:30:09 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id i25so74866303lfg.6 for ; Mon, 20 Sep 2021 16:30:08 -0700 (PDT) X-Received: by 2002:a19:ae15:: with SMTP id f21mr20462696lfc.402.1632180608608; Mon, 20 Sep 2021 16:30:08 -0700 (PDT) MIME-Version: 1.0 References: <20210907212347.1977686-1-minchan@kernel.org> In-Reply-To: <20210907212347.1977686-1-minchan@kernel.org> From: Linus Torvalds Date: Mon, 20 Sep 2021 16:29:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] mm: fs: invalidate bh_lrus for only cold path To: Minchan Kim 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Linus