Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2946687ybt; Mon, 22 Jun 2020 10:55:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbXXohKsoQOPK7D3gbXJewYiS44kSXDmPIWrfbBCY3bVvKFyuDLEgsinlE+ofix9RS3qfj X-Received: by 2002:a17:906:5006:: with SMTP id s6mr16266790ejj.294.1592848557444; Mon, 22 Jun 2020 10:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592848557; cv=none; d=google.com; s=arc-20160816; b=aG5FoZ9sAKUY+2nRX3huNf711jCGM2VFtzPl6zh4K9PVrGBC1oriMOBzxYksjCI7gU AFLLDR6hqgfXP5/ROP/cuq4eKDnUd/LGzbaXMcUyPmw3pe9rD4lKfdXrfIrvRdYTYqNC jYz3FGSBJIWQ2x3n/KRH+mR+nut3U0+6XKXM1J/r9GhEYVBL/IsmlvP3Dio/MiFJy8IH 2xA3OJfsH3E/f2CGg8QRqYqju/i6e+HEAgHqsi247APdTpnkp+owqd71YvRuFP4qiYaj 7DTiMyodkT2hZdu5DIpuDoOWzG4gP19hV6b2YYg+Dq4NrS6FMgh81QOMn0UOPlflxdjx GFYg== 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=aI7AFW3ATWYt7qJdSuoHvMFK956GDUQlWuGNOU4nfiI=; b=Vsx97GMZ/yUEePA08BnzASGvB9FDeXz7WDMQD9yvIDYa4qkzGGeMjpW7x52Jfi3y7E GIDK/s7DatxvxFmcU2J7FeKPlnCkQsnIr4D+iG6lg/IbWUjLrxx6RMLAvk2Ugn8SYU1i d//8mdiN6s3u6Ww+ILeqWd4Pj9duMvPFYpgu2TB56KupP+ZJaYf4UnzQw6cRfkzsQlyI QtJjojPKpC8wwv0XyGFGnTtGm/pA/SVhg7BR0wEqHMMVTwUspzAKX25c52juQc5brG7h t/mKqTIhwzxgbfCvaKRjFgiQ3aVeSBPJaJG1Dy2iAfGd0DK2s46GtXykf/Jxj89H0TVS x+yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CRWvA9PW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si9301393edv.111.2020.06.22.10.55.34; Mon, 22 Jun 2020 10:55:57 -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=fail header.i=@gmail.com header.s=20161025 header.b=CRWvA9PW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730122AbgFVRxs (ORCPT + 99 others); Mon, 22 Jun 2020 13:53:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729864AbgFVRxr (ORCPT ); Mon, 22 Jun 2020 13:53:47 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BC83C061573; Mon, 22 Jun 2020 10:53:47 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id a14so2057866qvq.6; Mon, 22 Jun 2020 10:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=aI7AFW3ATWYt7qJdSuoHvMFK956GDUQlWuGNOU4nfiI=; b=CRWvA9PWU2ITV60zpx4EgXzCM55vziCjbaNwks/D63WzA5S+uC9bFIoRf/rrKIj+29 SkvDtsRjgbuErDRQjQU0J30xwxIx9q6ZzyTOCT9qWjW478v2Odeo6ldUnpEDk7W4+W+m sLBlBSkYWta7t7EdcU1A4uRGMBOH6oRgW2QeA1aE4fA8iYBJdywSjoka2ZHJcADwd0I3 qu7CCA5PT5Q8sIsOjY68UDesnlLy3rPe/iMEiQyZqbJF2eb6RWt4o+SyUFGUdNaTA2Ol zCcxR2WV9A4XFF0pr3gZ5P/uQIKywbZV+Bd5B1HXGadCdNLui3re2Qe+2FeoL1m8ls/+ 1D1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=aI7AFW3ATWYt7qJdSuoHvMFK956GDUQlWuGNOU4nfiI=; b=kuCx6XmB5A39WEY7qSOF0MRbSKad1bCn8U6NUd3PmYVDuG6SaN2k3yzu84roznOmA5 id3+t66KtRN4WfDsJ6FSs+12HSAd7rMGZcgQQnQ5tUWGWUqRw9r4OnTdD+aonlFgbHxC 5VYDtAiql+98FMzaQhtf4AyaBBe97PnOvDpqq+BTRMDWLjW0RNEa6dhm3aoyc9qBq1Xe WgmG3plwGB4fBniR5OLvjQUGR0ZYZ08f7IQoh67qAoHCSUOm45mdxlYq83UIYn4xfu8F Dphy4dXwOTBng7VllO++ag+p7zu3AS1U6MA/4Tb1pM7AWro395s6vd0HK95hT8C0yDIE NPeg== X-Gm-Message-State: AOAM530h0HtO6keS48D49IGxmPVfZQP/zU6WtOATD+qX2dpKq/3ZatfZ 6mx80TBoYPpQtGmWBUf0jc4= X-Received: by 2002:ad4:4374:: with SMTP id u20mr22835856qvt.144.1592848425956; Mon, 22 Jun 2020 10:53:45 -0700 (PDT) Received: from localhost ([199.96.181.106]) by smtp.gmail.com with ESMTPSA id u27sm14366487qkm.121.2020.06.22.10.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 10:53:45 -0700 (PDT) Date: Mon, 22 Jun 2020 13:53:43 -0400 From: Tejun Heo To: Rick Lindsley Cc: Ian Kent , Greg Kroah-Hartman , 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: <20200622175343.GC13061@mtj.duckdns.org> 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> 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 Fri, Jun 19, 2020 at 07:44:29PM -0700, Rick Lindsley wrote: > echo 0 > /sys/devices//system/memory/memory10374/online > > and boom - you've taken memory chunk 10374 offline. > > These changes are not just a whim. I used lockstat to measure contention > during boot. The addition of 250,000 "devices" in parallel created > tremendous contention on the kernfs_mutex and, it appears, on one of the > directories within it where memory nodes are created. Using a mutex means > that the details of that mutex must bounce around all the cpus ... did I > mention 1500+ cpus? A whole lot of thrash ... I don't know. The above highlights the absurdity of the approach itself to me. You seem to be aware of it too in writing: 250,000 "devices". Thanks. -- tejun