Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1162452lqo; Thu, 9 May 2024 06:34:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuIFtErkpbq+XM0L2mqSyH6pHSoMxxVZRcThVUI33MlXho9mopTmeD0Pk1kcT6J/apkdhMhiZkhIBfQVeUoGh0a+2DbLwhU0R1e4v+xA== X-Google-Smtp-Source: AGHT+IE8CC6E0PNc0SwHRSoh67+bj/ntgwoBtCIuZ+u8iNiagr5ZqawdGd/8jlKd82ykOeyp3ccM X-Received: by 2002:a05:6a20:5ab0:b0:1a7:878f:e9a3 with SMTP id adf61e73a8af0-1afc8d3ca39mr5439602637.22.1715261685912; Thu, 09 May 2024 06:34:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715261685; cv=pass; d=google.com; s=arc-20160816; b=RX94Qi5RAdyq6dSBjipqERlna4JBOwb07LwDvxLe7Yg1lSWELCoiZ74QYXN8Ol6H/D yOyXNCPU0D+o45FbhGi6cFGIId7ZTkilN5GAI24AmAWe0+qkLpxcZnnJFiS3lAe02DbG k3SFXc+05yPp0yeMKBHy1MJPfMhPb7XVrw1ZuPgL3BTk2CA1QNSKm3DbbyVEGuqzUd8L fDPIPfT4IASw5oRzDAI/bYpXcsKcPBjsCONSgsYp3FVXxZCx5CvaDwsnUL1wzaaMyyjy HMEf3khkofyxT+We/Uu5f4gHq7wRDru9GNFXwoz8qko4JVVATbifE8FoQmj0Tlruj4GS SEqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=qyy4KfEUed3hd0FHNjpkWXdwLBXzmVHhHgdwLUHAUnw=; fh=2D8V/TjmU0OKT+vf3hkF4ErbdHUyfmbJy1vC720sebw=; b=ql5pBAQTU2+YvHGnGWjMKYV7xcyViPl/4DX00cl92rXccArMfMC97+5SY2xjPZ8YVd 7wrrCDiS1tH+xL4xcbsJbP58tNVhiN71S2g0+3Yka2e3NEDM5CiqXgePZ4neMxwpZoye AwTOszxKynLGzleCOIIebmBL+Ntg/iWERI3P5/KQ99Wn3yBMCTNapReUthiIFe/vpWeB BS+e+R2kEfipE0hfqNu/TDv/UIRQAxInLFzGm7paBtVEtyH8O5pGOsnbkbXuRWvOqrjV RhQma+uOyGgKIXXDsYVzXhcwMGL0amIq1oGjF8KIsRbWEpypBTq0SfYHqSuKbwJ53uvb yB3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@poochiereds-net.20230601.gappssmtp.com header.s=20230601 header.b=sarXgmjp; arc=pass (i=1 spf=pass spfdomain=poochiereds.net dkim=pass dkdomain=poochiereds-net.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-nfs+bounces-3222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3222-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412a4db6csi1382879a12.716.2024.05.09.06.34.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 06:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@poochiereds-net.20230601.gappssmtp.com header.s=20230601 header.b=sarXgmjp; arc=pass (i=1 spf=pass spfdomain=poochiereds.net dkim=pass dkdomain=poochiereds-net.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-nfs+bounces-3222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3222-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8F285B22344 for ; Thu, 9 May 2024 13:31:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 397E715CD75; Thu, 9 May 2024 13:31:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=poochiereds-net.20230601.gappssmtp.com header.i=@poochiereds-net.20230601.gappssmtp.com header.b="sarXgmjp" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 98681158DC5 for ; Thu, 9 May 2024 13:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715261480; cv=none; b=UHlYUOFLaj4xwkhx15fTw7BXbihDRHcEsjB+xhre4tU0R9jU9ECieeHl304YbPwJzJX/1JSKFHW12/0p0d7y1qR96YjsJFNrQ7es8eW2sYSuPHiDlr8VSRuHNSIy6LgktkeOrNME95b4cVbMeZzKLXmYbb7fO/Schw04KAWjNhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715261480; c=relaxed/simple; bh=Pxq7m8xsVHvJvg/w6k1BjFgru9L7iEbAWEcZhrfwbio=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=fqiW7wGhIltESYamQKLOdKUUOQfWWo+CetPg1bNJ50dRfw4/NlgpLq/BNNByq37DCDt7lyUTOdRDcQGg3aVoEh7TfWqpf3bRnooZBXImDVYXpvWAYWm8y5HiC7Vad2Toe53P42Lzsgr2jYg5HXm4pauH47lBNSVrax6zD6zhqXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=poochiereds.net; spf=pass smtp.mailfrom=poochiereds.net; dkim=pass (2048-bit key) header.d=poochiereds-net.20230601.gappssmtp.com header.i=@poochiereds-net.20230601.gappssmtp.com header.b=sarXgmjp; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=poochiereds.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=poochiereds.net Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1ecd3867556so7092805ad.0 for ; Thu, 09 May 2024 06:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poochiereds-net.20230601.gappssmtp.com; s=20230601; t=1715261474; x=1715866274; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=qyy4KfEUed3hd0FHNjpkWXdwLBXzmVHhHgdwLUHAUnw=; b=sarXgmjpuEmdk1VkWJf5a1VBDOEFeySoWQK4BDs2JIEvqTl+za9WP+AKhMjC+UUY64 H3DeIDIwlyfsb6hZjVq30IRswg03O6XOgwoNxdVTx/u0qhWKYz6Zf+fLSDpWMkt8wY/B 0WyjJAtktSWii7wVzSOC+Nh+V44atPkgseFpM+sKZDaKX1IMiLnSpp9iXQk+q3GsERK0 8y5Vztn3RynIg2mszMGw8AGVew412XiA21kwS4DKeIFgUgpWcHNiCt+iUSVEbMvnX8pf nMBt+qbZU03GeokTI7uIs+4VS4PXIungE/0xyXyf7qTCFKyY0c3ujmi1neLBtWzaDkbm FLhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715261474; x=1715866274; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qyy4KfEUed3hd0FHNjpkWXdwLBXzmVHhHgdwLUHAUnw=; b=QRISC+GZGQMKYb8HoFtnpIjXxHg8AisMJL01+WoiZOpOcGLHcPc+DtmZp+j30X7JQP PvZrLjuxzA2VgDZCDEFpHPykyCZp2F0V+xrR7BKuNO3qyVp4wnrfP2xfsNa5En47QMlb NeytuYCBNC0it/aea7yewrbXsxvDt2/Ce6o7q/veI4NN6i00nU3nbblX2Z/yjmYftfzQ RiZ6XaZa0cumJhnDZTCQujs79uRzZNJ4gF8G3jyMPtZgqb2ca4DfIwagJIs1FrhVHPbA AaSwr4iwxqpGlwOZ+cF7EwbDm3lt6ELJS0iajpa91eInb+gvBKxOss3RYSZ/MVqC5Moj 1ljA== X-Gm-Message-State: AOJu0YxUBz9pRkuebX58Hx2cZ0VR/+cHkOCSzUVP9dt297z8PosL2fht O0EswRs5JrIn0JQwk2feXLKgaSHZ78eTvfVcCQsQ673H7MbRG+9k549Xq9IFGP61nmb/n0zZbaO f X-Received: by 2002:a17:902:6806:b0:1eb:1c47:50d1 with SMTP id d9443c01a7336-1eeb0797845mr52085595ad.69.1715261473699; Thu, 09 May 2024 06:31:13 -0700 (PDT) Received: from [10.36.155.63] ([50.175.227.221]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0bf30fc7sm14052475ad.133.2024.05.09.06.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 06:31:13 -0700 (PDT) Message-ID: <17b06a56223ab70ccf79a0e6b79eef54eddc6c2e.camel@poochiereds.net> Subject: Re: [PATCH v2] nfsd: allow more than 64 backlogged connections From: Jeff Layton To: trondmy@gmail.com, Steve Dickson Cc: linux-nfs@vger.kernel.org Date: Thu, 09 May 2024 06:31:09 -0700 In-Reply-To: <20240308180223.2965601-1-trond.myklebust@hammerspace.com> References: <20240308180223.2965601-1-trond.myklebust@hammerspace.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2024-03-08 at 13:02 -0500, trondmy@gmail.com wrote: > From: Trond Myklebust >=20 > When creating a listener socket to be handed to > /proc/fs/nfsd/portlist, > we currently limit the number of backlogged connections to 64. Since > that value was chosen in 2006, the scale at which data centres > operate > has changed significantly. Given a modern server with many thousands > of > clients, a limit of 64 connections can create bottlenecks, > particularly > at at boot time. > Let's use the POSIX-sanctioned maximum value of SOMAXCONN. >=20 > Signed-off-by: Trond Myklebust > --- > v2: Use SOMAXCONN instead of a value of -1. >=20 > =C2=A0utils/nfsd/nfssvc.c | 3 ++- > =C2=A01 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/utils/nfsd/nfssvc.c b/utils/nfsd/nfssvc.c > index 46452d972407..9650cecee986 100644 > --- a/utils/nfsd/nfssvc.c > +++ b/utils/nfsd/nfssvc.c > @@ -205,7 +205,8 @@ nfssvc_setfds(const struct addrinfo *hints, const > char *node, const char *port) > =C2=A0 rc =3D errno; > =C2=A0 goto error; > =C2=A0 } > - if (addr->ai_protocol =3D=3D IPPROTO_TCP && > listen(sockfd, 64)) { > + if (addr->ai_protocol =3D=3D IPPROTO_TCP && > + =C2=A0=C2=A0=C2=A0 listen(sockfd, SOMAXCONN)) { > =C2=A0 xlog(L_ERROR, "unable to create listening > socket: " > =C2=A0 "errno %d (%m)", errno); > =C2=A0 rc =3D errno; Steve, Is there some reason you've not committed this patch? It seems fairly straightforward. I think I sent this earlier, but: Reviewed-by: Jeffrey Layton --=20 Jeff Layton