Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp843442pja; Wed, 1 Apr 2020 09:42:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs+YJlgY4FlwpZQSlkWMzmQ/a9FcZPl0PXEgPpePjg1MVzaguVMWe7kTmxlNe073K/al/aF X-Received: by 2002:a9d:67d7:: with SMTP id c23mr14075064otn.280.1585759335742; Wed, 01 Apr 2020 09:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585759335; cv=none; d=google.com; s=arc-20160816; b=X0teaxn+sMnopZm1CyRHaStHCs11xcBmFcJ414sVGfiR/6IUepDRE53bPXM57JoFUr SAb7mITFXHdzrn9AwbZdbKUQM2ZwKTH6ZzvM5bM/8Huwhsqe0Wr+5aedcmaJZn5hUzHl axChTecBKRHCTgPUDsccHRaNZFyarfYWfLr1z93ivi786vuZExUniRxmbM33eNlnB4e1 knr96F4O5ygV/3kKOiuIVmqPQWNoABW2bV+s8AVV/CBhadRLSiGsU4iVuaEDk9BsBY/g TAuCadLaRrqM6EKh4F3FdMF+ewsCIZsoUT9nXNP2rD15YjYurifcFiCCycP7UWdk0IoK W28A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+fmUVquH/4ooUsn9dJwsSnQu0YfOphD9t1TiLdVwAyA=; b=xi1fHgiN4JqG1RmTcGWPdmDD40T5NGHJdz6PNv/ylTEM3F6Nmaa32mbkGB8Pl7zbkM DGc5KSnZsYbmeeB6M2p3WTXCexAg/YOg9JdcwhW7wfdEVvMLQOoaZEtUGb/MzUdYqy3e MhJC9k5Inxl9Qk/TZ4npgkmrWNF1Sqrk1YQ45i/uaNhjF9ncDeEPYyL+jJDDje4qco9z X+jHJazFFj63iaFD+Zi/1EW8sRQ+sdeXYl76a7UOIShAvJ8rTmtWLXApvyta+TroXQzW m76+bhDHnmn0fq03CfZF9oJMxgM6UzzW2/DZHPO/wj5MQDwGEK32wJlXMr+Izf5zB/SG 058A== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=j8+qBqjW; 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 k21si1097371oik.231.2020.04.01.09.42.03; Wed, 01 Apr 2020 09:42:15 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=j8+qBqjW; 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 S2387447AbgDAQkc (ORCPT + 99 others); Wed, 1 Apr 2020 12:40:32 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45531 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389320AbgDAQk2 (ORCPT ); Wed, 1 Apr 2020 12:40:28 -0400 Received: by mail-ed1-f68.google.com with SMTP id u59so628113edc.12 for ; Wed, 01 Apr 2020 09:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+fmUVquH/4ooUsn9dJwsSnQu0YfOphD9t1TiLdVwAyA=; b=j8+qBqjWDU65AzKOeRCDMK5UMUySdIHq9VSThcPc+0cJacfTp0iwPWJ0tPmJRlx9CK g29vk14anmuLxLrzFgsPKgLWGV1AoK2KSBWRwcKrOLRY+TWkmJk3BfXTohf0E7sApTXz j5YK7xbSDCBUCUpuR+58jZm8/JSS2lAZojDXA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+fmUVquH/4ooUsn9dJwsSnQu0YfOphD9t1TiLdVwAyA=; b=Pfsqwlh4xCax3F3ecucuPqv46bm4RAXluO9kewnnRMJk2BnI0ZUfeFVj9v91WiKtyU T8smP43PCaNFQx+yUHz4PpkGnNiatIKrJM3mqWmAJKPsmGwfHKRpzbjfYqfsCdwsEgQW HW9pTPPYgAIqfteSVmKlVcoaZK4tbQLyGBnEX5YFFfaDfJYNKSRXPTsw5mGd/o0977+7 1e4j+d7CtXd1oKFKYWDzcWBrCRgofA0YR2+iCPTSGOXkyXfNELQWfJiFCGVznOE3BgYS gJ61oM0nyaG+SwC1+AVeRGyf1BWEFdOLp7R6290cy0WmvGWoYgaYAPgdcQ7BlpEbmcrC Uayg== X-Gm-Message-State: ANhLgQ35j/ZKtsre8qOXkCNOTUaMojNPIGtkhuVo4Knv3LbEFMMUycV1 427+gOKhHdqDgqhdlH75ZgyX58YsqjTMR/3txT/+vg== X-Received: by 2002:a17:906:848d:: with SMTP id m13mr21390474ejx.348.1585759225278; Wed, 01 Apr 2020 09:40:25 -0700 (PDT) MIME-Version: 1.0 References: <20200330211700.g7evnuvvjenq3fzm@wittgenstein> <1445647.1585576702@warthog.procyon.org.uk> <2418286.1585691572@warthog.procyon.org.uk> <20200401144109.GA29945@gardel-login> <2590640.1585757211@warthog.procyon.org.uk> In-Reply-To: <2590640.1585757211@warthog.procyon.org.uk> From: Miklos Szeredi Date: Wed, 1 Apr 2020 18:40:13 +0200 Message-ID: Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() To: David Howells Cc: Lennart Poettering , Christian Brauner , Linus Torvalds , Al Viro , dray@redhat.com, Karel Zak , Miklos Szeredi , Steven Whitehouse , Jeff Layton , Ian Kent , andres@anarazel.de, keyrings@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksa Sarai Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 1, 2020 at 6:07 PM David Howells wrote: > > Miklos Szeredi wrote: > > > I've still not heard a convincing argument in favor of a syscall. > > From your own results, scanning 10000 mounts through mountfs and reading just > two values from each is an order of magnitude slower without the effect of the > dentry/inode caches. It gets faster on the second run because the mountfs > dentries and inodes are cached - but at a cost of >205MiB of RAM. And it's > *still* slower than fsinfo(). Already told you that we can just delete the dentry on dput_final, so the memory argument is immaterial. And the speed argument also, because there's no use case where that would make a difference. You keep bringing up the notification queue overrun when watching a subtree, but that's going to be painful with fsinfo(2) as well. If that's a relevant use case (not saying it's true), might as well add a /mnt/MNT_ID/subtree_info (trivial again) that contains all information for the subtree. Have fun implementing that with fsinfo(2). Thanks, Miklos