Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6891370imu; Thu, 31 Jan 2019 01:11:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN6imdo+J0yJyXFcSIEjsM7uVzhPzdBvTfnO1hXvDCFnxJg8WKlEGBzSuTNak/FvC+sSwXDd X-Received: by 2002:a17:902:e08b:: with SMTP id cb11mr34316027plb.263.1548925871455; Thu, 31 Jan 2019 01:11:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548925871; cv=none; d=google.com; s=arc-20160816; b=mX78Nu8/JfpYe2gp/OoCAbI1U+pV+EPx93paREQKo3qwK10JLz/cY2LGdgjeAy5QWn WF3CyFFFj57PeaiFn+6xDLtxwD8E8nVeZtm+hsVnV8aWpR2Yj0cYBXvuFa/bkKinfV5Q T/1JrJbk/65nUtz/JKRQ72/Er9ttmPyQjUr+LhelAP5eulO7bGN56xJnryOOEWArCSln V0Y6qZkMi5/QfE2ISBdF0vBlIWe8yeFHQSbHX8ieYa68CMo6AcAPoVK7ZpGAN9FRgl8D xuZHV9AGMWbaaqJiaGQu2vyPw4r1Wx19OwB2oS8AMMpq9tTHKntw9ZlHdULrpROxz14s 3EmA== 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=UcrV2h866LCLm4yBcReSvczmMBZpti1V9x0ARMtWU2k=; b=ZheKm7Fni5kr7dlBHyIIqZcAQuFb3JjN+DYp5YX+jkJrHP/6uQC4R0Fw6M6J0dWmKm Z0SZr3yS9yP1ZRriNjnWW77rcFQX1HWQG+ffsCD94ybh+69GqZOawdpK26YshUzVr84+ /8iaLOXOnYVXp82laok86Zp+PgjXKiFXlaykcX2RKZ1/fbLGP1LOf3EPgbFb3F4vz6fk 7yo0JFqHKfQFHsBaXa5dzE6ImzC3PTSO+1gmcUI+hAc0nbCg4rUHOrcArEOkyWnaDvz+ FeftycDNpDtwZ59lYk96azN3tpy+4NEX8qdoOmWQZE1yNaKN8xp2bnrHaRSiJkL3juSU Dazw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c31si3763696pgc.465.2019.01.31.01.10.55; Thu, 31 Jan 2019 01:11:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729543AbfAaJKO (ORCPT + 99 others); Thu, 31 Jan 2019 04:10:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:35310 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726368AbfAaJKO (ORCPT ); Thu, 31 Jan 2019 04:10:14 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8B6EFAE77; Thu, 31 Jan 2019 09:10:12 +0000 (UTC) Date: Thu, 31 Jan 2019 10:10:11 +0100 From: Michal Hocko To: Dave Chinner Cc: Chris Mason , "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" , "vdavydov.dev@gmail.com" Subject: Re: [PATCH 1/2] Revert "mm: don't reclaim inodes with many attached pages" Message-ID: <20190131091011.GP18811@dhcp22.suse.cz> References: <20190130041707.27750-1-david@fromorbit.com> <20190130041707.27750-2-david@fromorbit.com> <25EAF93D-BC63-4409-AF21-F45B2DDF5D66@fb.com> <20190131013403.GI4205@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190131013403.GI4205@dastard> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 31-01-19 12:34:03, Dave Chinner wrote: > 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. I tend to agree with Dave here. Slab pressure balancing is quite subtle and easy to get wrong. If we want to plug the problem with offline memcgs then the fix should be targeted at that problem. So maybe we want to emulate high pressure on offline memcgs only. There might be other issues to resolve for small caches but let's start with something more targeted first please. -- Michal Hocko SUSE Labs