From nobody Tue Jun 20 10:04:13 2023 X-Original-To: freebsd-current@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 4Qlj0g5Jlcz4f2B0 for ; Tue, 20 Jun 2023 10:04:35 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1: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-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qlj0f4qGHz3Ql0 for ; Tue, 20 Jun 2023 10:04:34 +0000 (UTC) (envelope-from Alexander@leidinger.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b=qNeEwziz; spf=pass (mx1.freebsd.org: domain of Alexander@leidinger.net designates 2a00:1828:2000:313::1:5 as permitted sender) smtp.mailfrom=Alexander@leidinger.net; dmarc=pass (policy=quarantine) header.from=leidinger.net Date: Tue, 20 Jun 2023 12:04:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1687255456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SF7bmpY0K+sMiAxuSnyxPkzsvGfWdtyi2cMa7CbYkTY=; b=qNeEwzizMlPlRBNiAHBs7No10WK1E8EVBcQPcaUtNbl5bijQr6Ot/3JY/QYOgeQ0CiPKUS ZGMNt6dQpjAdlx5soTDXnXM0AmxfDftu9e0qsYlVImukNDVlUUBmZ5svldCf5PDSH1qdh0 LJ/mo/zlod1/G85zTAx/kfEdjLInFoZE2aoUPEEyVWCHg9TJhyaR7MM+Lm69vP1Qv5dkAB WUMr+4HtYlEA2qd0sKK/+NLhWid/cYhDSrL0F6u2b5+tW2s+NNP7PgCusHltUTB48Z1HSw jRkItykskYrxy3QBz6i1dGYMywZA9tXEdD4OwZGApCIhjYBCN8O/86m1tKuYgA== Message-ID: <20230620120413.Horde.E7_jFO0w9ui-Nbkh9PONJjn@webmail.leidinger.net> From: Alexander Leidinger To: freebsd-current@freebsd.org Subject: Re: kernel: sonewconn: pcb 0xfffff8002b255a00 (local:/var/run/devd.seqpacket.pipe): Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences), ? References: <3567b4c0-8143-67c8-fde7-5ae3923f53f4@freebsd.org> <20230620094108.351849f5@ernst.home> In-Reply-To: <20230620094108.351849f5@ernst.home> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_P3gbh2m95-_PwWbreB2Fbwh"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 X-Spamd-Result: default: False [-5.07 / 15.00]; SIGNED_PGP(-2.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; NEURAL_HAM_LONG(-0.99)[-0.990]; NEURAL_HAM_SHORT(-0.99)[-0.990]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; BLOCKLISTDE_FAIL(0.00)[2a00:1828:2000:313::1:5:server fail]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; TO_DN_NONE(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE] X-Rspamd-Queue-Id: 4Qlj0f4qGHz3Ql0 X-Spamd-Bar: ----- X-ThisMailContainsUnwantedMimeParts: N This message is in MIME format and has been PGP signed. --=_P3gbh2m95-_PwWbreB2Fbwh Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Gary Jennejohn (from Tue, 20 Jun 2023 07:41:08 +0000= ): > On Tue, 20 Jun 2023 06:25:05 +0100 > Graham Perrin wrote: > >> Please, what's the meaning of the sonewconn lines? >> > > sonewconn is described in socket(9). Below a copy/paste of the descripti= on > from socket(9): > > Protocol implementations can use sonewconn() to create a socket and > attach protocol state to that socket. This can be used to create ne= w > sockets available for soaccept() on a listen socket. The=20=20 >=20returned socket > has a reference count of zero. > > Apparently there was already a listen socket in the queue which had not b= een > consumed by soaccept() when a new sonewconn() call was made. > > Anyway, that's my understanding. Might be wrong. In other words the software listening on it didn't process the request=20= =20 fast=20enough and a backlog piled up (e.g apache ListenBacklog or nginx=20= =20 "listen=20X backlog=3Dy" and "sysctl kern.ipx.somaxconn=3DX" for FreeBSD=20= =20 itself).=20You may need faster hardware, more processes/threads to=20=20 handle=20the traffic, or configure your software to do less to produce=20= =20 the=20same result (e.g. no real-time DNS resolution in the logging of a=20= =20 webserver=20or increasing the amount of allowed items in the backlog).=20= =20 If=20you can change the software, there's also the possibility to switch=20= =20 from=20blocking sockets to non-blocking sockets (to not have the=20=20 select/accept=20loop block / run into contention) or kqueue. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_P3gbh2m95-_PwWbreB2Fbwh Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmSReZwACgkQEg2wmwP4 2Iacbw/+IQKgYlhGg4BTZLALM2n0vsBdcVT7bqmDKU1gxIn0TUcIzqrCwuYKf6ag eXco4M6Pq0Davs7spY3lphyd8XsPxPKym1hu/sXmMiewXEPj4s+S3XT8SbypR1Zg ZQEc4MWxVSGVQGZPqleCegc0c8xfXH2I7ETTpbDBz2+8QESqJNIAC14XLbtZZhNI qaSm2LUQw2bAU2/P/ZuD9gRovx4f7XigZV3R1pz2GAOrljbpx9vifQML7Wsnjhre /UiSyuMvuLTMVaMdo5L0+Se1FmW4KbQtN7Wj0uFZKdP6oQOM0yvq/1azFe8GKOLL pPiWcNXREmyAkJe9I50STvK0ojva92C0licCpoC9Y7EIaQvrD90ZuDokm98xZHUY 8KCYw3rpzgLjfv4XJXoVMTj3JUXCdX4/OGOMd/OhjmaQUfkVVXL5dk+u/sZrbDSY 7V30PPpZRjahkBCy6/PQVaA5L9A89TQX/OY2Tt6GTcHT5lN3T8WTbDTAjRxTsVm5 QUfLUgChLjDQur+rPdPUBApjUHB7fqQnH1tn3tEpcC5oJ1Vg6j8nOYT/dpMHCTbp MYZMoyhua93fYsNPjUNK/2n8q5fNWdsg9uHqch0gupyGQnMItL/1jFVwrCe2ZzvV GLpR+X0sveMxfpzOtZp6ojTH3+7vv3Wd+xWVJmlVkWJ02j2caEk= =pMLG -----END PGP SIGNATURE----- --=_P3gbh2m95-_PwWbreB2Fbwh--