Article View: news.software.nntp
Article #90444Re: INN 2.7.1 death spiral under high load?
From: Julien ÉLIE
Date: Fri, 30 Jun 2023 11:31
Date: Fri, 30 Jun 2023 11:31
54 lines
2932 bytes
2932 bytes
Hi Jesse,
> When running truss I see this happening at a high rate and nothing else:
>
> select(1047,{ 12 14 15 17 },{ 1027 1028 1030 1031 1035 1036 1037 1041 },0x0,{
> 198.000000 }) = 8 (0x8)
> sigprocmask(SIG_SETMASK,{ SIGHUP|SIGPIPE|SIGTERM|SIGCHLD|SIGUSR1 },0x0) = 0
> (0x0)
> sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
Seems like when all the channels are sleeping, the loop eats the CPU
with tons of select()?
We would need understanding why they are all in sleep state whereas
you're pushing bunches of articles.
At the very end of innd/chan.c:
while (1) {
select(...);
/* If there is nothing to do, break out.
FIXME: Do we really want to keep going until sleep_count is
zero? That means that when there are sleeping channels, we do
a full traversal every time through the select loop. */
if (count == 0 && channels.sleep_count == 0)
break;
} while (fd != startpoint);
> After a few minutes the following is printed to news.notice:
>
> Jun 29 22:51:18 gatekeeper innd[16269]: news.blueworldhosting.com:647 NCmode
> "MODE STREAM" received
> Jun 29 22:51:18 gatekeeper innd[16269]: free:-1 20 free but was in SMASK
> Jun 29 22:51:18 gatekeeper innd[16269]: CNFS: lseek failed for 'TEXT' offset
> 0x7c4d40000: Bad file descriptor
It would be interesting to activate trace logs on channels.
=> ctlinnd trace i y
(on the receiving peer)
and then you start the innxmit processes on the sending peer.
Maybe we'll have interesting information about what's going on.
You'll have to make sure the debug level for news is correctly logged
(and not discarded) in your syslog configuration.
--
Julien ÉLIE
« Sème du bonheur dans le champ du voisin, tu seras surpris de constater
ce que le vent fera produire au tien. » (Juliette Saint Gelais)
Technical Details
Message-ID:
<u7mee5$2gqf2$1@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-mailReferences:
<u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <u7ljr8$4de$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <u7mee5$2gqf2$1@news.trigofacile.com> Subject: Re: INN 2.7.1 death spiral under high load? Date: Fri, 30 Jun 2023 13:31:17 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <u7ljr8$4de$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-mail Newsgroups: news.software.nntp Organization: Groupes francophones par TrigoFACILE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Jun 2023 11:31:17 -0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cancel-Lock: sha1:YsZkjMV6QULcCUDdJxptadEUfG0= sha256:jYJR53l/v2sdO7uiGhTLdxo2vqYGa8TDlqwW2XSzOWU= In-Reply-To: <u7ljr8$4de$1@nnrp.usenet.blueworldhosting.com>