Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp268801ybf; Thu, 27 Feb 2020 20:53:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzFM79GOiUs3E9yLc3CNx9FBP50QreewrA4iD7AUxL4bJ0orlKC+lA9wLzlrZjo9SfqwPln X-Received: by 2002:aca:388:: with SMTP id 130mr1789295oid.89.1582865598746; Thu, 27 Feb 2020 20:53:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582865598; cv=none; d=google.com; s=arc-20160816; b=CIJ6BysuPHd00xuOQq9TdreyIRQHRr9PDuZUsG8Y2IZYLkkA6i4omDlC/dFkPps410 icg9Bzfawh5mLzIUCY99KzxzPY9mnV12qH/79I2SoMn+IFsoWregclPxiy82pjbUutNs V+2DmJgubY6XHYpr70ueEjs4z+RaqABuwXm2UFWlOvAuTtGWbgnNaiKMkg2VugvfN3AU ahscxgJe0oF37IisBbs9CACbeeIFGI0vqVpzwbyApnxv+xhbT6p3suWcf5ml+kx41rns ByIwaXyzVydcgVsgG0Z9E3fhalX8o9xdX/TJzycgYTd+EwwcX/h4nt/nqcEN8pNUF1KZ fzjA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=QaGDiOWBjcbn4rDNlKqOONKkTcLMMhgcigudu4fkTbM=; b=QW5ta2VuyUtlSF2VPiS8s+7+K/0YX9iODIA33tCXulJQmEcKXIB0py4s8ZmC6T4t2E nWgY3dD0MgHnLK4mLeQeRjV4fLX7haRnh9voy2UQUd5wn15Bya2/TmSuoBvq019/QfnP 0AEgYXZ62kcHNPxxyfMfz61N6yCEzvLDLV32F/zF7ZWM38kLqvqcOAfUjtrnYJyGCmCO XOQq76AVCOWVLvJ1PbOJgi5/TmMH/a6DXJu53iK5LZdvtoxadUciUC5KjgQENU+mlpbc S/vKyzqIl+rs4G6R+tmrGI7VXrjc+ShwPMqeZWUJPbLJew769O7q66q/pQZ5xR3WRcWm 2G5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@themaw.net header.s=fm2 header.b=GZOcs8xD; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=qbgmEM9m; 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 e22si1276456oiy.124.2020.02.27.20.53.06; Thu, 27 Feb 2020 20:53:18 -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; dkim=pass header.i=@themaw.net header.s=fm2 header.b=GZOcs8xD; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=qbgmEM9m; 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 S1725877AbgB1ExC (ORCPT + 99 others); Thu, 27 Feb 2020 23:53:02 -0500 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:41605 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgB1ExC (ORCPT ); Thu, 27 Feb 2020 23:53:02 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 9186E5E3E; Thu, 27 Feb 2020 23:53:01 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 27 Feb 2020 23:53:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; s=fm2; bh= QaGDiOWBjcbn4rDNlKqOONKkTcLMMhgcigudu4fkTbM=; b=GZOcs8xDttkrjAVH NW9UlrkQHXPo/yp+iwzXrgXI2kwoirhgmPKFo2IiP93xmQIntQbvsTBtJfRWbUk6 hS2XBceoGb1Lf0EWHXoc1SALBi0oDKpu46k4ZWx5hWeXuEAt3KonSJHOFgHPwX6U t9qHrh42MNfipoF/IjTo9N4zoHql4Nz11N2kcyFih9JkEOJuuuVrPdzffd8JwDyb mow3W9mqXvX57e/4DbRq3j7gnKySA92lowvBWNGa8lAeWvDgb1UJQEn+3o7DiOd9 n7MOlLGe0q1ZIqnKowyLEe6RDoe1iRqED+P4jXHGiAM6PTxYPHY7XHulnBsu6Tpy mTMlWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=QaGDiOWBjcbn4rDNlKqOONKkTcLMMhgcigudu4fkT bM=; b=qbgmEM9mb8vbUI3ZVYzTO8aH27yRXZWIPIyOebMpXlXWzQDXqEwEIIiRI 3HuNvlmmLpNhM2h8ab/H4PvyxdIRPojyG40qxhJVmxruoQ8eUXvbr73nFSzFJ/ZS 3E3cVQ7e33DvkJkyIDKoQAhx60sTmw2S53kHQ+6Uh0p5To9c8FxU3GkrPUi3L0fc 98+segKQUKNehg+9skkC53roy7m4vN46zx6baUGxXSAkvio4vKp58l2iYpbe3QZs iLb++WKJX5Ffb8aQqYjLvIa0DtD/w61BQTL3p0PoOIwYbZ/3QYngqMzcNqYr57yC n69weE2/LZUy6ZS5jMv57C//FG3gw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleejgdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkuffhvfffjghftggfggfgsehtjeertddtreejnecuhfhrohhmpefkrghnucfm vghnthcuoehrrghvvghnsehthhgvmhgrfidrnhgvtheqnecukfhppeduudekrddvtdelrd dukedvrdeludenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehrrghvvghnsehthhgvmhgrfidrnhgvth X-ME-Proxy: Received: from mickey.themaw.net (unknown [118.209.182.91]) by mail.messagingengine.com (Postfix) with ESMTPA id ED8323060D1A; Thu, 27 Feb 2020 23:52:55 -0500 (EST) Message-ID: <2b03788f9d71d9d972cbe908e0f0fb0e37672719.camel@themaw.net> Subject: Re: [PATCH 00/11] fs/dcache: Limit # of negative dentries From: Ian Kent To: Al Viro , Matthew Wilcox Cc: Andreas Dilger , Waiman Long , Jonathan Corbet , Luis Chamberlain , Kees Cook , Iurii Zaikin , Linux Kernel Mailing List , Linux FS Devel , linux-doc@vger.kernel.org, Mauro Carvalho Chehab , Eric Biggers , Dave Chinner , Eric Sandeen Date: Fri, 28 Feb 2020 12:52:52 +0800 In-Reply-To: <20200228042208.GI23230@ZenIV.linux.org.uk> References: <20200226161404.14136-1-longman@redhat.com> <20200226162954.GC24185@bombadil.infradead.org> <2EDB6FFC-C649-4C80-999B-945678F5CE87@dilger.ca> <9d7b76c32d09492137a253e692624856388693db.camel@themaw.net> <20200228033412.GD29971@bombadil.infradead.org> <20200228042208.GI23230@ZenIV.linux.org.uk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-02-28 at 04:22 +0000, Al Viro wrote: > On Thu, Feb 27, 2020 at 07:34:12PM -0800, Matthew Wilcox wrote: > > On Thu, Feb 27, 2020 at 05:55:43PM +0800, Ian Kent wrote: > > > Not all file systems even produce negative hashed dentries. > > > > > > The most beneficial use of them is to improve performance of > > > rapid > > > fire lookups for non-existent names. Longer lived negative hashed > > > dentries don't give much benefit at all unless they suddenly have > > > lots of hits and that would cost a single allocation on the first > > > lookup if the dentry ttl expired and the dentry discarded. > > > > > > A ttl (say jiffies) set at appropriate times could be a better > > > choice all round, no sysctl values at all. > > > > The canonical argument in favour of negative dentries is to improve > > application startup time as every application searches the library > > path > > for the same libraries. Only they don't do that any more: > > Tell that to scripts that keep looking through $PATH for > binaries each time they are run. Tell that to cc(1) looking through > include path, etc. > > Ian, autofs is deeply pathological in that respect; that's OK, > since it has very unusual needs, but please don't use it as a model > for anything else - its needs *are* unusual. Ok, but my thoughts aren't based on autofs behaviours. But it sounds like you don't believe this is a sensible suggestion and you would know best so ... Ian