Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3863953rdh; Tue, 28 Nov 2023 06:03:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNtzYmTuKK6h4sX6if8oEp/0/ms/2GGB1UHeMRYoo0FRK3zmzyXsbovnT4U6+JYl2wh2n6 X-Received: by 2002:a05:6a00:2196:b0:6c6:9b11:f718 with SMTP id h22-20020a056a00219600b006c69b11f718mr15304034pfi.4.1701180204533; Tue, 28 Nov 2023 06:03:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701180204; cv=none; d=google.com; s=arc-20160816; b=rMYVInxzYERWv0TjhPoM/6yFiaAgmGVBUplNszuZjWCdADLRkaXY56SRO3/ctGpThA CYGFCXq5pMRp9FqxhGMSXofBV0iWsjOrmqIDHzMbym1l+hmXn7u/RQ9nAKOLq/XF2Aqq kaOCbhLvWw9t4bzMsF6Gfy12rHATwZCVYj/ZYXVuv3Ka27f5Vs2Y13PU/bd/+jCrYFRP 8lZ3J5bAZjVGZIqLHX1gPlo0VHnIpIp1bDiyPej7F/2ltxBfsNFpU/mAp0+EvqVFKkVr ogrgOXuKroXVVSeS3kMr3u82mAfv5oQZ2Q/2NgO1NVbGUTPSilo8I+b+9qTtyszqBUwc 0xjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=o6b4zlJ+NQVyh7nGzEMDX1ZgHvtc06NNFgRYvyVDhSc=; fh=OdVpqGWUDKgIcqBVoIEPbRVlH+LIm/AXzYaQmtslALA=; b=fzKYS27odXY2w9rG4xU10C3krFClKRBrbsGyIY5rkfOjrLOlzMvlWP0yj+zcre6mOn g0S5W8y4mUCbx9uAPE/TRylgsbpZEU0piBelLCC3Xs6eRyalBULPYAnQvJhRFF9WZ0WE FgyiyoWBslQ4mOuBPbdiIZUIwS95svITCyNr7o62dP9hu7GnhHagnxqgDNUGFBIFZHXd Er7Z3GrbT1ehXQi2rF6n9bIjUJNw3oZbKMJGYCTjaBvWnSSd+JPexqVBm3i/kpfT3O8f vvTnW271r73lzriYThCnc0iTaLHOfws6vNnvzJ8HQ6JTFux0FjpHre5esvjYqY6EuIOx kOkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GBti74QD; spf=pass (google.com: domain of linux-nfs+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z3-20020a63e103000000b005b106cd44casi12333346pgh.145.2023.11.28.06.03.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 06:03:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GBti74QD; spf=pass (google.com: domain of linux-nfs+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BD92428210E for ; Tue, 28 Nov 2023 14:03:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8F7A59B66; Tue, 28 Nov 2023 14:03:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GBti74QD" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37AF885 for ; Tue, 28 Nov 2023 06:03:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701180199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o6b4zlJ+NQVyh7nGzEMDX1ZgHvtc06NNFgRYvyVDhSc=; b=GBti74QDCFvTfxyj7iVf/cnH84n2MjbDN5/Fyb9VwojuaLCgoRMjS4FiV8vUwtaRWUmCA4 atiW9fQ4YOb1QK705YYILnJVeByMsYoiUee/oTdl2mcvV0ZiP1CFEvyCCw8zZj+y4qNCbw J2JYL9mZMpZn+gixBTqY1/kmsQL3jIg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-468-xxJ-ZggePqKq7XGAgfcdJA-1; Tue, 28 Nov 2023 09:03:16 -0500 X-MC-Unique: xxJ-ZggePqKq7XGAgfcdJA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 01D35101A529; Tue, 28 Nov 2023 14:03:06 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.14]) by smtp.corp.redhat.com (Postfix) with SMTP id E0CEB492BE7; Tue, 28 Nov 2023 14:03:02 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 28 Nov 2023 15:02:01 +0100 (CET) Date: Tue, 28 Nov 2023 15:01:57 +0100 From: Oleg Nesterov To: NeilBrown , Al Viro Cc: Christian Brauner , Jens Axboe , Chuck Lever , Jeff Layton , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH/RFC] core/nfsd: allow kernel threads to use task_work. Message-ID: <20231128140156.GC22743@redhat.com> References: <170112272125.7109.6245462722883333440@noble.neil.brown.name> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <170112272125.7109.6245462722883333440@noble.neil.brown.name> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 On 11/28, NeilBrown wrote: > > I have evidence from a customer site of 256 nfsd threads adding files to > delayed_fput_lists nearly twice as fast they are retired by a single > work-queue thread running delayed_fput(). As you might imagine this > does not end well (20 million files in the queue at the time a snapshot > was taken for analysis). On a related note... Neil, Al, et al, can you look at [PATCH 1/3] fput: don't abuse task_work_add() when possible https://lore.kernel.org/all/20150908171446.GA14589@redhat.com/ (please ignore 3/3). Oleg.