From nobody Fri Dec 17 18:11:46 2021 X-Original-To: dev-commits-src-all@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 B687918EF92F; Fri, 17 Dec 2021 18:11:46 +0000 (UTC) (envelope-from git@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 4JFxrf1v03z4hvL; Fri, 17 Dec 2021 18:11:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 1F4842088F; Fri, 17 Dec 2021 18:11:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BHIBkew004956; Fri, 17 Dec 2021 18:11:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BHIBk9x004955; Fri, 17 Dec 2021 18:11:46 GMT (envelope-from git) Date: Fri, 17 Dec 2021 18:11:46 GMT Message-Id: <202112171811.1BHIBk9x004955@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: d157f2627b23 - main - unix: Increase the default datagram recv buffer size List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d157f2627b238ba38d1cad36f1aa165c42ce91ee Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639764706; 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; bh=Xqq2ELJBmBcq9vR+K6DOKKyyGXjj6eu++XUI5zf27w8=; b=iHyHmeEY0G8GEEmWv30N1llCiLRg1a8LuiX7+UidctuaHL/ndznzDtWYqOU9F14sF4PPBA BmuDkHIsstjNB2Ke5TUh57VAWIrG5yyoda1ORd3KYty0Dbo+n4kLm+eGhn15oiT/we5kli 9Khp/zVe6uTRi9Efo3Z3RQ2XulykiplzzJkqPeY+GKi5R/yzb6vap8yFUIyIyOK9bSV5DX fv8meOmMFubp0vXtUljnY0Y7ccmRmm3vGuV4XLxQ3I/i82nQRjNcCNQuXskqThiVXfXS02 ek+vjJlbxSP99ilIj8DbMqvUwv2M9cHkXCV3jnWB5UfzE9TyTln9HQjcHq/Z8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639764706; a=rsa-sha256; cv=none; b=B5bebn0ZZZEgcwKiH9XfL7yJ9JrQjM2LHT8RjeddARiLWpHCHK0n9QzJd84I94rVSO/JzA QBs1AWGRAaC2UIxOxrjBT4UU9WdLAEMoCKm2ZrQlvHKUs/hbhrHBeiDf0Jc4Gs2qY/sBzw qdE3FE+oWxRTZ9r+dj5WCrJTSbQqm+nrb/NSsk9rbcGhALXsr0jWtmWDE/nav5YG/zfOL0 JSKw/f9VAaYF5wHKXRjbIKxK36daKKuXfGt4jMTnopTefag1gHN80hA5UBrR7QMbZ+0Jbx bZyyS2yDIUwanOpgHHUL1yVynhuo/oeo088RE9mrg78DGtWZGHv835W8tSd4mA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d157f2627b238ba38d1cad36f1aa165c42ce91ee commit d157f2627b238ba38d1cad36f1aa165c42ce91ee Author: Mark Johnston AuthorDate: 2021-12-17 15:59:29 +0000 Commit: Mark Johnston CommitDate: 2021-12-17 18:09:49 +0000 unix: Increase the default datagram recv buffer size syslog(3) was recently change to support larger messages, up to 8KB. Our syslogd handles this fine, as it adjusts /dev/log's recv buffer to a large size. rsyslog, however, uses the system default of 4KB. This leads to problems since our syslog(3) retries indefinitely when a send() returns ENOBUFS, but if the message is large enough this will never succeed. Increase the default recv buffer size for datagram sockets to support 8KB syslog messages without requiring the logging daemon to adjust its buffers. PR: 260126 Reviewed by: asomers MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33380 --- sys/kern/uipc_usrreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 0ec1ba677173..ceeb4741e3f4 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -157,7 +157,7 @@ static struct task unp_defer_task; static u_long unpst_sendspace = PIPSIZ; static u_long unpst_recvspace = PIPSIZ; static u_long unpdg_sendspace = 2*1024; /* really max datagram size */ -static u_long unpdg_recvspace = 4*1024; +static u_long unpdg_recvspace = 16*1024; /* support 8KB syslog msgs */ static u_long unpsp_sendspace = PIPSIZ; /* really max datagram size */ static u_long unpsp_recvspace = PIPSIZ;