Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2654173rdd; Fri, 12 Jan 2024 17:47:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6YluG02DD/DOL81p0oEivXRnfdlIRk6UPJZ0g5Tk4UmA8qvbKU7qv0jf6TddPXhptaxV9 X-Received: by 2002:a05:6602:e50:b0:7be:e411:6f85 with SMTP id gq16-20020a0566020e5000b007bee4116f85mr2525964iob.41.1705110475769; Fri, 12 Jan 2024 17:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705110475; cv=none; d=google.com; s=arc-20160816; b=0tCZgEhGGHEN46QG7qkbdkPEzHUK7T5UyfDogwCalZiMtJ8zuU3SGE6nc5LcQoC3Rq A/BPVVEjdc2q4RiBr1QyT0g/sjSk2vZ/m206lv9r8K96LHdxVf/Toxo5MZoCX03FL9VZ 4s0y5sAXpo763+6xeNZWZjUZQoRUWn33vr4XDbKzxK0HKp5nJzXiPmG4uVvzLZsQTiz7 tei61sYRyShjc5QACdotsMwtcZsQvKeCIJlrltyRccSr7mQcb8V3ZQozmBuBLs5aPqAn kxKyCVhX7b4YqmTYiEAolGCHTbAqTskGOGyVtsal4Tq9Uf3sdGePNLNKV4U5bzKmUnxv 1qDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=J0fXsJ/qozZ5kkp+MKoenG1fBDfXLwSPNMtbUedO8wQ=; fh=swM5GhBVD15Wzt2/rT3psFdIibGIIOdIX6FDIoAJvJE=; b=kvr3jlBR3hQaz1QDtJBQ0lTFM7saDvhumuaichoxt3hkaboow3fZnGFZbcnn2To99N 1wl0kDgNs2SPJs25qmmfciqzc+bgeN9VR4kd86mnUa+lAiLDy5mNYLkMUy43j0VO6KN3 KaGzDXUZUdyQminY2mYuXMHhQj8f46qWIKH1aWyZWqAGSvSzbXw/m/VE6VTv+GtbdoTE E4ayCC2M2E5lnInS0FEXSwBzAHqGGglH9gfvJ+J9buLxKch3Q2qrvfy0W/EhtLfk0glK Dju06EANLM3JVyN3uPhDE1CCmbJFpdAhGcGVDWo/dK2Lv+CTApHOxszhjTtzfr68PvOF 44AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WbkM26om; spf=pass (google.com: domain of linux-nfs+bounces-1068-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q5-20020a170902dac500b001d59f73a0c7si3520627plx.264.2024.01.12.17.47.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 17:47:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1068-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WbkM26om; spf=pass (google.com: domain of linux-nfs+bounces-1068-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 3948C281116 for ; Sat, 13 Jan 2024 01:47:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0D6918EA9; Sat, 13 Jan 2024 01:47:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WbkM26om" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B59718EA8 for ; Sat, 13 Jan 2024 01:47:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-50ea8fbf261so8162940e87.2 for ; Fri, 12 Jan 2024 17:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705110470; x=1705715270; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=J0fXsJ/qozZ5kkp+MKoenG1fBDfXLwSPNMtbUedO8wQ=; b=WbkM26om4IDnQEster5H0j97LqVZmTW3LBChXBq4Y/ouQa0arjqbVs6KMMFSW2Q5Hz Cu5S7qQ2F8syajeGv83wUgd9BmGqPNrUECbnYo7BwaIW8Nz0ENGAm73Et/CRAePsOs2N ChYiOcHmp5pTW2J2BUEIwtYIIEbdhDnaCaXThTjwstJSxoXIMzEbrsxA0cDun8uUms8Y Ok4fEfB+CpB2sUq3+vxid98gNt4fvTbSAS/0MMwyvLJo+eXCT5BoCzK7LUTXLIQ6bZjf sIwfEb04T+cE1ng8B+fAUK0VJl03lJFRfiJrVHQ98sLA/BM5iGoQu1l80angeRfpn61H aMhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705110470; x=1705715270; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=J0fXsJ/qozZ5kkp+MKoenG1fBDfXLwSPNMtbUedO8wQ=; b=KJ5F+tRds3Q4mzjTP4f/MGDkPX7heJ2IB34JJnCeixbVsrinwi3KuXBImHQbfhOR84 5TBbabRi3hVQ90FlCGbbcr+P9R7TzC+IBjln8AUPd4rYCTx3762tGrH1WcN7lnCCRRbM K4TtPEeYqr5d9h1/Q7YGAcjMphuEDkG+fa2NGl+3VmLgy/655znR1HHdPm8LlLJKe1z1 fNkMaHQAvMtLyBX7/migOBNAYFL+r3fYZFxaYZwg5X302VFMpbtX+Qw4H7q9aAgC6keU JnTMBWpZGU+yMsMNnnis2dPqjlt5aa7vlPYv2LXc+lcKZt2XAEH7q8wE4sUjRBUMyT4Y pf4w== X-Gm-Message-State: AOJu0YwLT4t+cEq3FvelQJ6p0Oiv+K6FzwNMzKPzFClFGNmxxAIqnBnE 3eazY8bkCdpiIA+dTHUOvzPdphOOzLi0OLF/p991/Hl7lEY= X-Received: by 2002:a19:4f53:0:b0:50e:b3dc:3ea5 with SMTP id a19-20020a194f53000000b0050eb3dc3ea5mr996153lfk.66.1705110470353; Fri, 12 Jan 2024 17:47:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <89fba598b0b93cf97bf208e106001f74eadd1829.camel@kernel.org> In-Reply-To: <89fba598b0b93cf97bf208e106001f74eadd1829.camel@kernel.org> From: Dan Shelton Date: Sat, 13 Jan 2024 02:47:23 +0100 Message-ID: Subject: Re: Increasing NFSD_MAX_OPS_PER_COMPOUND to 96 To: Jeff Layton Cc: Linux NFS Mailing List Content-Type: text/plain; charset="UTF-8" On Sat, 13 Jan 2024 at 02:32, Jeff Layton wrote: > > On Sat, 2024-01-13 at 01:19 +0100, Dan Shelton wrote: > > Hello! > > > > We've been experiencing significant nfsd performance problems with a > > customer who has a deeply nested filesystem hierarchy, lots of > > subdirs, some of them 60-80 dirs deep (!!), which leads to an > > exponentially slowdown with nfsd accesses. > > > > Some of the issues have been addressed by implementing a better > > directory walker via multiple dir fds and openat() (instead of just > > cwd+open()), but the nfsd side still was a pretty dramatic issue, > > until we bumped #define NFSD_MAX_OPS_PER_COMPOUND in > > linux-6.7/fs/nfsd/nfsd.h from 50 to 96. After that the nfsd side > > behaved MUCH more performant. > > > > I guess your clients are trying to do a long pathwalk in a single > COMPOUND? Likely. > Is this the windows client? No, clients are Solaris 11, Linux and freeBSD > > At first glance, I don't see any real downside to increasing that value. > Maybe we can bump it to 100 or so? What would probably be best is to > propose a patch so we can discuss the change formally. OK. How does this work? Dan -- Dan Shelton - Cluster Specialist Win/Lin/Bsd