From nobody Wed Oct 8 00:44:42 2025 X-Original-To: dev-commits-src-main@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 4chDmx4Pbkz69Zwb for ; Wed, 08 Oct 2025 00:45:05 +0000 (UTC) (envelope-from jlduran@gmail.com) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4chDmx1zbGz3Yh6 for ; Wed, 08 Oct 2025 00:45:00 +0000 (UTC) (envelope-from jlduran@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-858888ea508so79119785a.3 for ; Tue, 07 Oct 2025 17:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759884294; x=1760489094; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1zpCPvsxtacTEuTwNv3aHOFW1L2tm68W/iAkPIxBCjc=; b=cjPYjfNKy0fTDTEVepEscbZwiA6+6m2LQrkpFvu2VYV6BUNbJKDFYq15UpPCP9+k2L ZETWrLYLU1c8hPUt9Xo+wPd3O4+L9hzZIE3c36pXjMwvp1ACz7cV5/GhDf6Mou/Kzx/5 8D5XoPEmCbtK5+qoDPdKApMx2FPexmuYSaWdvSl6mt+sEyoMZ1/QnXFhl3J76wIoojEN K3hyz9oP8gyOUkgfQ1UlAXJfUaV2lQEslxKSHyvud3JrvSoHGC4MC9eIgs8XbGQO/KsP dGFCMIPTiZuwD+AHJEtGCuXNWcQaQOFkGnbBE0bk85RkoKqxH34rLYD6XIbuVttxh42B 2b6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759884294; x=1760489094; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1zpCPvsxtacTEuTwNv3aHOFW1L2tm68W/iAkPIxBCjc=; b=O/JBvYGmi0XlE5Xi2o0CzBb46JVAoyH3JUUFLPItVWL3vow+FLwxIHKhai7n5IwEwx 5u4cWp9Q4yaEyxJ1faBMSfuFPVUTq9PLC+OUwJyYgngnWgD6PfVnNnftyZA3zOJQflZJ PVWSqdUTakxyhDo+z4xuFqQobJmtSudUgoJIMZ4X1hD9DxB0TxgJNd1JCmwbENDz0GnV QsPAnKqjcMpdPDEP7K1GSXe+OpVhaIh2leWepp904xVFK7KE2EjC3WJTG6PHqIF1sjLh 7b/vvdFlAN8shhI3y5cJz9HWPAEFLDiYvoFVHyrcwlFFoFCDn3B+ebkzG/VSzxVmEL2s arXQ== X-Forwarded-Encrypted: i=1; AJvYcCVy50tSgfGqRhMGpw9u6CAvokb7asV8T0dYtdN2BLDfOmAiTY5s89nYEfClYM/7rFI9FY/CjLNxRPRLGnISTLZ5KTf9yg==@freebsd.org X-Gm-Message-State: AOJu0YwSHEiTSEnv5RmJJVrLHbEghID8qL0G2+Tgvq+mmcfiF27XN5GH jIWfIMrthssPAg0RT2+qcAA/8olECWqC90wy8XHdyU9TXwbKPNvNG3iAKWLSAo+EygYo/dQ2jx+ nUDLaaFBf2+1I+2E7sfpd9eVKHsazKdA= X-Gm-Gg: ASbGnctJjp04phwAzTprd1AITGS8/9V1PXrk42T5v9kY0aRPbdyE3m/cdPgEMYDGtv7 xokOWGwA4gMvQjdNeBw4TJ7EX7xly/KkupMkPTg5CygOEjOMEfe2wHUam0izvq3bK39QDP+L25Y OQctPuI1Va7yzWBwcRAbwWXYO9lzlF7U0hTEm2Ty3bvSX0wpsVwQvLg+ajustDWC0Z9tRzeX+T/ uOdA7d9D4Gkxk9cYZ6qrKrBPeNBHp8= X-Google-Smtp-Source: AGHT+IHqt2xn7RQN6lyEhmegJrhhix3ClW+MjEQGSEpzMyNuRUBcVpR75LXlOdthCjdROJf7d4tAc4om3eDUd9tIo9E= X-Received: by 2002:a05:620a:2903:b0:864:3585:ccbf with SMTP id af79cd13be357-883547daef1mr198359285a.12.1759884294315; Tue, 07 Oct 2025 17:44:54 -0700 (PDT) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 References: <202510071524.597FOTr3063628@gitrepo.freebsd.org> <20251007221221.22BCC29E@slippy.cwsent.com> <20251007230048.64C8F39B@slippy.cwsent.com> In-Reply-To: <20251007230048.64C8F39B@slippy.cwsent.com> From: Jose Luis Duran Date: Tue, 7 Oct 2025 21:44:42 -0300 X-Gm-Features: AS18NWDRUqmeXCABPFoNEQnDv6D09JMFXL8l-IP_1BhV8ZL7_TaubcOXVS9kF5Q Message-ID: Subject: Re: git: b2efd602aea8 - main - unbound: Vendor import 1.24.0 To: Cy Schubert Cc: jlduran+freebsd@freebsd.org, Cy Schubert , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[freebsd]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4chDmx1zbGz3Yh6 On Tue, Oct 7, 2025 at 8:00=E2=80=AFPM Cy Schubert wrote: > > In message <20251007221221.22BCC29E@slippy.cwsent.com>, Cy Schubert write= s: > > In message > om> > > , Jose Luis Duran writes: > > > Hello Cy, > > > > > > According to the changelog: > > > > > > "The default value increase for so-sndbuf is to mitigate a cross-laye= r > > > issue where the UDP socket send buffers are exhausted waiting for > > > ARP/NDP resolution. Thanks to Reflyable for the report. > > > > > > To help the server start more easily, the setsockopt for sndbuf buffe= r > > > size prints a warning instead of a failure to start the server if it > > > can not set the buffer size." > > > > > > This means so-sndbuf is now 4m. Which triggers a warning, detailed in > > > upstream commit 713b5db5 ("- Fix to print warning for when so-sndbuf > > > setsockopt is not granted."). > > > > > > I wonder if we should revert back to using "so-sndbuf: 0" as the > > > default for FreeBSD? Or is there a better solution/workaround? > > > > There are in fact two commits. > > > > 1ef7b4a24 adjusted so-sndbuf to default to 4m. > > > > 03772d10f changed the default from to 1m. > > > > I assume you're suggesting reverting both upstream commits for FreeBSD? > > Looking at the commit that started unbound down this path we see this in > their commit log before bumping the default to 4m: > > > - Change default for so-sndbuf to 1m, to mitigate a cross-layer > issue where the UDP socket send buffers are exhausted waiting > for ARP/NDP resolution. Thanks to Reflyable for the report. > > I use local_unbound on one of my machines here. It has 8 GB RAM. I don't > see any warning messages WRT the socket option not accepted. The first > question that comes to mind, to try to understand your environment, how > much RAM does this machine have and of that how much is allocated to the > kernel? Here is the warning on a fresh VM with 8GB: # sysctl hw.physmem hw.physmem: 8551202816 # service local_unbound onestart Starting local_unbound. [1759883902] local-unbound[3237:0] warning: setsockopt(..., SO_SNDBUF, ...) was not granted: No buffer space available [1759883902] local-unbound[3237:0] warning: so-sndbuf 4194304 was not granted. Got 9216. To fix: start with root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values. or set so-sndbuf: 0 (use system value). [1759883902] local-unbound[3237:0] warning: setsockopt(..., SO_SNDBUF, ...) was not granted: No buffer space available [1759883902] local-unbound[3237:0] warning: so-sndbuf 4194304 was not granted. Got 9216. To fix: start with root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values. or set so-sndbuf: 0 (use system value). Waiting for nameserver to start... good If we configure it with "so-sndbuf: 0" the warning goes away. But, nevermind if I'm the only one seeing these warnings. It was just a basic local_unbound test. Regards, > > -- > Cheers, > Cy Schubert > FreeBSD UNIX: Web: https://FreeBSD.org > NTP: Web: https://nwtime.org > > e**(i*pi)+1=3D0 > >