Date: Tue, 20 Jun 2023 12:04:13 +0200 From: Alexander Leidinger <Alexander@leidinger.net> 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), ? Message-ID: <20230620120413.Horde.E7_jFO0w9ui-Nbkh9PONJjn@webmail.leidinger.net> In-Reply-To: <20230620094108.351849f5@ernst.home> References: <3567b4c0-8143-67c8-fde7-5ae3923f53f4@freebsd.org> <20230620094108.351849f5@ernst.home>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <garyj@gmx.de> (from Tue, 20 Jun 2023 07:41:08 +0000= ): > On Tue, 20 Jun 2023 06:25:05 +0100 > Graham Perrin <grahamperrin@freebsd.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230620120413.Horde.E7_jFO0w9ui-Nbkh9PONJjn>