From nobody Tue Jun 20 14:41:41 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 4Qlq8b3t37z4gB9s for ; Tue, 20 Jun 2023 14:41:51 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qlq8Z59kQz4Dfg for ; Tue, 20 Jun 2023 14:41:50 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.de header.s=s31663417 header.b=KapVpBpt; spf=pass (mx1.freebsd.org: domain of garyj@gmx.de designates 212.227.15.19 as permitted sender) smtp.mailfrom=garyj@gmx.de; dmarc=pass (policy=none) header.from=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1687272109; x=1687876909; i=garyj@gmx.de; bh=F3AEfE/gkDUeI+rEu98SHdYSNjxC48qx8BN7/4OAGVQ=; h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References:Reply-To; b=KapVpBptdyxYjSRIfz9Fb69RdW70hZdIdc1XKyS8Sidtwrl0QPnt/deJ4TmkfNY62Fr1A1+ O2icWj4Nw2ZwLZdoU8whkgxryVSQync6FgHZCfgxwvWRhCjn2BD+YSkmt9pjXdkOAeVRDPIae Sa4lwzYP4ohZ0ZypI71U9HzEzWVBxpSG49RKab7gFg3n6FwuJgCblxk3q4MzHhk3mmmDgcbXq Jc8IfJZa7C3DgLw58wP1V7gUZUr5DfZoJEwIzGmfMerKKclhZ6q6+8OEVGqedcy2Fbpn0/eZ1 T94NgIZSoOWNkRR1uE531ryZs3JZjykqeeKRnLf+/VV7w2s212hg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([91.59.234.81]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRTRH-1qPhay0RvR-00NNwZ for ; Tue, 20 Jun 2023 16:41:49 +0200 Date: Tue, 20 Jun 2023 14:41:41 +0000 From: Gary Jennejohn 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: <20230620164141.209ea8bc@ernst.home> In-Reply-To: <20230620120413.Horde.E7_jFO0w9ui-Nbkh9PONJjn@webmail.leidinger.net> References: <3567b4c0-8143-67c8-fde7-5ae3923f53f4@freebsd.org> <20230620094108.351849f5@ernst.home> <20230620120413.Horde.E7_jFO0w9ui-Nbkh9PONJjn@webmail.leidinger.net> Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:/XrjVd1z0fViG7cKC3/Lp7SvcI8DwdnNakYEYr9+FgC/MKabwk7 7VmimhMM2pyYbM3dRwEf3tP2JNznvrYI9q2OUuTZZOc01lCYn9tl0vlFOcP7zs34PbEGwVe WnQcE2vgH9dkFgTj2VQMQjM4zGn2IMgVGnQB0/9mF1Cqggq0gx7TYffjnkhJFprbrok6qQS fewAJVwl+yhXErvS6bUCg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;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54)[0.545]; DMARC_POLICY_ALLOW(-0.50)[gmx.de,none]; NEURAL_HAM_LONG(-0.41)[-0.408]; R_SPF_ALLOW(-0.20)[+ip4:212.227.15.0/25]; RWL_MAILSPIKE_VERYGOOD(-0.20)[212.227.15.19:from]; R_DKIM_ALLOW(-0.20)[gmx.de:s=s31663417]; NEURAL_HAM_SHORT(-0.17)[-0.171]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.19:from]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_REPLYTO(0.00)[gmx.de]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; HAS_REPLYTO(0.00)[garyj@gmx.de]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FREEMAIL_FROM(0.00)[gmx.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmx.de:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; FREEMAIL_ENVFROM(0.00)[gmx.de]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Qlq8Z59kQz4Dfg X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N On Tue, 20 Jun 2023 12:04:13 +0200 Alexander Leidinger wrote: > Quoting Gary Jennejohn (from Tue, 20 Jun 2023 07:41:08 +0= 000): > > > 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 descri= ption > > from socket(9): > > > > Protocol implementations can use sonewconn() to create a socket a= nd > > 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 no= t 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=3Dy" and "sysctl kern.ipx.somaxconn=3DX" 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. > On my FreeBSD14 system these things are all under kern.ipc. maxconn seems to be an alias for soacceptqueue, which is set to 128 on my machine. However, the software he's using may have set backlog to 1. Hard to say based on the trace he provided. =2D- Gary Jennejohn