From nobody Thu Dec 30 02:13:39 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 543BF192041B for ; Thu, 30 Dec 2021 02:13:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JPWz805tgz4pdP for ; Thu, 30 Dec 2021 02:13:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D7BEB10988 for ; Thu, 30 Dec 2021 02:13:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BU2DdwY095031 for ; Thu, 30 Dec 2021 02:13:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BU2DdE0095029 for bugs@FreeBSD.org; Thu, 30 Dec 2021 02:13:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260764] Feature request: Control over NFS bg timeout Date: Thu, 30 Dec 2021 02:13:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rmacklem@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640830420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NyBn6rI2854AeJxG5o1MfKIIjgsUvbfHYC77kYvlL80=; b=SiSxJdCbVosf51bJqU389a9DRlJ0xCCWaBXQ4cmc2Wx7p6iEcfgvdPtjZ3RUYGdkkqtZ0d B7Ol7jaL5c7rPwFwlCVccvPmOk3p9ge7+k0BaDbqhJ3+9dUVg7JeWt96k34xnoAuY9RUu0 n3QM9ScTn49f5FyFCdMPyvVyykYGh++3HfX1oW29/55k/bOzj5JsKoJWSvmZD/lQnhG8jC cPqwVrRynHY/Ty1PIWGPUarEvxxJo+ah1BSIqJkmoDga6bKDbt6wBCBv3hRNiiJltQIN1o lE1CwUqbrlAmEte1gOoYMfP24AXzZ13lAP0x3n0QX/O1lJ56XRPl7KiJkyz2MA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640830420; a=rsa-sha256; cv=none; b=uIDzZseKMVeUr4zr9fZktjRAVhFSG28x1sitLwhr2wbfpaTJuiu+/+lFGpODw8JjelT/IR 4gjWDgW7qb+BFmCvSf1Ed+8KYzJfEuHiPkBnDSG3CzEAa896rCHHIovPAa7/ED9nQVtG/Y +g/oDzphlJiBjzCGZHMOgk1aos1tFKaa0KZ5QTL1m4DdK8tZVlRQGWwLREqekRvT23eLrb RlvP4TDNaPMA3kOu48iPpQd0AoPvog8PQ0znKSl29sWrZJSqIL22HVyKf56W0Jqor5u5Qk MjX/jcpbbxFzObt1KApkZK4RO/xrYBFoJDZ1au1uO5sg/nAESB5WDutpEUV8BA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260764 --- Comment #1 from Rick Macklem --- Well, I think this is easier said than done. Without actually doing testing, I think the timeout is "how long it takes for connect(2) to return" and I think this is the TCP socket option TCP_KEEPINIT. TCP_KEEPINIT can be changed by a setsockopt(), but this is all buried inside the RPC functions in libc and there is no argument to the function to adjust the timeout. --> I think it would involve modifying the RPC library semantics, via some new function that would set the timeout. I will take a closer look, but I'll admit that adding a change like this to the RPC library does not excite me. Would a new NFS mount option that says "do background right away and don't wait for a failure" be sufficient for your case? --=20 You are receiving this mail because: You are the assignee for the bug.=