Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6558296imu; Wed, 30 Jan 2019 17:35:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4XZh+crunRHg/z4s5oIPIYzsq2Hi9UFqYIe7b3iMvYDuBFNTFVjGw5EIsxPj/jz+xVwmXc X-Received: by 2002:a62:dbc2:: with SMTP id f185mr32624512pfg.235.1548898556936; Wed, 30 Jan 2019 17:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548898556; cv=none; d=google.com; s=arc-20160816; b=NXsx2TQgMNhIV6a2RqZEmsSAEl6SuZ9Nvh5mwGFcOeCLFFeZsabs5KG6CNVsgvJGCP cX70XzzCkER82/LTXQTKu5n3leJJhLB2upcIr67j6LjlK/EHIgjHuqRgvEndPM+PzoUi 33CZxyfG036+G9q8orx2i8zKVRa7mVCT1uet77H18Py3suC/mu01vLKaQIO89x0U9Y+2 UoQzvumou6iYNN7EeSAap+LD22i7LovNUWaPl/PCbYCLrzxuk4/5J4Bk4AhhyOtV/vHx pYlQrLtMZAdP8Di1IBdpfEhyOAxgDvGudYR2OAqNNCJ7jU/qmrALdZYmZU0u470fw1Ei 1vWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MwHUp2M5vGSEquHAiLMpS8bbA/M+vpcForAR1l/EG7I=; b=esGOY6yV93LWJo/rU+Q1KyP1eNRKb18ojUmtAOU/8Jr6OL/ss+5covO3UBh3P/ii1H 4UN2tKz3lWGTyFTfL415Q8UUHEuA3kbUeDvjfFzz1hr2J5lautrI/PEXXUHYPjcMHON/ cP3jODz/PchHX6AofGrHkWxydaybAyD+oNWe0UIbVUTrG8rsEAweQVoAP/CkY/jAe+Tj cZT2K6/bPmijBjqKW+kVhS8D8y9z1pxbaZtUZwpp0rnx2Q2M3bycNAC4enC7K7bVOgKH O/8pPnQjV7pTT5MUvpvZk/t9Bh1UQfnbqA0gh5qN12c0fsHDMP2Ev2D1xmvnCwcNfSh/ qgXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s27si2848224pgm.501.2019.01.30.17.35.41; Wed, 30 Jan 2019 17:35:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730160AbfAaBeI (ORCPT + 99 others); Wed, 30 Jan 2019 20:34:08 -0500 Received: from ipmail01.adl6.internode.on.net ([150.101.137.136]:44497 "EHLO ipmail01.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbfAaBeH (ORCPT ); Wed, 30 Jan 2019 20:34:07 -0500 Received: from ppp59-167-129-252.static.internode.on.net (HELO dastard) ([59.167.129.252]) by ipmail01.adl6.internode.on.net with ESMTP; 31 Jan 2019 12:04:03 +1030 Received: from dave by dastard with local (Exim 4.80) (envelope-from ) id 1gp1Ex-0001yb-4V; Thu, 31 Jan 2019 12:34:03 +1100 Date: Thu, 31 Jan 2019 12:34:03 +1100 From: Dave Chinner To: Chris Mason Cc: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-xfs@vger.kernel.org" , Roman Gushchin , "akpm@linux-foundation.org" , "mhocko@kernel.org" , "vdavydov.dev@gmail.com" Subject: Re: [PATCH 1/2] Revert "mm: don't reclaim inodes with many attached pages" Message-ID: <20190131013403.GI4205@dastard> References: <20190130041707.27750-1-david@fromorbit.com> <20190130041707.27750-2-david@fromorbit.com> <25EAF93D-BC63-4409-AF21-F45B2DDF5D66@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25EAF93D-BC63-4409-AF21-F45B2DDF5D66@fb.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 12:21:07PM +0000, Chris Mason wrote: > > > On 29 Jan 2019, at 23:17, Dave Chinner wrote: > > > From: Dave Chinner > > > > This reverts commit a76cf1a474d7dbcd9336b5f5afb0162baa142cf0. > > > > This change causes serious changes to page cache and inode cache > > behaviour and balance, resulting in major performance regressions > > when combining worklaods such as large file copies and kernel > > compiles. > > > > https://bugzilla.kernel.org/show_bug.cgi?id=202441 > > I'm a little confused by the latest comment in the bz: > > https://bugzilla.kernel.org/show_bug.cgi?id=202441#c24 Which says the first patch that changed the shrinker behaviour is the underlying cause of the regression. > Are these reverts sufficient? I think so. > Roman beat me to suggesting Rik's followup. We hit a different problem > in prod with small slabs, and have a lot of instrumentation on Rik's > code helping. I think that's just another nasty, expedient hack that doesn't solve the underlying problem. Solving the underlying problem does not require changing core reclaim algorithms and upsetting a page reclaim/shrinker balance that has been stable and worked well for just about everyone for years. Cheers, Dave. -- Dave Chinner david@fromorbit.com