Article View: news.software.nntp
Article #90448Re: INN 2.7.1 death spiral under high load?
From: Jesse Rehmer
Date: Fri, 30 Jun 2023 12:36
Date: Fri, 30 Jun 2023 12:36
201 lines
11533 bytes
11533 bytes
On Jun 30, 2023 at 6:31:19 AM CDT, "Julien ΓLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Russ,
>
>>>> Jun 29 19:13:43 gatekeeper innd[90655]: free:-1 35 free but was in SMASK
>>>> Jun 29 19:13:43 gatekeeper innd[90655]: free:-1 36 free but was in SMASK
>>>> Jun 29 19:13:43 gatekeeper innd[90655]: free:-1 39 free but was in SMASK
>>>> Jun 29 19:13:43 gatekeeper innd[90655]: SERVER cant select: Bad file descriptor
>>
>> I was wondering about that too, but the SMASK error is very specific to a
>> file descriptor being included in the select mask despite not
>> corresponding to an open channel. That implies something has gone
>> seriously wrong with the file descriptor tracking. innd then closes that
>> file descriptor, which I bet is what's causing the CNFS errors since I bet
>> it's closing the cycbuff file descriptor thinking it's a remote peer.
>
> It seems like a channel can both be waiting to write and sleeping.
> SITEchanclose() sets them both. (It may not be the right thing as
> normally only one state should be given at a time as far as I understand
> how states are supposed to work.)
>
> But anyway, it does not explain why we end up with a channel of type
> CTfree considered to be sleeping (which is the condition causing the
> "free:-1 35 free but was in SMASK" error).
> As far as I see, the sleeping state is removed when a channel gets the
> CTfree type.
>
>
> ** Jesse, do you happen to have any "internal closing free channel"
> error in your logs? In this case, the sleeping state is not explicitly
> enforced.
I enabled the trace logs you mentioned. I don't have the specific error you
mentioned above, but on this latest attempt and turning on debug logging in
syslog, I have more tidbits in news.notice:
*****
Jun 30 07:24:18 gatekeeper innd[84944]: free:-1 29 free but was in SMASK
Jun 30 07:24:18 gatekeeper innd[84944]: free:-1 30 free but was in SMASK
Jun 30 07:24:18 gatekeeper innd[84944]: free:-1 31 free but was in SMASK
Jun 30 07:24:18 gatekeeper innd[84944]: free:-1 32 free but was in SMASK
Jun 30 07:24:18 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 168 in
/usr/local/news/spool/overview/a/d/u/n/alt.dating.uk.north-west.DAT: Illegal
seek
Jun 30 07:24:18 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F846A00000001@
Jun 30 07:24:21 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 169 in
/usr/local/news/spool/overview/a/d/u/n/alt.dating.uk.north-west.DAT: Illegal
seek
Jun 30 07:24:21 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F885000000001@
Jun 30 07:24:22 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 2902 in /usr/local/news/spool/overview/m/r/misc.rural.DAT: Illegal
seek
Jun 30 07:24:22 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F896600000001@
Jun 30 07:24:22 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 2903 in /usr/local/news/spool/overview/m/r/misc.rural.DAT: Illegal
seek
Jun 30 07:24:22 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F898C00000001@
Jun 30 07:24:23 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 2904 in /usr/local/news/spool/overview/m/r/misc.rural.DAT: Illegal
seek
Jun 30 07:24:23 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F8AB300000001@
Jun 30 07:24:23 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 2905 in /usr/local/news/spool/overview/m/r/misc.rural.DAT: Illegal
seek
Jun 30 07:24:23 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F8ADB00000001@
Jun 30 07:24:23 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 2906 in /usr/local/news/spool/overview/m/r/misc.rural.DAT: Illegal
seek
Jun 30 07:24:23 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F8AED00000001@
Jun 30 07:24:23 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 2907 in /usr/local/news/spool/overview/m/r/misc.rural.DAT: Illegal
seek
Jun 30 07:24:23 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F8B0100000001@
Jun 30 07:24:29 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 170 in
/usr/local/news/spool/overview/a/d/u/n/alt.dating.uk.north-west.DAT: Illegal
seek
Jun 30 07:24:29 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F91DC00000001@
Jun 30 07:24:39 gatekeeper innd[84944]: tradindexed: cannot get offset for
article 2908 in /usr/local/news/spool/overview/m/r/misc.rural.DAT: Illegal
seek
Jun 30 07:24:39 gatekeeper innd[84944]: SERVER cant store overview for
@03015445585400000000012F9C8900000001@
Jun 30 07:24:58 gatekeeper innd[84944]: news.blueworldhosting.com:878
checkpoint seconds 52 accepted 2000 refused 0 rejected 0 duplicate 0 accepted
size 5263200 duplicate size 0 rejected size 0
Jun 30 07:25:13 gatekeeper innd[84944]: news.blueworldhosting.com:22
checkpoint seconds 98 accepted 1998 refused 0 rejected 2 duplicate 0 accepted
size 10925664 duplicate size 0 rejected size 237059
Jun 30 07:25:18 gatekeeper innd[84944]: news.blueworldhosting.com:821
checkpoint seconds 65 accepted 2000 refused 0 rejected 0 duplicate 0 accepted
size 5087052 duplicate size 0 rejected size 0
Jun 30 07:25:20 gatekeeper innd[84944]: SERVER cant select: Bad file
descriptor
Jun 30 07:25:50 gatekeeper syslogd: last message repeated 561451 times
*****
The news.debug file has a ton of entries so I'm not sure what I'm looking for,
but it 'ends' like this:
*****
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226 NCreader
Used=2896
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226 NCproc
Used=3509
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226
cp->Start=0 cp->Next=2896 bp->Used=3509
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226 NCproc
state=8 next "y 'Quickie' Sto"
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226
NCwritereply 18=write(226, "239 <58663374@1", 18)Jun 30 07:25:20 gatekeeper
innd[84944]: news.blueworldhosting.com:226 >239 <58663374@1>
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226 NCproc
state=2 Start=3509 Next=3509 Used=3509
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226
cp->Start=3509 cp->Next=3509 bp->Used=3509
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226 NCproc
state=2 next "as an^M >> "inva"
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:226 NCproc
state=2 Start=3509 Next=3509 Used=3509
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821 NCreader
Used=2873
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821 NCproc
Used=2890
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821
cp->Start=0 cp->Next=2873 bp->Used=2890
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821 NCproc
state=8 next "sympatico.ca^M ."
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821
NCwritereply 18=write(821, "239 <76204197@1", 18)Jun 30 07:25:20 gatekeeper
innd[84944]: news.blueworldhosting.com:821 >239 <76204197@1>
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821 NCproc
state=2 Start=2890 Next=2890 Used=2890
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821
cp->Start=2890 cp->Next=2890 bp->Used=2890
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821 NCproc
state=2 next "f: Technique, c"
Jun 30 07:25:20 gatekeeper innd[84944]: news.blueworldhosting.com:821 NCproc
state=2 Start=2890 Next=2890 Used=2890
Jun 30 07:25:20 gatekeeper innd[84944]: SERVER cant select: Bad file
descriptor
Jun 30 07:25:50 gatekeeper syslogd: last message repeated 561451 times
Jun 30 07:27:51 gatekeeper syslogd: last message repeated 2241177 times
Jun 30 07:29:17 gatekeeper syslogd: last message repeated 1581962 times
Jun 30 07:29:17 gatekeeper innd[84944]: ME time 600000 hishave 5402(83753)
hiswrite 11495(83560) hissync 11(2) idle 284870(4542195) artclean 499(83752)
artwrite 4690(83554) artcncl 77(240) hisgrep/artcncl 35(240) overv
24253(83554) perl 49799(83560) python 26(83561) nntpread 1307(175291) artparse
2053(239726) artlog 947(83786) datamove 253(145273)
Jun 30 07:29:17 gatekeeper innd[84944]: ME HISstats 77 hitpos 0 hitneg 115
missed 83561 dne
Jun 30 07:29:17 gatekeeper innd[84944]: SERVER cant select: Bad file
descriptor
Jun 30 07:29:47 gatekeeper syslogd: last message repeated 574345 times
*****
The innd process is using 100% of CPU and truss shows the following over and
over (I'm going to let it run for a while and see if it eventually dies):
*****
__sysctl("kern.hostname",2,0x2bfb054c64d0,0x2bfb054c23b8,0x0,0) = 0 (0x0)
getpid() = 84944 (0x14bd0)
sendto(3,"<59>1 2023-06-30T07:31:55.121776"...,125,0,NULL,0) = 125 (0x7d)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
select(1057,{ 3 12 14 15 17 22 24 29 30 31 32 226 736 737 821 878 },{ },0x0,{
442.000000 }) ERR#9 'Bad file descriptor'
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGPIPE|SIGTERM|SIGCHLD|SIGUSR1 },0x0) = 0
(0x0)
write(2,"innd: SERVER cant select: Bad fi"...,46) = 46 (0x2e)
*****
*****
[news@gatekeeper ~]$ ulimit -a
number of pseudoterminals (-P) unlimited
socket buffer size (bytes, -b) unlimited
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) 33554432
file size (blocks, -f) unlimited
max kqueues (-k) unlimited
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 942498
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 524288
cpu time (seconds, -t) unlimited
max user processes (-u) 34304
virtual memory (kbytes, -v) unlimited
swap size (kbytes, -w) unlimited
*****
Technical Details
Message-ID:
<u7mi7n$28vs$1@nnrp.usenet.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <nsn.20230630081035.779@scatha.ancalagon.de> <87y1k1cw0o.fsf@hope.eyrie.org> <u7mee7$2gqf2$2@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <u7mi7n$28vs$1@nnrp.usenet.blueworldhosting.com> Subject: Re: INN 2.7.1 death spiral under high load? Date: Fri, 30 Jun 2023 12:36:07 +0000 From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <nsn.20230630081035.779@scatha.ancalagon.de> <87y1k1cw0o.fsf@hope.eyrie.org> <u7mee7$2gqf2$2@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com) Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Jun 2023 12:36:07 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="74748"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:RbzaaXC1tWIvm9SN9AzL4BtffII= sha256:94DCLTihGEWquYYm4VwQop9qq4FH6Mn30bhppP4ATPY= sha1:2aTS8YdayWWeIfNeBq0AbZEbIbA= sha256:jOIcODwe1/upB/wBEmvg6kgY36d/TT+j2A8rc5yuwpI= X-Usenapp: v1.27.1/d - Full License