From nobody Tue Jun 20 07:41:08 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 4QldqP2wHfz4fgNk for ; Tue, 20 Jun 2023 07:41:21 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (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 4QldqN6g4Hz3MY7; Tue, 20 Jun 2023 07:41:20 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1687246877; x=1687851677; i=garyj@gmx.de; bh=drE3Ssiiz65nlp9yqj1W8n9cURlNlEYWosWpegavwU8=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References:Reply- To; b=kWI23w5muyXchEgVS+CBgD7r3TiRwAfRptvUrKhwizFaW0AaXyo3hPkTvjOUJWKYhdbMHOM vIStc58SD5p1aF22CuuakLJj9SfCOkyFhqN0PFo26VcFX1d6eLdxNQZffiZKGre7x6gAirZva nDS7Ke2kuAKZw6u+/HLhcfg4HcNcxq/1+M4ELZKKJhZMhsUvaX8cRqi/0ydmbJd7o9z8X7BJZ oPi2TX7gBmF4N6OtfTQEbVJZzetBLbQk1Buf+xfb6iQcnHwwyZSw+8B0JT96Fsq6PngX2zCyl H6UJ+lGdTEZIfT4T0PHcL7goRmoCnTvPAo23M210Egh3hYbiUKbw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([91.59.234.81]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N9dsV-1pzEV62KNZ-015dxN; Tue, 20 Jun 2023 09:41:17 +0200 Date: Tue, 20 Jun 2023 07:41:08 +0000 From: Gary Jennejohn To: Graham Perrin Cc: FreeBSD CURRENT Subject: Re: kernel: sonewconn: pcb 0xfffff8002b255a00 (local:/var/run/devd.seqpacket.pipe): Listen queue overflow: 1 already in queue awaiting acceptance (60 occurrences), =?ISO-8859-1?B?Pw==?= Message-ID: <20230620094108.351849f5@ernst.home> In-Reply-To: <3567b4c0-8143-67c8-fde7-5ae3923f53f4@freebsd.org> References: <3567b4c0-8143-67c8-fde7-5ae3923f53f4@freebsd.org> 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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:MNVF3gs7H8spjgqKuLdm6IMGx9zA9Z5i2pTeEE7PzAQ0bUihOmI UK6jESMXwUGoPYYGf0RBpaRj9372GlMZ3cZjEoDYgvze9H/c5tHu+g7DWBWznUtHHTIu8gp YSG70+nLixZCed60OPHEP41E/y8O2AbFVb55iqPmL3uyZtjRN/JPTmAtuJSiIApSRmy+4dj NnvSKPyYooDyKs0W/k9Lg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:5d5yf2HMFQI=;XWCPvdltNV+Te0mmwTKoh194pc3 +YmosfikXwC/6fj5JE6PhJXGfD/jT69bs5G4JJrEBZ2BjVbGzVcKke+g80Hu5QeU7dwo6EZMc RkWaRLyRTgaXuMCg1nTwzUGh7wvNHiT8iJGi5sN1PDmJbY6G5zzoRAoZT4R7xkZFld0+/2yQk Zy1/fW8Y1Wrf+iQ/8aPgqTeXuh3HqxHh563UGcWdp8PBWChpNLNzzyXFIKsw0I5vK0hUudkDa HyVixlAzhTFkQ6Lrb5uBGXx1nICmcKL9gB8xQWXzZrOXcli9djhWBi94EbxauhiuzEF9NUmov gNHazndMYTgOVyGwf1fBAhtwCzBpooADzL5FpSYoTKIJVxwWWPBuyRrSeOyBiILISP0oqJFk9 jvof3BlQEFAvNPT+c9teTcmQ28AV8WwaH0V7jUaf1g9ewfezq80defN4c+3QHsEHhMsZGXSEI 4Xag2iCN6b1z5VjgOpmhH9BiJ+6jbFZdKgPzaR0+iqmTUzt/BHQY1I/nm0BTCOe9noM0smp7R fxMhrEotujssPJvyG75zpYXFdUlzczlarwWm/0Hm9jBPP5XdMeOUbYP9b1c3WTb7P6P3MxHm3 McdiOLSMINPPaPiqKWcuteCimJVGMDfhYQIrpR4sodoMOu/eXFrSnNt/b3CmdWJrJ7cTJWePd Ym85yb7y0V11FkSFhT8rg7iQOZOsC6C7N1Dzly/71NXcSPIHwgwqZdZ+wLyWJyUtEOyhSf2uQ djQ3WWfSbJJaOrSqgYmf6B/027BfMChoy9mldzae6T7qslZ+L0ZfrFfGUa4cGaI2CHMHqaG2I 9FXf8HW+EHbFYKaBQbTor+tg6kD+w1ci5Xc/W7XdKgbXrYAuAFp64bfdrfzTcrTdGQnLCu3vM UwO4U/GCMbLoMZ/JP5tNrOtxRGUgWIEr2cTX6Q8RSOrgz8q41gR3BrziXLP/lTj95cLORG/Kd K+zAX82uPJ5oHZZg8/bvFiCnACc= X-Rspamd-Queue-Id: 4QldqN6g4Hz3MY7 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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 descriptio= n 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 so= cket has a reference count of zero. Apparently there was already a listen socket in the queue which had not be= en consumed by soaccept() when a new sonewconn() call was made. Anyway, that's my understanding. Might be wrong. > % tail -f -n 0 /var/log/messages > Jun 20 04:08:41 mowa219-gjp4-8570p-freebsd su[4159]: grahamperrin to > root on /dev/pts/6 > Jun 20 04:12:20 mowa219-gjp4-8570p-freebsd apps.plugin[3178]: Cannot > fetch process 4501 command line (command 'sysctl') > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: lock order reversal: > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: =A01st > 0xfffffe0103db30e0 filedesc structure (filedesc structure, sx) @ > /usr/src/sys/kern/kern_descrip.c:1397 > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: =A02nd > 0xfffff80001df8930 devfs (devfs, lockmgr) @ > /usr/src/sys/kern/vfs_subr.c:6244 > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: lock order filedesc > structure -> devfs attempted at: > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #0 0xffffffff80bc4573 > at witness_checkorder+0xbb3 > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #1 0xffffffff80b21265 > at lockmgr_xlock+0x55 > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #2 0xffffffff80c5e4b4 > at _vn_lock+0x54 > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #3 0xffffffff80afd13b > at knlist_remove_kq+0x8b > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #4 0xffffffff80c517d4 > at filt_vfsdetach+0x24 > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #5 0xffffffff80afdad0 > at knote_fdclose+0x180 > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #6 0xffffffff80af4f2c > at closefp_impl+0x9c > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #7 0xffffffff8104d8e0 > at amd64_syscall+0x140 > Jun 20 04:30:25 mowa219-gjp4-8570p-freebsd kernel: #8 0xffffffff81020b3b > at fast_syscall_common+0xf8 > Jun 20 04:34:26 mowa219-gjp4-8570p-freebsd apps.plugin[3178]: heartbeat > clock: woke up 1346787 microseconds later than expected (can be due to > system load or the CLOCK_REALTIME set to the future). > Jun 20 04:35:38 mowa219-gjp4-8570p-freebsd apps.plugin[3178]: Cannot > fetch process 6471 command line (command 'sysctl') > Jun 20 04:55:30 mowa219-gjp4-8570p-freebsd apps.plugin[3178]: Cannot > fetch process 7697 command line (command 'sysctl') > Jun 20 05:07:16 mowa219-gjp4-8570p-freebsd apps.plugin[3178]: Cannot > fetch process 8416 command line (command 'sysctl') > Jun 20 05:17:42 mowa219-gjp4-8570p-freebsd kernel: sonewconn: pcb > 0xfffff8002b255a00 (local:/var/run/devd.seqpacket.pipe): Listen queue > overflow: 1 already in queue awaiting acceptance (1 occurrences), euid > 0, rgid > 0, jail 0 > Jun 20 05:18:42 mowa219-gjp4-8570p-freebsd kernel: sonewconn: pcb > 0xfffff8002b255a00 (local:/var/run/devd.seqpacket.pipe): Listen queue > overflow: 1 already in queue awaiting acceptance (60 occurrences), euid > 0, rgi > d 0, jail 0 > Jun 20 05:18:56 mowa219-gjp4-8570p-freebsd apps.plugin[3178]: Cannot > fetch process 9359 command line (command 'git') > Jun 20 05:19:42 mowa219-gjp4-8570p-freebsd kernel: sonewconn: pcb > 0xfffff8002b255a00 (local:/var/run/devd.seqpacket.pipe): Listen queue > overflow: 1 already in queue awaiting acceptance (60 occurrences), euid > 0, rgi > d 0, jail 0 > Jun 20 05:20:03 mowa219-gjp4-8570p-freebsd apps.plugin[3178]: Cannot > fetch process 9602 command line (command 'cat') > Jun 20 05:20:43 mowa219-gjp4-8570p-freebsd kernel: sonewconn: pcb > 0xfffff8002b255a00 (local:/var/run/devd.seqpacket.pipe): Listen queue > overflow: 1 already in queue awaiting acceptance (60 occurrences), euid > 0, rgi > d 0, jail 0 > ^C > % sudo sysctl kern.sched.pick_short=3D1 > grahamperrin's password: > kern.sched.pick_short: 0 -> 1 > % sudo sysctl kern.sched.preempt_thresh=3D224 > kern.sched.preempt_thresh: 48 -> 224 > % uptime > 6:23a.m. =A0up =A02:24, 7 users, load averages: 0.78, 1.24, 1.34 > % uname -aKU > FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #7 > main-n263630-ab3e6234ab6e-dirty: Sun Jun 18 14:56:48 BST 2023 > grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys= /GEN > ERIC amd64 1400090 1400090 > % > > =2D- Gary Jennejohn