Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1907765ybb; Thu, 2 Apr 2020 09:29:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKGX5lnpzGeNJ0n9Wrjyo2QGu6GAnnbLDlruk/2cIAIBNI8C6UJY7uUAxJV3R0/vl11ajYM X-Received: by 2002:aca:c390:: with SMTP id t138mr2779931oif.117.1585844964731; Thu, 02 Apr 2020 09:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585844964; cv=none; d=google.com; s=arc-20160816; b=k2+9DUJO3DjYSIEkcMk2dVdgUeDQlHJcDJN9QTUCBiN+3s1Zum9wZB5YD8VaEGxy5B 4a3cvn1r5gbUUaDmXXMw5qATiB9TKlRT+Faz2JWZDC/Dlm99fOHgdAkjKqQ7PGsl9wXg UG+UVnRuVfXSVSagGw1DFrm/aO4PfowDbZWcmBQvg856BiCYPtXXDLBbJ5fyJ/KCR4RA XLNvr5174eZJlhlQyPfuz5rW8idQHhZuqhB3LdiVA26VMHfGzzOJSVGk6n/yEd1e0uCw jXRdLwZMvQG16Jx1k+Vn0MrWNvEODu7PRY33nGQwHQ944ggLLGVaYJBIUv/43hZJFdql 6JQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nkkigbOxdUj4yLeDFq6rE8oPVO0gHdAbsYaMznOU2eM=; b=psF3aspDdeU9Xkkg5SzdV2WJkxCwZc22dwdJbarBcFD5gWUplp2lhDGIVnnD9EEvlh sQRtCowjnLntgeNn/8oP+phOgivLj74LUkXjXteWSeko915v6wyYsHww3nCE0zWQf22Z xQW2cC67sqftaDPCQoZJBMeGdAHDqjAchoGbnk9c4czEl1nYfBGy+VX38piHNfJCGj0T OgDEejbz/TxNYheiqDo4GjYM1DRFUcpNzyHzCCWKArnfE4lHuY99XV2H5VjSY9VP7wnQ WWjF1D4DcxDvc6znl3X6nMhH32UegcLoGwTBsObZeyLibRmh8eb4WboP5y6xfJWEjBmk orjQ== 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 r20si2451664oog.74.2020.04.02.09.29.02; Thu, 02 Apr 2020 09:29:24 -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; 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 S2388408AbgDBOg0 (ORCPT + 99 others); Thu, 2 Apr 2020 10:36:26 -0400 Received: from gardel.0pointer.net ([85.214.157.71]:51066 "EHLO gardel.0pointer.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbgDBOg0 (ORCPT ); Thu, 2 Apr 2020 10:36:26 -0400 Received: from gardel-login.0pointer.net (gardel.0pointer.net [85.214.157.71]) by gardel.0pointer.net (Postfix) with ESMTP id 7AF41E80A73; Thu, 2 Apr 2020 16:36:24 +0200 (CEST) Received: by gardel-login.0pointer.net (Postfix, from userid 1000) id 13E16160337; Thu, 2 Apr 2020 16:36:24 +0200 (CEST) Date: Thu, 2 Apr 2020 16:36:23 +0200 From: Lennart Poettering To: Miklos Szeredi Cc: Ian Kent , David Howells , Christian Brauner , Linus Torvalds , Al Viro , dray@redhat.com, Karel Zak , Miklos Szeredi , Steven Whitehouse , Jeff Layton , andres@anarazel.de, keyrings@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksa Sarai Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() Message-ID: <20200402143623.GB31529@gardel-login> 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> <36e45eae8ad78f7b8889d9d03b8846e78d735d28.camel@themaw.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Do, 02.04.20 15:52, Miklos Szeredi (miklos@szeredi.hu) wrote: > > Don't get me wrong, neither the proc nor the fsinfo implementations > > deal with the notification storms that cause much of the problem we > > see now. > > > > IMHO that's a separate and very difficult problem in itself that > > can't even be considered until getting the information efficiently > > is resolved. > > This mount notification storm issue got me thinking. If I understand > correctly, systemd wants mount notifications so that it can do the > desktop pop-up thing. Is that correct? This has little to do with the desktop. Startup scheduling is mostly about figuring out when we can do the next step of startup, and to a big amount this means issuing a mount command of some form, then waiting until it is established, then invoking the next and so on, and when the right mounts are established start the right services that require them and so on. And with today's system complexity with storage daemons and so on this all becomes a complex network of concurrent dependencies. Most mounts are established on behalf of pid 1 itself, for those we could just wait until the mount syscall/command completes (and we do). But there's plenty cases where that's not the case, hence we need to make sure we follow system mount table state as a whole, regardless if its systemd itself that triggers some mount or something else (for example some shell script, udisks, …). > But that doesn't apply to automounts at all. A new mount performed by > automount is uninteresting to to desktops, since it's triggered by > crossing the automount point (i.e. a normal path lookup), not an > external event like inserting a usb stick, etc... systemd does not propagate mount events to desktops. You appear to be thinking about the "udisks" project or so? Lennart -- Lennart Poettering, Berlin