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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 description > 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 new > sockets available for soaccept() on a listen socket. The > returned socket > has a reference count of zero. > > Apparently there was already a listen socket in the queue which had not been > 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 fast enough and a backlog piled up (e.g apache ListenBacklog or nginx "listen X backlog=y" and "sysctl kern.ipx.somaxconn=X" for FreeBSD itself). You may need faster hardware, more processes/threads to handle the traffic, or configure your software to do less to produce the same result (e.g. no real-time DNS resolution in the logging of a webserver or increasing the amount of allowed items in the backlog). If you can change the software, there's also the possibility to switch from blocking sockets to non-blocking sockets (to not have the select/accept loop block / run into contention) or kqueue. Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF [-- Attachment #2 --] -----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-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230620120413.Horde.E7_jFO0w9ui-Nbkh9PONJjn>
