Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (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 2AA7C51C58 for ; Wed, 20 Mar 2024 15:16:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710947766; cv=fail; b=CfRqJmqKYCIO3H5iuieaNozno6jFNFTQzuD6FvmrbswXc8qfMwmtbTENHCRVfsT90mbqw5Gp+rQOZwTxAcG7I5b371vIAnPNzN+rU0atN/Cvu31hNfb3uSZjqB7RSXOWqJ1sP/n/qg1xTQa1xzOdAeZYPawyQVy6EDyf8rbsE28= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710947766; c=relaxed/simple; bh=Z8Ek3VXcaYt23NbptYP3EXwMOOcl4c/oGo/RQ9BudHA=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=Y2Z0DUPzXzfFnBqNGmFSst8WtdrNxkNXfsSBXsNUZ6fJi9LFPCZO/4HA4tA/0YWx6zZdljgQXmBcp7wEhdhS43OVROjOI31qtP+BVdCPMreWvbceLDHARYdaYvnGGjExGMHG17mfp7jxEdZeii161mHu4+j2XKu8hvJeuHEqBSY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=YTVGplm7; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=OSusbqjf; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="YTVGplm7"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="OSusbqjf" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 42KBxF7Z027276; Wed, 20 Mar 2024 15:16:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2023-11-20; bh=5k4yqkpgXz3jzsyNozHtFuAOUJHX2WI/R/DK01LZ8jY=; b=YTVGplm7P0m0DI/i1n4kX8wzzZEjxzUhFSgVdBxz6CUoxNppnbNY6e71NTopstmHEz7H xaPz6eafhLykdauprgD3+oemZDe+NL3jr6lZTZxyicr26dnKcIo2T/Mwb/puZtNYXeT4 cHacQW4uC+AjJNn0sallGLi3oV6YZqwEIn8AMrpUOSQsM8pStXixqrm1pzmruPRslpon 2JSN9X/y9qelLJ0Apms78Bv8yWC4XAOy+xBWxZH7V2vdUTAG43lMHq4xNUKE9eIpOwyd mK5qKhedlZbktMCfZSX1b+x4eO5smG8jBeQQpS5t5yW1A9ykYT2GWV7VPMoPjcnksqg7 6Q== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ww3yu88fn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Mar 2024 15:15:59 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 42KDukXr007510; Wed, 20 Mar 2024 15:15:59 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ww1v8g4e9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Mar 2024 15:15:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oHJot0xbDZl1Le6XiLhEF5uu2CMGWYAKGnVHSVyX1pvNeK9kcZDkW71WLWrdjksTjy3TIoEMjaQpjH5hVPtsWn/wl3p+rX2QWggKGxgRJydOuwFaML2QvlqRfqfK3bmcAFONVvUxUXKZJDeHtr0+uD6xV8KuQUX+gVRLFjvIgLax1Ub2Dm0+a+EIvr3ph+8ib46UXn93LPgH5Ltf9SmQWCDQwjdOHG8dp5n84pD7OnKBtQSwLQXzG8HXYEBXjzQ5gwk7tOM+o0JFaDxfLbnluQIXgFbqtIMqGiO6Ew5kFG16MtvPiAvmhK+LyMpzIsuuqJsOAMco0x2QicV9pdMVZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5k4yqkpgXz3jzsyNozHtFuAOUJHX2WI/R/DK01LZ8jY=; b=QXCBEtvu+Yp2vRO0DAN0hbLdw0ONlQKHOAMs6VL3nO/hFZpuwSJzdQhsXEqF3IhCD1GDbIDBRBpUPx/sobQu4FA7akdtX3n7hYNFfBnLO8NHDIv6PFYT0pWbSOzASIp9bG0KPsDL5XOW8k9LwZjs7AFTgbHrFDGYxQSC8+S1L1Sju/skY5Pg32i3lgn9B26XeW+L1DruR5quUV0rtIgFiV1MaMEnTOIC5bFxjOSRWIdQ+AnYeGcLA6cPO6CtpVyERQ+kQlxy4BRm+bfM/WDLkEmsKrk308QlEFZiYdRQ7fDl4IXkJQlvB05Hcu2XA2nEsU87OAhYKSOUycvJFd2Lfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5k4yqkpgXz3jzsyNozHtFuAOUJHX2WI/R/DK01LZ8jY=; b=OSusbqjfUwlXVanXAJ1n0JyEhR6wdLslCG2UsdZhQqBfj3ulRPe/5LVjonwqFZSMWKa99jgq6E/mnlEDe5LfQaQa6T8/fOGZkyI+cBcQ3bVqR7ZPpulYZjkKlIiQ9sYIGzhHM1ev6uRBHg0/tt0vUZkNZ7Gm+iE7IEvK0V2ydT4= Received: from BN0PR10MB5128.namprd10.prod.outlook.com (2603:10b6:408:117::24) by CH3PR10MB7413.namprd10.prod.outlook.com (2603:10b6:610:154::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.34; Wed, 20 Mar 2024 15:15:56 +0000 Received: from BN0PR10MB5128.namprd10.prod.outlook.com ([fe80::ad12:a809:d789:a25b]) by BN0PR10MB5128.namprd10.prod.outlook.com ([fe80::ad12:a809:d789:a25b%4]) with mapi id 15.20.7386.031; Wed, 20 Mar 2024 15:15:54 +0000 Date: Wed, 20 Mar 2024 11:15:44 -0400 From: Chuck Lever To: Jeff Layton Cc: kdevops@lists.linux.dev Subject: Re: [PATCH 8/8] nfsd: default to a more sane number of threads Message-ID: References: <20240320-fixes-v1-0-d1567776ad50@kernel.org> <20240320-fixes-v1-8-d1567776ad50@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: CH0P223CA0016.NAMP223.PROD.OUTLOOK.COM (2603:10b6:610:116::34) To BN0PR10MB5128.namprd10.prod.outlook.com (2603:10b6:408:117::24) Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN0PR10MB5128:EE_|CH3PR10MB7413:EE_ X-MS-Office365-Filtering-Correlation-Id: 94f3fa95-56b5-4a40-a6e2-08dc48f0a2c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ijuSb53lC7qwm+5ite2fDTaWfGM4UxQhV9WHp93IakzsWXavjI31e+UmzjPl1X9uMEky2nMPa8wn5TZRE/bdg0rxxB8SWTeqbSVzBlErpergDt8LEjBQpAdymQBv3T2UnelmRYgcXLZjN8Eb+7k0tXU5ooKnmf1qgRt0PjIRYY9VbAH4waCGRrnPx9TKh/p1iTJawhZboRwyFJJKayEvukXY9ZQVpxBSAyfAPH3IR6AG5DvC3rkp3FWqNKchoOkQ0mZzAD0DTam9xbhwN2+IHaNIX2K7VXeJjDKn3LD+lmSdsTUikz5mCJaGHuM6kwA6QJVXXGqI6J1BMVWPT2kbYxaJ86mE9Ut2fXYxF7snwdg1oJI9dMl7MFvSOUtgxgK1N4PY94qPiEnBh3L7QQDpiM8qojesSWrP6kKS7APYhURcY5NVUoQ0I56twz00yOEXZPl+1lvMjRMfGLSg7t8VSc+3SBHspWFrj0f0eq+tqkNWSbbCebWn3mVsz8rPt0pcPbApmKtj3WSt1VHOUXaE44lNpCYd4Feia3TEkkyYWqo3Vp39WCZChVrz+EoyheBgAgW3/mhjfUDpsh7kjCG16Fbi2GMKDYQcyMtlk2HLlDZD1dFbpNCQ7DyKiKRvRGynuGgwCoomG7l7tBtPBpUDDc0kOC5ldIwvebECvjrZ8ug= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN0PR10MB5128.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TMO7t3LLWYwld9ASuATpveJJELBW4mGbpW2KLGndwPRqVBn9PT9R/iUGEy92?= =?us-ascii?Q?JI3bqFc2ADNGH1ktgWM+V1C6WY6LJ3Zcq9O1S847PjENdrg9qnoSXK6I92eM?= =?us-ascii?Q?dMAoOpWlbigrSwuIutgjtV/HzVwS5mYacyFOyzJ7Seo/4O3yWhnyetDjY97d?= =?us-ascii?Q?xK0s25uFYPAXQPHr/08sOAAaMz55tbbL+ME1sb+jSYI/GnSJT/PwS5EEhxua?= =?us-ascii?Q?vgZ0t1dyx8bq9sLJbUCebfGFzOVfbGdfHhjxBY/YnrB2kmuXx2Y55YH+RmLP?= =?us-ascii?Q?jiAt9js4Y/i150vkH2xdgOBNSf87m2Lv1b5eVYewu2UpPmo1j/L9+ETe30q0?= =?us-ascii?Q?Ksj0lePP68KJZyzkAQeNfT5upiZklIe/HvI9jDcrDKCoPpv0lK01wqKCALtX?= =?us-ascii?Q?Fsfg0UevEUb7aZWXVVXpgeBgbRZa1ZvHrdcp5CaNFiijwWUPuIWhFkleM+ty?= =?us-ascii?Q?r5nVqm719NXMPMnd4K2tQprRWyhKxBuiVupZ0X2QcqNvAplyM5HXHyYmdBUZ?= =?us-ascii?Q?wDt1yGiNS/BP+/TX31vugzr5uYMOP0ADk7YUVKb1Odoj7JQxSCVhE8S5oKKM?= =?us-ascii?Q?zaIMCtB19PCtTqgYnAHw1o9McgFogVZkXddu6/I6RKnh0gmquCbs0Egu6yio?= =?us-ascii?Q?jQYpnOP4abQI/u6tHyXVuIvf/FY2GOEF5qh/blYuyT45asV89Cud6LGt2Ost?= =?us-ascii?Q?Y/DgYgfyd6aAGmnAy3uFYcI5QPz74p87hi/ztrsbXw7NtRdnR/pI7+i8t906?= =?us-ascii?Q?+baRYFyReoYrN1THhB9Dny2XbxKifSRyBmqLQvMlafLin7Z57epQefaMg43f?= =?us-ascii?Q?y9L3UpNiVUnyul2fopiJwIwNbzcf7LPA9i20d4xlgP4AEnD9dfcCpxTbNJFj?= =?us-ascii?Q?3C5O/lo7/7PWvRDBA7YKbrmdTCVT3Squ3UYR26HXUfoCbasOnEtlnR4h4qCC?= =?us-ascii?Q?ZuvautlWU4tszXFx7ch6fEq/w2yppU+u3IQqE5nWL7nFwcJbaqSbtNjiI/0t?= =?us-ascii?Q?+w/fjg+y+BwDWx2YazFMaEUKqbgOEexhwJHhtgFXfRSi8MiXj2Phq3iDiWu2?= =?us-ascii?Q?kkcJ8tu1rzTnb0SQjRjFnbe4KROrexqgAfWGtMLMjDR2140Ou59u84WWnJM8?= =?us-ascii?Q?8oaqIaeqM9lZakmgJxo7zywUz2oto+2xytdDnbxGwEPI2ShMzmfyPENyfoKf?= =?us-ascii?Q?47uUQlz2jzbFM6LCdgk6b45jhv16SaOYcdMoB7g5JaSQN2In0xp6oO32iWHh?= =?us-ascii?Q?mlCcffvW3pqQan9EI7AsrQH3sdxLu25ig86aZbDTLW1gnjUuBmSHOGa4Pv0d?= =?us-ascii?Q?qFvqYwr1fqD7b4sVMVuYPmd46kSxM7q1V0HGPVDMgOxY46FWL6qv1TEVQCmL?= =?us-ascii?Q?4ow4PFJAzz5H9t5bAe09fu1JEpZ/TebzkK48WvllB0NdN1/bRfIGE0wPMJ0o?= =?us-ascii?Q?R1fEWirHIaxX7kfxon+cALF1QHL6MIM/IMsjhB7OKcA85WCO9CGB5WAT2eWd?= =?us-ascii?Q?wOVAfWY4PsjlwLAs5GELzE6EHruh4TDDkfH1ih/tWhhGbpbdzKUqHtHjUUcc?= =?us-ascii?Q?XkelqPKaVdz0QRjUsdquAfMGFsx8Wh4xVX9M9nDPToS8vG30zvedxwSyzWgr?= =?us-ascii?Q?Rw=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: kP4FqZ/Fx86xF7+rVaFfhJ4rZnWWkeEFlKRQqOYRP0y1k5/bQU/GumONEjDqG8RAPt1rec1qUD1YTu7ZHalGNVtl+LMa0o0e3qi/u8lXi17DIf/BoI9EI10VxxlUXNItnByCHe2+sK6ry30EZdzJvA5o10HrnCpUxYP+C/W09cJc4JHBkFrwTkN0gr1joFqXdh9qYQpXuZvrGtyZOy3OJ4XrcQtGnUN+/KZpOeA5z1viI8e87k0phYUJJKu8wJRmcN/J/W7fPtFDUJztBgLhgKTfUIo6CaLcfOEZJqHDk0tf8vAswnW9/I8LSGfeMvg4mo+OwYRgxdpfLwNL9fj2VARgvDE5I3nvYBGp1KYqQH6DK2UfenfFiqoTwHG2LFD/MSMsT+I1fEKrvg24oUsCGC8cnKafpBDe5oioB1MfJrfZfFUd3Zu/NxWQ0V6Fwa+Onx7w5dIv/UCersWCGfSc0DtGEGF+Ea2q4XdrZTOrKo0b3KUg17z+rlH01n+QvofdXumQpTAMMNC+bJs2DR3P4yqKrumakf4i3WU7mrYVGH1u8TMMU5QJYTUSrvaWYYLpOENDp/V32R5z210Dl+JbwKM3eEAuKnlcTd6HkbFVY7s= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 94f3fa95-56b5-4a40-a6e2-08dc48f0a2c0 X-MS-Exchange-CrossTenant-AuthSource: BN0PR10MB5128.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2024 15:15:54.0857 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: C5Y9ZwnZdfdSVy5tROTURBX3+lJK+twg2BWzlr4LdrL3sT2uGSVS8wQx8d7q/ZpCGmvj7+mPzRWUUsbw9jYW0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB7413 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-20_10,2024-03-18_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2403140000 definitions=main-2403200121 X-Proofpoint-GUID: PIVj5HDbe2PtpZCeVEZZqp3RLfaqU8uI X-Proofpoint-ORIG-GUID: PIVj5HDbe2PtpZCeVEZZqp3RLfaqU8uI On Wed, Mar 20, 2024 at 02:48:37PM +0000, Jeff Layton wrote: > On Wed, 2024-03-20 at 10:10 -0400, Chuck Lever wrote: > > On Wed, Mar 20, 2024 at 09:11:31AM -0400, Jeff Layton wrote: > > > Add a small script that can estimate the number of threads for > > > nfsd. We default to 32 threads for every GB of guest memory. > > > > > > Signed-off-by: Jeff Layton > > > --- > > > kconfigs/Kconfig.nfsd | 2 +- > > > scripts/nfsd-thread-est.sh | 15 +++++++++++++++ > > > 2 files changed, 16 insertions(+), 1 deletion(-) > > > > > > diff --git a/kconfigs/Kconfig.nfsd b/kconfigs/Kconfig.nfsd > > > index dec98c1e964f..7c28ad98955a 100644 > > > --- a/kconfigs/Kconfig.nfsd > > > +++ b/kconfigs/Kconfig.nfsd > > > @@ -69,7 +69,7 @@ config NFSD_EXPORT_OPTIONS > > > > > > config NFSD_THREADS > > > int "Number of nfsd threads to spawn" > > > - default 8 > > > + default $(shell, scripts/nfsd-thread-est.sh) > > > help > > > Number of nfsd threads to start up for testing. > > > > > > diff --git a/scripts/nfsd-thread-est.sh b/scripts/nfsd-thread-est.sh > > > new file mode 100755 > > > index 000000000000..dc5a1deb1215 > > > --- /dev/null > > > +++ b/scripts/nfsd-thread-est.sh > > > @@ -0,0 +1,15 @@ > > > +#!/bin/bash > > > +# > > > +# The default number of 8 nfsd threads is pitifully low! > > > +# > > > +# > > > +# Each nfsd thread consumes ~1MB of memory, long-term: > > > +# > > > +# stack, kthread overhead, svc_rqst, and the rq_pages array, plus > > > +# temporary working space. > > > +# > > > +# Allow 32 threads for each GB of guest memory: > > > > I agree that 8 is a small number, but that multiplier seems > > excessive. On my 16GB test systems, that would create 512 threads. > > I set the nfsd thread count to 32 on my test NFS server, and I've > > never seen more than 10-15 threads for any test. (OK, maybe I should > > run tests that drive the test server harder). > > How are you measuring that? I watch "top" while the tests are running. You can see CPU time accumulating for nfsd threads as they rise to the top of the display window. I see between ten and fifteen nfsd threads in that window after a test run is done. Other nfsd threads remain unused. It's the unused threads that worry me -- that will be memory rather permanently tied up in rq_pages that isn't serving any useful purpose. We don't yet have a shrinker for reducing the thread count, for instance. > I'm open to a different formula. This one is > based on a total SWAG. So I think your rationale and formula works as a /maximum/ thread count. But distributions can't assume that NFSD is going to be the only memory consumer on a system, thus taking that much memory for nominally idle nfsd threads seems undesirable. I've toyed with the idea of 3 * CPU-core-count as a rough default number of threads, though it really depends on NFS workload and the speed of permanent storage. Sigh. > > Plus, no distribution uses that configuration. Maybe we should stick > > to what's a common deployment scenario? > > > > They don't use that configuration because rpc.nfsd still defaults to 8. > Admins have to _know_ to increase the thread count, which sort of sucks. > I'd like to make that more dynamic, but that's a separate project. > Still, maybe worthwhile to look at soon... I agree that increasing the default thread count is a super idea, but I don't think we know enough yet to pick a new number. No doubt a fixed value of 8 is too low as a distribution default. Yes, they will look to us to provide a strong rationale for a new choice. > > Do you have data that shows creating more threads improves test run > > time? > > > > No, but I think the overhead from that number of threads is pretty > minimal and the whole purpose of the kdevops nfsd host is to serve NFS > requests. Also, this _is_ just a default. > > BTW, do we collect stats on how often we can't find a thread to run? I > guess that's all the svc_defer stuff? Good questions... I had added a trace point at one time, but Neil removed all that when he rewrote the svc thread scheduler last year. We also used to have a thread histogram, but that's also been removed for reasons. It might be nice if we can find a generic tool for looking at thread utilization so we don't have to build and maintain our own. -- Chuck Lever