Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4512352rdh; Wed, 29 Nov 2023 03:43:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMbbJ1lM4BubA1Jtu6MO3yvkcxID6CkP70f0yceA4nDwRstsBKL+Rlhoc7S5rwKTPT0Vhc X-Received: by 2002:a05:6808:6084:b0:3b6:dc6f:271f with SMTP id de4-20020a056808608400b003b6dc6f271fmr20106814oib.18.1701258225702; Wed, 29 Nov 2023 03:43:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701258225; cv=none; d=google.com; s=arc-20160816; b=NrOu2qaf3UAUHTeryLf74BhmgU80lDNENcysNB7hxm5LYOGb1m9Chg9CBKZ9rIjfRI MJzwjczDnKsTvJEIJ8xhrgPIZzEy+yXVIcSHhTEd8UrzV9Vcd5V1OIZfkfA7t2rTRbZJ HWEoxS89yE/lKRM2SEMW/UkfLRFl4GdpKMLpdcZCrDY30rteEU1+5LUgq9Mt1HginUoP mE5CnlGjNk+cdHf1l2zBFYzaeQ+ssvPtl+Su09K6Y5BEXgZj1+H4hwb/YxDyrmUwmx3d Gv8ng7q/EYdr0LFJcHPlSqLqWv1IUx3pIOtVrrG74V8cxEtLdW1iG/yoKX1RxzKTwyh9 IcLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=SSFX8s2MfFVbg2NsHVFgjOX0392ECJxoxvIZol0lRA8=; fh=ucp87gZoyvcQ468mtJMIPi0Kjdvfg1dDrx8+dHIHh/M=; b=actElAaf0A56gNMzENMsysdA7/3cr3Cr8AZuhGXzPJGgXlfiN+fqBtOGah1hZPhIsG MdL6swBrGELVrkiAo+L1421MpUKJDY8kFazDUdeQSrusC6SM2Yvc1krvj0l5ukIvs8mg 6QmTjrRNwnBr1VdFrnPqQ2pOfx8qDbfWiJSIyzwGLU6K/e+rTm5eq9slHqJ+7/7dAH1e /eki1yJTD9c+S5puhHqhQcK0CBc/+WZkOjswm9yX+c2Tkf7hnoIcXq9D+SuugQm844BT L64iT9ruzfA6cgDN9/+q45OtvHdlkg8O0hMyZwfS8K1zke/4zmFDaZWFHqYI9THr6YLX AeWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eOggLREL; spf=pass (google.com: domain of linux-nfs+bounces-161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y13-20020aa79e0d000000b006b905fe37b7si13667908pfq.221.2023.11.29.03.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 03:43:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eOggLREL; spf=pass (google.com: domain of linux-nfs+bounces-161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A755DB20D72 for ; Wed, 29 Nov 2023 11:43:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EA211D522; Wed, 29 Nov 2023 11:43:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eOggLREL" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F01FF1D521; Wed, 29 Nov 2023 11:43:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0DB2C433C8; Wed, 29 Nov 2023 11:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701258220; bh=6hxakAmZIQItNkD76sjQSF/47UpUdJ+ouDdRtONsXGU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eOggLRELEWXcQMxKJNdbflVMplqVs1d4oSFZVtSvmNNvSIFVTXoEb7tMaarWGgp5n SQvQ0XbsjD/9KVI6qacU5DD0JTLkFSmOnHtYDCv91tsumKeJ9kZbdPMqxEgdvYZydf TIdUDPKMmjNry2UBwuyoaNuPkkRN0hcNFttoEp8AqxMQAGMB0szOe8vPvuShf0nxCx 2tqlvm6XWQYYNZrxVdd34UPB+Zt6057uBH88fQzfG3jBIz8CzkI+XjpyJKgqdTpeZx QoJfoWXJaxoYtjQbKJXh2WZRTfC+CrQlmAdQlAyuuGt5soT3PtwC5+5ogURFuOxBpV weh+Z4iphCbEg== Date: Wed, 29 Nov 2023 12:43:36 +0100 From: Christian Brauner To: NeilBrown Cc: Al Viro , Jeff Layton , 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: <20231129-querschnitt-urfassung-3ebd703c345a@brauner> References: <170112272125.7109.6245462722883333440@noble.neil.brown.name> <170113056683.7109.13851405274459689039@noble.neil.brown.name> <20231128-blumig-anreichern-b9d8d1dc49b3@brauner> <170121362397.7109.17858114692838122621@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=utf-8 Content-Disposition: inline In-Reply-To: <170121362397.7109.17858114692838122621@noble.neil.brown.name> > If an nfsd thread only completes the close that it initiated the close > on (which is what I am currently proposing) then there would be at most > one, or maybe 2, fds to close after handling each request. While that > is certainly a non-zero burden, I can't see how it can realistically be > called a DOS. The 10s of millions of files is what makes me curious. Because that's the workload that'd be interesting. > > It feels that this really needs to be tested under a similar workload in > > question to see whether this is a viable solution. > > > > Creating that workload might be a challenge. I know it involved > accessing 10s of millions of files with a server that was somewhat > memory constrained. I don't know anything about the access pattern. > > Certainly I'll try to reproduce something similar by inserting delays in > suitable places. This will help exercise the code, but won't really > replicate the actual workload.