Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2741344rdd; Fri, 12 Jan 2024 23:20:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjtC7nMfX9koPGIl6YqDwdk0V0+SiSB+5jYe8oOKXQgsS8csDoeaDSyuK7dlYl7OkhUQLb X-Received: by 2002:a17:903:183:b0:1d4:df66:42ef with SMTP id z3-20020a170903018300b001d4df6642efmr2853458plg.136.1705130426067; Fri, 12 Jan 2024 23:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705130426; cv=none; d=google.com; s=arc-20160816; b=xpiF1TDoqCD/Wb+7olCAodwxmR+wtVb4pckopEuAKAFn0m8ySBxquvndpNaS5YfDnb RAHKxZauTDJq7MESf+fqxWOb5jYE7K+9s7oc87R/PJUBupzF5TX9qsvqYVd/G+fHxv4E aNuFKuRLueZmYw2cIOv5lOxw+9Saii4HmkBv9LTSg7z84CihV5p7I9umT74sg1kp7sOw XnCoxLaARgBEY/EfgGEgKB0Rkiw9opvxH0Xt/tAE0qfu4gzoGjx+uZHIor6hgOhZtHDU kfP+tS2Z57U/dT8QyTu1M6X3It3eGXHziAuRkKdRRMkzwSgX7hBqB1RaXMF7xJmltRdV K0yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=XQaO4jwVl8iWt7Eao8ro9E0ghkqiLZF2qv8TyF4R17E=; fh=Kn+NjTyO3mUjkEi4WAC1QzCAopeWl7zUG4dYgNp1xd4=; b=eiybO9TkB4Bz72j8QifVnGKll+sEiYcC42eNhYRg6PDFvVCY5xiaeeR+UVTY5pyiRp HKKlfnz6oBlqSNIE1u7BFZiOFPM34gM1E+4m/M7HauRcSiyUMj/SlzbLcs/M4St42VyM 1uJ2CkCjuUKvgcvpz2pqi3NBMX/maSoAZFDOqE128YUUPWvYU+MeDGN4ka3XfBbrFQ6m LZD1EirENu7qg1HT1qFK12Tmv50UkO+q6ewjH64IdQoZqZOA70I9o6Rn9nCqTw3PtQSp je32OdgiO9Hh25QF6LR+/wOtcAghM8TwnybimbAMBrXUvLnpj9cLRFi4EOHkcI77Op+0 A6dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs+bounces-1072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1072-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t11-20020a170902e84b00b001d4768590d9si5391871plg.414.2024.01.12.23.20.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 23:20:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1072-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; spf=pass (google.com: domain of linux-nfs+bounces-1072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1072-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8567A2852A4 for ; Sat, 13 Jan 2024 07:20:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA6F814262; Sat, 13 Jan 2024 07:20:23 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (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 E0C6B13FF4 for ; Sat, 13 Jan 2024 07:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nrubsig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-7bed9f5d35dso182026839f.3 for ; Fri, 12 Jan 2024 23:20:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705130421; x=1705735221; h=content-transfer-encoding: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=XQaO4jwVl8iWt7Eao8ro9E0ghkqiLZF2qv8TyF4R17E=; b=jHgmK17PnazvC2p2a4IBDYF3kNdIr3FdSc55eRpbI95pYENWdSoxANHGDoVCxoFf1n a5XFzvT6N6xstEP+XyBqvFDwkCpisnC6WfpDTmzxWumhuQlKXq014qBzSidp6vWOJUWN Zo4+sUMeEbOBG4D1iEo/po3GPgp/auc+mI1Ni14YvHrukdNx1G48ZzVzn/tNlkutBwEj 1YlW6XCeyzr4uyyMH7xUV+FRlvrDVkfKg/GyQ8KADoCZCw3HS9/EOoupdBsZlBfe1vYc WK5CJ3b2ZA9gVPp/OXeCvtk/lhG7YOBbJyFczhRhwNKWxnIp2p0RdRlwXRkap5anLZ2M ZwIA== X-Gm-Message-State: AOJu0Yy9Fd7MNgnzJj9d5z7AiSgywqfTmZmH+40Zcc2knobFfaYP6+dJ CwiFUohMi9JY9ciR6+UJUgAx/lp5ZMugp1HYmfg8ilPbcv4= X-Received: by 2002:a5e:d714:0:b0:7bf:8f4:474c with SMTP id v20-20020a5ed714000000b007bf08f4474cmr2818910iom.32.1705130420398; Fri, 12 Jan 2024 23:20:20 -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: Roland Mainz Date: Sat, 13 Jan 2024 08:20:00 +0100 Message-ID: Subject: Re: Increasing NFSD_MAX_OPS_PER_COMPOUND to 96 To: Linux NFS Mailing List , ms-nfs41-client-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 13, 2024 at 2:32=E2=80=AFAM Jeff Layton wr= ote: > On Sat, 2024-01-13 at 01:19 +0100, Dan Shelton wrote: > > 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? Is there a problem with that (assuming NFSv4.1 session limits are honored) = ? > Is this the windows client? No, the ms-nfs41-client (see https://github.com/kofemann/ms-nfs41-client) uses a limit of |16|, but it is on our ToDo list to bump that to |128| (but honoring the limit set by the NFSv4.1 server during session negotiation) since it now supports very long paths ([1]) and this issue is a known performance bottleneck. [1]=3DWindows 10 build 1607 allows longer paths than the infamous |MAXPATH|, see https://learn.microsoft.com/en-us/windows/win32/fileio/maxim= um-file-path-limitation?tabs=3Dregistry > 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. AFAIK the Solaris 11's and Illumos's (see https://github.com/racktopsystems/illumos-gate/commit/27e4199512d9d7b1e5409= 904f13cd96d8a05ee6e) limit is AFAIK |NFS4_COMPOUND_LIMIT| (=3D|2048|), both capped by the limits negotiated at NFSv4.1 session creation, if I recall it correctly... ---- Bye, Roland --=20 __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /=3D=3D\ O\ TEL +49 641 3992797 (;O/ \/ \O;)