Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2417347imm; Mon, 16 Jul 2018 07:43:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpef2E/dy1dUYsiQkF6aG4Xq7wjZtRMkr4yCAjJLzdYEUR0/zjPghL5PApy/2R6jU+7ajEhX X-Received: by 2002:a62:b612:: with SMTP id j18-v6mr18397626pff.199.1531752213485; Mon, 16 Jul 2018 07:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531752213; cv=none; d=google.com; s=arc-20160816; b=Qm26KxplAJC/Sjn0CmwSDS0bRt+76jpy2l2+EffBhFM9X/vDQbJx5hI2JTJ0vxzbkw mpu1zNV3WSPPDwbzImsLLwillV9fjzn2DlwLuDGA4E/vpjP3QzC8fcgZ9ErtYF03OXA8 IbVEBjmVpDnkr4P9UQzSDhx1XNf5iqSVRymO6yF74i4nbC+IVJoDvsMbFXEcriM+/S23 r1PjkaoilFIQM3HvCK+xXsghct1ina5JM2UmV5t8DT/1jInrHOpVo75wS8YczHzrxrSB WuNGN4uYnOOA8XnC5pH71pRTckI+nQyGZyteF90qQu+qfMxRw/f1VnatdY6yXqRJudWK xbzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=CZ6kaYCeEjh/QiJ9BWr/SdpQxGXC19SX08y8AXXwSmc=; b=n6U6IsjOEHQCajZpY3wlTiwefsYBCeJvOlzHyLZ0x9F2J7I0h3gdWKZXVS2wUHlwZX nQ0S/l4TX38eigwS8FIdRCj2X8QC3y/mwoa2P16+lxD1brTUHdeBpdbpIKutP6KeqMfO C8PZzPlnrbJv96aYKE3gvPtVTVsTBMyiUNp2RJSZGePpmMPmzWeg+cGlSy77/wi8vldx QWBUvhoBpO15BNY0GY21qrXJGEJpUO8helkl9BCSyzTZcntjFSSBtsw4MirAeMEgaYvq yUSmIq5lpyOLbLq5mH7YrBa+xF+vnaIOmhDD7BDYSUKIeusZdgFF5Hv/nnNl2SH97KHL IXIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=vGZBFbwY; 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=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si30403430pld.515.2018.07.16.07.43.18; Mon, 16 Jul 2018 07:43:33 -0700 (PDT) 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; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=vGZBFbwY; 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=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729842AbeGPPKO (ORCPT + 99 others); Mon, 16 Jul 2018 11:10:14 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:33572 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727452AbeGPPKO (ORCPT ); Mon, 16 Jul 2018 11:10:14 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id ACC8F8EE1DD; Mon, 16 Jul 2018 07:42:28 -0700 (PDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pBwIdhHv1rgj; Mon, 16 Jul 2018 07:42:28 -0700 (PDT) Received: from [153.66.254.194] (unknown [50.35.68.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 5BDD28EE055; Mon, 16 Jul 2018 07:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1531752148; bh=iY7NsuSeiC+PXz/Ajbq1MCS9othzTsFVp96pDDktKic=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=vGZBFbwYkHjhdndgKR7ukJVdyKv8Z9OMBMqsb8o7pPR/vIEDWj8xa4E7pKK4FlBI9 bzQyUhOFPrwEYH6ocX6pQbWO7IjsIOnt766tzxjjL40QKmBskAZW+KlxdSU0sQcAZi nbPckJqGB2Hfxhly+Xwkcj9m50qBcMZ0CcW+KtrA= Message-ID: <1531752146.3171.2.camel@HansenPartnership.com> Subject: Re: [PATCH v6 0/7] fs/dcache: Track & limit # of negative dentries From: James Bottomley To: Michal Hocko Cc: Dave Chinner , Linus Torvalds , Matthew Wilcox , Waiman Long , Al Viro , Jonathan Corbet , "Luis R. Rodriguez" , Kees Cook , Linux Kernel Mailing List , linux-fsdevel , linux-mm , "open list:DOCUMENTATION" , Jan Kara , Paul McKenney , Andrew Morton , Ingo Molnar , Miklos Szeredi , Larry Woodman , "Wangkai (Kevin,C)" Date: Mon, 16 Jul 2018 07:42:26 -0700 In-Reply-To: <20180716091040.GH17280@dhcp22.suse.cz> References: <18c5cbfe-403b-bb2b-1d11-19d324ec6234@redhat.com> <1531336913.3260.18.camel@HansenPartnership.com> <4d49a270-23c9-529f-f544-65508b6b53cc@redhat.com> <1531411494.18255.6.camel@HansenPartnership.com> <20180712164932.GA3475@bombadil.infradead.org> <1531416080.18255.8.camel@HansenPartnership.com> <1531425435.18255.17.camel@HansenPartnership.com> <20180713003614.GW2234@dastard> <1531496812.3361.9.camel@HansenPartnership.com> <20180716091040.GH17280@dhcp22.suse.cz> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-07-16 at 11:10 +0200, Michal Hocko wrote: > On Fri 13-07-18 08:46:52, James Bottomley wrote: > > On Fri, 2018-07-13 at 10:36 +1000, Dave Chinner wrote: > > > On Thu, Jul 12, 2018 at 12:57:15PM -0700, James Bottomley wrote: > > > > What surprises me most about this behaviour is the steadiness > > > > of the page cache ... I would have thought we'd have shrunk it > > > > somewhat given the intense call on the dcache. > > > > > > Oh, good, the page cache vs superblock shrinker balancing still > > > protects the working set of each cache the way it's supposed to > > > under heavy single cache pressure. :) > > > > Well, yes, but my expectation is most of the page cache is clean, > > so easily reclaimable.  I suppose part of my surprise is that I > > expected us to reclaim the clean caches first before we started > > pushing out the dirty stuff and reclaiming it.  I'm not saying it's > > a bad thing, just saying I didn't expect us to make such good > > decisions under the parameters of this test. > > This is indeed unepxected. Especially when the current LRU reclaim > balancing logic is highly pagecache biased. Are you sure you were not > running in a memcg with a small amount of the pagecache? Yes, absolutely: I just compiled and ran the programme on my laptop with no type of containment (I trust Linus, right ...) To be clear, the dirty anon push out was quite slow, so I don't think mm was using it as a serious source of reclaim, it was probably just being caught up in some other page clearing process. James