Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp417084ybt; Wed, 24 Jun 2020 02:29:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVaXdJN3naj2PewoMDskSwwuIXBYe5Zae3uNqAUZPlZu2L5TJXDdwnkus4rMCBhbpVk499 X-Received: by 2002:a50:e3c9:: with SMTP id c9mr3161401edm.90.1592990994589; Wed, 24 Jun 2020 02:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592990994; cv=none; d=google.com; s=arc-20160816; b=o5d19Yqh45I6IoefPok3MC7Cx1qpnSbYK5piN8/wJeC9VXTgVG7xmXj0QxjJgGLZPO e2aEGqquRQGq3IDaZyxiv94EVOvXOUM33NjpUz0WF9KTv5fmDnvyJ3vVbz3NEVWUmHKK X8CYRCiFdbG3HkTa8TlYqfXgLC+8+ZexFixAB3pRfN/VswUxgkvrWzqa+yjBEdN9xlJZ /N87h3PzRpOAww7p2niRr3TbOuSsGTiXq6kwBu0AdD5Pg2bktg8j+HS+bP/a/KiCwiSA OI2FwKkDBopsTwhGCE4EK9IQSAPdt/DrFtmCKPoryFJoRkQYpsIRmM/6d9oBBU3qxNs1 TXkQ== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Y8YKD8JyEd7Ji6x2ZzksZNe1culdCXx1QyfEYF4IgsA=; b=MZ3J7S9NnZVh3M+LKcaNWwLXt4CAKZ8rqCyZCB2upoQbsJSLEl1V4yGp4UWuK2teqw dKW/6QNvEbG77XgAatucocboWWXzpYAIfkDbvIP8TCCkwDR9j+sjCd9B1ZgS4Dj7o4Na CUblMCUx8EjFf2tUgyKf1OBrHu2Qq3Md2YcJIWG99QlIm7VkKnA95wPnF/gdEcMuaZl4 hoBJAyZh7hzE2ADjISFOWrezJokvKZxYZ4QzEoaLNoGhPv9DO6jU8kp6nzEklZBsnXsz uZv8E008ooy8Ws8xkgtniO/fhfQRGJZmlDO4J0Ah9pcMoMX/SwOl5k3yWZlGRAgjueiz AxGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iSZxGLXr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df15si244311edb.366.2020.06.24.02.29.31; Wed, 24 Jun 2020 02:29:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iSZxGLXr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389500AbgFXJ1K (ORCPT + 99 others); Wed, 24 Jun 2020 05:27:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:38804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387495AbgFXJ1J (ORCPT ); Wed, 24 Jun 2020 05:27:09 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C5C9D20874; Wed, 24 Jun 2020 09:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592990829; bh=sz9dFsvgElJPSubu1rXAM7K6qMOH0Op/lpJbVq77JSY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iSZxGLXrqkpIi+HrdkKJOWxRMXfCXaz/q9N/4epJGnp9QBX0eNuRQTw9EWBMTtGr7 37xiwGQb7ER9IhHHmMACOqJ9hDzajgcbJOXRhCh5iGSC0DUl+bXiRw66t/iEf1n/H7 S1sT0a5gURcQYYYWSWcbcbDVIbgm+jF2idYiwRqE= Date: Wed, 24 Jun 2020 11:27:08 +0200 From: Greg Kroah-Hartman To: Rick Lindsley Cc: Tejun Heo , Ian Kent , Stephen Rothwell , Andrew Morton , Al Viro , David Howells , Miklos Szeredi , linux-fsdevel , Kernel Mailing List Subject: Re: [PATCH v2 0/6] kernfs: proposed locking and concurrency improvement Message-ID: <20200624092708.GA1749737@kroah.com> References: <159237905950.89469.6559073274338175600.stgit@mickey.themaw.net> <20200619153833.GA5749@mtj.thefacebook.com> <16d9d5aa-a996-d41d-cbff-9a5937863893@linux.vnet.ibm.com> <20200619222356.GA13061@mtj.duckdns.org> <20200622175343.GC13061@mtj.duckdns.org> <82b2379e-36d0-22c2-41eb-71571e992b37@linux.vnet.ibm.com> <20200623231348.GD13061@mtj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 02:04:15AM -0700, Rick Lindsley wrote: > In contrast, the provided patch fixes the observed problem with no ripple > effect to other subsystems or utilities. Your patch, as-is, is fine, but to somehow think that this is going to solve your real problem here is the issue we keep raising. The real problem is you have way too many devices that somehow need to all get probed at boot time before you can do anything else. > Greg had suggested > Treat the system as a whole please, don't go for a short-term > fix that we all know is not solving the real problem here. > > Your solution affects multiple subsystems; this one affects one. Which is > the whole system approach in terms of risk? You mentioned you support 30k > scsi disks but only because they are slow so the inefficiencies of kernfs > don't show. That doesn't bother you? Systems with 30k of devices do not have any problems that I know of because they do not do foolish things like stall booting before they are all discovered :) What's the odds that if we take this patch, you all have to come back in a few years with some other change to the api due to even larger memory sizes happening? What happens if you boot on a system with this change and with 10x the memory you currently have? Try simulating that by creating 10x the number of devices and see what happens. Does the bottleneck still remain in kernfs or is it somewhere else? thanks, greg k-h