Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3578462pxb; Mon, 21 Feb 2022 00:53:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCqbM4IKmrq5DHDBePIslbxwpmuLpyoclMbNd1OE8stc/9BzG24D3L/qX2L4fM5v/kDebt X-Received: by 2002:a05:6402:270b:b0:410:d71d:3f06 with SMTP id y11-20020a056402270b00b00410d71d3f06mr19764314edd.10.1645433596385; Mon, 21 Feb 2022 00:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645433596; cv=none; d=google.com; s=arc-20160816; b=QC4Vzl19TM++xr2mOWMJ3QRkF4cq03NOMVXPFd9Slhh2FOKUS1xxkg1YB2i12CKcBR GS9GyWw8yeYWfivD/i3epP1SPjop4NkuB3HXzwLOzXi3pqxLYiomy5iVFFwHWV0/SS+1 bMkBE68WaHmks2+H2yr+CBv1024/Vcr4BJUPjk4tqShygGQHw+DXroI2Ynr6i4LMHANH zG2s0o9pviQ2tdEFWi2976IpIs9/y4qs0dm73Ebf8axduCh4AUDLen+ptDf6vKzmI3Kx alOPSm7dqdkP2YgbqgEGOXG7M3C9pRoY7MbvPxEPtR2jvCvR0xrx2Y8fAb9O/iGXfb+d C+ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=YVTV0xPXoJ+E0t4CLLNurlPJIGMptv23FLAZiI/nKzA=; b=CcVjj9aAm+rd8z+A35DXlJHZwPMi0A30l9a2FUPup98jJ3pxO8O7JkTtZ4QepLt0lq wQq08nhiEd+rqsPrOPujtyb8ymVmEHuaV4oEn/3wWHj8N5cAp0rgRrdkyFsXFtcuwXqs /fdLRKso9d8fRMWdc5dpAelRo1nVHZgxg6dtXxRfU3zLv8UJLeiXhDSNhUTswlNR7jT6 x6FSmHAMn03M4RKKbh3rJiBudjtz/Kcyz9k8uhuSqGr5jye70AmBDGU4rEDglquNlcNN wa2doi1+w25Vd7RdxlbThghVVcOkufF6MqwcT9rtfzKo2/GfrQXt/xL93+E0TvPDCwGN XaQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Ib9+Xh3u; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d15si2340717edu.197.2022.02.21.00.52.43; Mon, 21 Feb 2022 00:53:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Ib9+Xh3u; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238622AbiBSAnq (ORCPT + 99 others); Fri, 18 Feb 2022 19:43:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236378AbiBSAnp (ORCPT ); Fri, 18 Feb 2022 19:43:45 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9B01B762C for ; Fri, 18 Feb 2022 16:43:27 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3AF6E1F380; Sat, 19 Feb 2022 00:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1645231406; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YVTV0xPXoJ+E0t4CLLNurlPJIGMptv23FLAZiI/nKzA=; b=Ib9+Xh3uOq3l/E6YjsSotNwQAnjAGDOHV0hhQSLlVy46Qe3TvCrgPlhwEq5hBPW1cl9ynW tcImTjMoloRuH0senjmKpg5Wr2nvrEWBbrmtBgC2WC+EhS+cMK/4v08hHqeQlSix5CM++m yErNA4FdaWMT/vLjhHZFEJjI9TCwJNs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1645231406; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YVTV0xPXoJ+E0t4CLLNurlPJIGMptv23FLAZiI/nKzA=; b=jbUPxJtqypawYZZRGKmUNPyQsXznF3oySdlr63StZbW8yXDgESawj6Zcvc0G0xQfx4ZnI2 +2NFE391f6vsUxAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D6E7F13343; Sat, 19 Feb 2022 00:43:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7x5+JCw9EGK+bgAAMHmgww (envelope-from ); Sat, 19 Feb 2022 00:43:24 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever III" Cc: "Tom Talpey" , "Daire Byrne" , "Linux NFS Mailing List" Subject: Re: NFSv4 versus NFSv3 parallel client op/s In-reply-to: <66383037-8263-4D7B-B96C-C9CED24042FC@oracle.com> References: , <6b528d29-1a9c-d16e-f649-5d994d6222b8@talpey.com>, , <3849f322-94f7-fe73-4e08-1660be516384@talpey.com>, <66383037-8263-4D7B-B96C-C9CED24042FC@oracle.com> Date: Sat, 19 Feb 2022 11:43:20 +1100 Message-id: <164523140095.10228.17507004698722847604@noble.neil.brown.name> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sat, 19 Feb 2022, Chuck Lever III wrote: > > > On Feb 18, 2022, at 4:26 PM, Tom Talpey wrote: > > > > > > On 2/18/2022 2:04 PM, Daire Byrne wrote: > >> > >> 2) Why is the default linux client slot count 64 and the server's is > >> 32? You can tune the linux client down and not up (if using a Linux > >> server). > > > > That's for Trond and Chuck I guess. > > For the Linux NFS server, there is an enhancement request open > in this area: > > https://bugzilla.linux-nfs.org/show_bug.cgi?id=375 > > If there are any relevant design notes or performance results, > that would be the place to put them. I wonder if I have a login there.. > > IIRC the only downside to a large default slot count on the > server is that it can waste memory, and it is difficult to handle > the corner cases when the server is running on a small physical > host (or in a small container). I would have a small default slot count (one page of slots??), which automatically grew when it reached some level - say 70% - providing the required kmalloc succeeded (with GFP_NORETRY or similar so that it doesn't try to hard). It would register a "shrinker" so that it could respond to memory pressure and scale back the slot count when memory is tight. Freeing slot memory would be not be quick as you might need to wait for the client to stop using it, so allocating new memory should be correspondingly sluggish. Shouldn't be too hard.... Definitely don't want a tunable for this. NeilBrown