Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp423511rdh; Thu, 26 Oct 2023 06:09:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvhzCtATkv75V+V8ewJUzppA9fFHO7yVfNN7WihCKgQzM520bp82RbJ1JM8w9z8YRaovid X-Received: by 2002:a05:6808:a1b:b0:3a4:225f:a15b with SMTP id n27-20020a0568080a1b00b003a4225fa15bmr18721764oij.31.1698325793185; Thu, 26 Oct 2023 06:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698325793; cv=none; d=google.com; s=arc-20160816; b=AQ9hyzjjKniBY+cn8lITrmqBXZSXMTsEr4m6EBZ9jL6PRyWVWZYyElac3FAZWQPcDO 8ypYmYkkvFm8fowgblhYWiRwWSX5tqo0ozP8stK52O8pgeMt4ZrxyzY+WqmhcCjpH6Ou QxIAQ7Smhbx/LZO0VG4uUfOcM41+lSw/BmGc2mNPBlj/I+XfZ7a0GeN7TVkSlEZuFemu +ld0qAoOhxuES8oU0Lnb18R06xVFfP1PnngMVJq2iHJ6FS+TmHtqzpa7he2Zer3HhOUX KDrhG9PjqHtfO0wt3J3j+ipN7HB43rWQx9GCtnszmLMRJ3GZYdYnlzKidWSfgF/sbkbt kTSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HeAeRgBTQ7Ssdj5ujtSikHLsYN0B8YubCdr8ZdyYSgY=; fh=MCT6mx5111OdJmppgxIG18oYL+OqZ5bMAz6vULjSxyk=; b=XF4BO4SfgIdiCowY6YQ2TxTW+4svo9aALy2oA3aENIKMmRH1Wz6t5wtD9pK9j2oN+d 0LB8fJFuHxFU1ucmEEq9j7UYGwcTbsAmVDjefJyNTQ7HrGNLw5BOAR/e1yYL43eQ12XE eQNo9++NMz42l0yEKgf9k3osMC5WYDdqrc/FHNoAkciJd7n47/5leTkWzJU6VScXyL7O dWU6arbG/ge0Ebr6M+rOypnefkjEeGMJ+PI8nbOtpPkw9e8eaNknT9j8dMxwbRTUWCxI KR7lJO13ptrkIISTzhxCqNFwWJgJh4bTDTU0Ov0s8EzifgbR8qpQUhzfIfSOADb/NqKP jc6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iJo9hpBk; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y69-20020a253248000000b00da0c581666bsi440135yby.524.2023.10.26.06.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 06:09:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iJo9hpBk; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DCB8282DEE69; Thu, 26 Oct 2023 06:09:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231180AbjJZNJk (ORCPT + 99 others); Thu, 26 Oct 2023 09:09:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbjJZNJk (ORCPT ); Thu, 26 Oct 2023 09:09:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 345811A7 for ; Thu, 26 Oct 2023 06:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698325731; h=from:from:reply-to:subject:subject: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=HeAeRgBTQ7Ssdj5ujtSikHLsYN0B8YubCdr8ZdyYSgY=; b=iJo9hpBkgJIp3H1HXIqrHcnlfBQJq9fugbtO51iHzq3GV7C+w6ARHxvPQnLD1qnIFDuwEE EY73u2rdJnzDNxT2kVkWInjhvM06y5Ac3id6KRXN3FZZ3LuhVrzQjtPcE8tZ3L1H7uqR/+ 4sDr0SYFfi9ibWhy/vfsQF3CAgTjkWA= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-257-pjT9fk4IOMKXV6Kpo9hkMA-1; Thu, 26 Oct 2023 09:08:48 -0400 X-MC-Unique: pjT9fk4IOMKXV6Kpo9hkMA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C0FAF1C382A3; Thu, 26 Oct 2023 13:08:45 +0000 (UTC) Received: from [100.85.132.103] (unknown [10.22.50.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7A56D1121314; Thu, 26 Oct 2023 13:08:43 +0000 (UTC) From: Benjamin Coddington To: Zhuohao Bai Cc: steved@redhat.com, falcon@tinylab.org, forrestniu@foxmail.com, baizhh21@lzu.edu.cn, tanyuan@tinylab.org, linux-nfs@vger.kernel.org, libtirpc-devel@lists.sourceforge.net Subject: Re: [RFC PATCH] _rpc_dtablesize: Decrease the value of size. Date: Thu, 26 Oct 2023 09:08:41 -0400 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 26 Oct 2023 06:09:41 -0700 (PDT) On 25 Oct 2023, at 12:27, Zhuohao Bai wrote: > In the client code, the function _rpc_dtablesize() is used to determine= the memory allocation for the __svc_xports array. > > However, some operating systems (including the recent Manjaro OS) can h= ave _SC_OPEN_MAX values as high as 1073741816, which can cause the __svc_= xports array to become too large. This results in the process being kille= d. This is addressed by several users of rpc_dtablesize() already, which all= seem to do: setsize =3D _rpc_dtablesize(); if (setsize > FD_SETSIZE) setsize =3D FD_SETSIZE; Does it make sense to try to fix it for everyone, and should we clean up = the users? Ben