Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3191922pxu; Mon, 19 Oct 2020 06:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOlzSd7kiE83EslyI60z9YxpveOjEozMTH2ZqMRj25pZNeDAEHaIyFz+ufv1d85bTd/k03 X-Received: by 2002:a17:906:b1d6:: with SMTP id bv22mr17175232ejb.60.1603113873816; Mon, 19 Oct 2020 06:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603113873; cv=none; d=google.com; s=arc-20160816; b=ZLj+VuFmtiItLPIxK1Vsh1V2nzYH3nMqG71kjWiO1JKQH+frzrcC0n5WRdkMi3BBak QySxz96TlzInvNP15RI0Svra/encx6wOd86NPcU/Tc34Hdua5zJHe4KuyWqnvc+MnNUA BpuZKZNh+L6TD4ObQlw3u0VlTJ7+CVlWHHMRZsbge5Ay151KpBt5LEPzGD4fF6KSQo/9 Tfn8DLv7Iy5Vgp3tR0mZawSF7OPkQL5yBPqoAKmC1DaV10BvfEfiYtipp3eSAy9RYVn5 pKf6OwmdOStHn/b4YzDa1S9cFidP+Sj1d1p3/OHOCclSAChZapU1J6rwWmHkP5vnUBoQ 54Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=evCE6xz3sABAPtexgXJc6/ccBpQpba+uBpeg2VcyFnc=; b=S3gBxb9F7ho1oJLPaWPt/8hAGqYwyZT1DfqfBvlvy+NIZJdynwGIN6ZHvnSv7fIbK1 uUUKM78YICOuozZ3oJCDaKKHL8/Q8T+MNKs6Pip0i2mN4gve/0nL9RaH4khJTycIDu5J ieuMUg9IFHMvdOKGSU8jceI35RueJVSNqEIkc+ZLt9cbYOn0CJ1CIcTkCteeO5VZ9Ve4 QiWXEsLDBbfLL0VoEMBrLko/cGdBl/nNHrqkUgN7LTPqu+VdmPzSsw3fEPDnPVtvxRmY V85H4x4AqLMcQChKCGcVCZzQyQ39sn2Z3q77SAF5RtEkJ/ioSUAWiST0sFCNAPOfTS+w Rdow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=LRJK7zi6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si7156227ejn.285.2020.10.19.06.23.58; Mon, 19 Oct 2020 06:24:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=LRJK7zi6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728009AbgJSNUC (ORCPT + 99 others); Mon, 19 Oct 2020 09:20:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727952AbgJSNUC (ORCPT ); Mon, 19 Oct 2020 09:20:02 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AC1DC0613CE for ; Mon, 19 Oct 2020 06:20:02 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id C28A0C51; Mon, 19 Oct 2020 09:20:00 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org C28A0C51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1603113600; bh=evCE6xz3sABAPtexgXJc6/ccBpQpba+uBpeg2VcyFnc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LRJK7zi63/7W0oqUcUlmDATFlGN2gidjLdUc9u7aIW2VW4F0eibKJAIheoKZu6V3g 0tpQ6D9Wg7d911aJzVckf380g/DjaNN4I1UEbN/+nthLwNv8oFLwUqrJshtK9vyOAF yVolQry03zGDWOutqcMXA2PJBzgoHzS7Wtkt6cz0= Date: Mon, 19 Oct 2020 09:20:00 -0400 From: "J. Bruce Fields" To: Roberto Bergantinos Corpas Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH] sunrpc: raise kernel RPC channel buffer size Message-ID: <20201019132000.GA32403@fieldses.org> References: <20201019093356.7395-1-rbergant@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201019093356.7395-1-rbergant@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Oct 19, 2020 at 11:33:56AM +0200, Roberto Bergantinos Corpas wrote: > Its possible that using AUTH_SYS and mountd manage-gids option a > user may hit the 8k RPC channel buffer limit. This have been observed > on field, causing unanswered RPCs on clients after mountd fails to > write on channel : > > rpc.mountd[11231]: auth_unix_gid: error writing reply > > Userland nfs-utils uses a buffer size of 32k (RPC_CHAN_BUF_SIZE), so > lets match those two. Thanks, applying. That should allow about 4000 group memberships. If that doesn't do it then maybe it's time to rethink.... --b. > > Signed-off-by: Roberto Bergantinos Corpas > --- > net/sunrpc/cache.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c > index baef5ee43dbb..08df4c599ab3 100644 > --- a/net/sunrpc/cache.c > +++ b/net/sunrpc/cache.c > @@ -908,7 +908,7 @@ static ssize_t cache_do_downcall(char *kaddr, const char __user *buf, > static ssize_t cache_slow_downcall(const char __user *buf, > size_t count, struct cache_detail *cd) > { > - static char write_buf[8192]; /* protected by queue_io_mutex */ > + static char write_buf[32768]; /* protected by queue_io_mutex */ > ssize_t ret = -EINVAL; > > if (count >= sizeof(write_buf)) > -- > 2.21.0