Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp175132imj; Thu, 7 Feb 2019 02:29:53 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib6CF79c3r2yzhCu82TUFvrIeSL4TibzDVpYDfl45tlrRLr2ljvwRaN/L4VoyvuPKaSWKUN X-Received: by 2002:a62:33c1:: with SMTP id z184mr15307710pfz.104.1549535393020; Thu, 07 Feb 2019 02:29:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549535393; cv=none; d=google.com; s=arc-20160816; b=RKAYlD8UhRPArR2S019bEso/G6k4oBVO288lzRIH3Ez/mB+2IMxZP0wYxOrTDqguGF C4zuXscmsFPYP9vMgm6+3moWs5oL8wxSDpWkvrnLEH7doUxkQb+RVGWNC13BPMMdeH7n OTK0l1+MxyqNxtoyaLZPlsHITqHFw4NQx97jeAQ5Ux9H+z7eB52BBJyOi4QFDGdoPE+J /wJsbR1ej7HCIV2mdZ6kyOey1l+s7JVYtdUayH/its+BrC44RmPBQQmECQRXSOSdhB4L aMLHLfwi8YCFZDpLIz2EWS3bE0x+2twTGlC6C7bcXVqhTa/uTAWjZxMl7BfGSHjY/RMI PHTA== 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=U+YCRhzbe5qcRlWx/bb45bHeoKIPQmgyx5Mpe7aHkxs=; b=HrELiCU9usqoLfYt+LUx0i6xAEPfO7PIqHudK1PL+di9NQ7vvRT8VZnmxc8t/1NUlF zQY57GCzzUdHfxyveV3TfVjdWTOnTmoy2g57qmaG0fR2JYB3lJ/fgryyw0KuSKb9YZtd njpkif6XWhpqZ5rBVxy/i7SUrsLmW57v9miEfoNKGNBc3R/iNxTW7Or4IbzwadYT+sd/ TbYMz1oXNur8fWhWqhdFQIF81M5TQmHRwYJPP+bFE/GqQpxD9KlZlYu1eKWFbOWnKr7n YvwFTcqXmTr8HGnxuVcYxtc6KgsZ4CJKeGVy4pZmkzfRS4isyuadUhY7mc54aYX3mdP3 R9AQ== 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 n13si1667977pgp.307.2019.02.07.02.29.35; Thu, 07 Feb 2019 02:29:53 -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 S1726796AbfBGK1x (ORCPT + 99 others); Thu, 7 Feb 2019 05:27:53 -0500 Received: from mx2.suse.de ([195.135.220.15]:44864 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726186AbfBGK1x (ORCPT ); Thu, 7 Feb 2019 05:27:53 -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 87F11ACC7; Thu, 7 Feb 2019 10:27:51 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id C6B041E3DB5; Thu, 7 Feb 2019 11:27:50 +0100 (CET) Date: Thu, 7 Feb 2019 11:27:50 +0100 From: Jan Kara To: Dave Chinner Cc: Roman Gushchin , Michal Hocko , Chris Mason , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-xfs@vger.kernel.org" , "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: <20190207102750.GA4570@quack2.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> <20190131091011.GP18811@dhcp22.suse.cz> <20190131185704.GA8755@castle.DHCP.thefacebook.com> <20190131221904.GL4205@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190131221904.GL4205@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 Fri 01-02-19 09:19:04, Dave Chinner wrote: > Maybe for memcgs, but that's exactly the oppose of what we want to > do for global caches (e.g. filesystem metadata caches). We need to > make sure that a single, heavily pressured cache doesn't evict small > caches that lower pressure but are equally important for > performance. > > e.g. I've noticed recently a significant increase in RMW cycles in > XFS inode cache writeback during various benchmarks. It hasn't > affected performance because the machine has IO and CPU to burn, but > on slower machines and storage, it will have a major impact. Just as a data point, our performance testing infrastructure has bisected down to the commits discussed in this thread as the cause of about 40% regression in XFS file delete performance in bonnie++ benchmark. Honza -- Jan Kara SUSE Labs, CR