Article View: news.software.nntp
Article #90438Re: INN 2.7.1 death spiral under high load?
From: Jesse Rehmer
Date: Fri, 30 Jun 2023 03:57
Date: Fri, 30 Jun 2023 03:57
84 lines
4991 bytes
4991 bytes
On Jun 29, 2023 at 7:29:09 PM CDT, "Jesse Rehmer"
<jesse.rehmer@blueworldhosting.com> wrote:
> I've been working on transitioning my tradspool setup to a new server with
> CNFS buffers. Some of my previous threads I asked about ways the increase
> concurrency to respool all the articles from server to server.
>
> When I used innfeed no matter the connection count or dynamic-method chosen,
> it takes 35 days to transmit 256 million articles to the new server. I decided
> to start experimenting with multiple innxmit processes instead. When I split
> my batch file into 20 parts and start the innxmit processes, somewhere between
> 10-15 innxmit processes (so the same number of connection to the remote
> server) the remote server starts using 100% CPU but stops accepting articles
> and prints the following in the logs:
>
> 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 have to forcefully kill innd, it will not respond to any commands, etc. I'm
> wondering exactly what these errors mean. This server is running FreeBSD 13.2,
> has 32GB of physical memory, 64GB of swap (not using any) and INN is the only
> thing running.
>
> With 10 innxmit processes on the remote server running I'm pushing ~18Mbps of
> traffic and according the stats am accepting ~400,000 articles per 10 minutes,
> but I have quite a bit of spare CPU and I/O cycles on both ends and would like
> to go faster, if I can.
>
> Regards,
>
> Jesse
Purposely put it into this state and gathered some more information and the
logs eventually gave more details.
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)
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
Jun 29 22:51:18 gatekeeper innd[16269]: SERVER cant store article: lseek
failed
Jun 29 22:51:18 gatekeeper innd[16269]: CNFS: lseek failed for 'TEXT' offset
0x7c4d40000: Bad file descriptor
Jun 29 22:51:18 gatekeeper innd[16269]: SERVER cant store article: lseek
failed
Jun 29 22:51:18 gatekeeper innd[16269]: CNFS: lseek failed for 'TEXT' offset
0x7c4d40000: Bad file descriptor
Jun 29 22:51:18 gatekeeper innd[16269]: SERVER cant store article: lseek
failed
Jun 29 22:51:18 gatekeeper innd[16269]: news.blueworldhosting.com connected 20
streaming allowed
Jun 29 22:51:18 gatekeeper innd[16269]: CNFS: lseek failed for 'TEXT' offset
0x7c4d40000: Illegal seek
Jun 29 22:51:18 gatekeeper innd[16269]: SERVER cant store article: lseek
failed
Jun 29 22:51:18 gatekeeper innd[16269]: CNFS: lseek failed for 'TEXT' offset
0x7c4d40000: Illegal seek
Jun 29 22:51:18 gatekeeper innd[16269]: SERVER cant store article: lseek
failed
Jun 29 22:51:18 gatekeeper innd[16269]: news.blueworldhosting.com:22 22
sleeping without Waker
Jun 29 22:51:18 gatekeeper innd[16269]: CNFS: CNFSflushallheads: flushing TEXT
Jun 29 22:51:18 gatekeeper innd[16269]: CNFS: CNFSflushallheads: flushing
BINARY
Jun 29 22:51:18 gatekeeper innd[16269]: SERVER throttled Illegal seek writing
SMstore file -- throttling
Jun 29 22:51:18 gatekeeper innd[16269]: SERVER throttle Illegal seek writing
SMstore file -- throttling
Jun 29 22:51:18 gatekeeper innd[16269]: SERVER cant store article: lseek
failed
Technical Details
Message-ID:
<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-mailReferences:
<u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <u7ljr8$4de$1@nnrp.usenet.blueworldhosting.com> Subject: Re: INN 2.7.1 death spiral under high load? Date: Fri, 30 Jun 2023 03:57:28 +0000 From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> References: <u7l7kl$1qqb$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: 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 03:57:28 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; User-Agent: Usenapp for MacOS Cancel-Lock: sha1:5aE8Jf1j/hX7PN+hl4Rd8iLKOpc= sha256:Sw5sLU5Cplta8VeZ3XeBMcD5m+pG6qncsH+KNRtoKGg= X-Usenapp: v1.27.1/d - Full License