Article View: news.software.nntp
Article #90480Re: INN 2.7.1 death spiral under high load?
From: Russ Allbery
Date: Wed, 05 Jul 2023 19:46
Date: Wed, 05 Jul 2023 19:46
22 lines
1799 bytes
1799 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
> I'm wondering whether this is still useful nowadays (as it is only used
> for 5 file descriptors in innd), and we couldn't just use
> fopen()/fclose() for them...
I believe the problem is that some of the things for which it uses stdio
(most notably history) might be closed and reopened, and if a new incoming
connection is handled between the close and reopen (I'm not sure if that's
possible), it could grab that low-numbered file descriptor and leave no
available file descriptors lower than 256, in which case stdio on those
platforms will fail.
The chosen number of file descriptors is intended to be enough for history
plus whatever else used stdio (I think probably the active file and
overview, although I don't think overview uses stdio any more).
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87pm56kuox.fsf@hope.eyrie.org>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: <87pm56kuox.fsf@hope.eyrie.org> Subject: Re: INN 2.7.1 death spiral under high load? Date: Wed, 05 Jul 2023 12:46:38 -0700 From: Russ Allbery <eagle@eyrie.org> 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: The Eyrie Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: hope.eyrie.org; User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cancel-Lock: sha1:t2+PZoVWjoil+26Fs0zcku3qtG0=