Article View: news.software.nntp
Article #90477Re: INN 2.7.1 death spiral under high load?
From: Julien ÉLIE
Date: Wed, 05 Jul 2023 19:41
Date: Wed, 05 Jul 2023 19:41
52 lines
3826 bytes
3826 bytes
Hi Russ, >> I've came accross this page: >> https://support.oracle.com/knowledge/Sun%20Microsystems/1005979_1.html > >> saying that the default fd limit is 256 up to Solaris 11.4 SRU 26. > >> There is a difference between the *stdio* and *select* interfaces, which >> certainly explains the point in the recommendation of 256 for rlimitnofile >> for Solaris. > >> stdio handles up to 256 file descriptors up to Solaris 10, and 32-bit >> Solaris 11.3. For 64-bit Solaris 11.x, and 32-bit Solaris 11.4, stdio no >> longer has that limit. > >> I then believe the recommandation for rlimitnofile should remain 256, and >> can be increased only for Solaris 11.4 or 64-bit Solaris 11.0-11.3. >> If of course I understand well what is said in the Oracle support page. > > INN does some terrifying things to try to handle cases where file > descriptors higher than 256 are possible but it still wants to use stdio. > I'm not sure how well that stuff works in practice, but it's been there > for forever and I think it's still enabled. See lib/reservefd.c. Oh indeed, I had not noticed this lib/reservefd.c file. innd reserves 4 or 5 file descriptors at startup and this is unconditionally enabled. It still works as otherwise a fatal error is returned, and Fopen()/Fclose() are still in use for these file descriptors for history (file, stats and dbz). 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... > In theory, this is supposed to allow increasing the file descriptor limit > above 256 on platforms such as Solaris that have this stdio limitation, > and it did work at least at one time. Note that, critically, it only is > implemented for innd; all the other programs have to either not use stdio > or have to not open more than 256 file descriptors. I think that might > apply to everything? innfeed has its own parameter (stdio-max) to reserve the given number of file descriptors for stdio. It is not used by default, but one can set it so that network socket file descriptors are always higher than this number. -- 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:
<u84h0g$2s5q9$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> <u7mpcq$16ug$1@nnrp.usenet.blueworldhosting.com> <u7mtup$2h67a$1@news.trigofacile.com> <u7ogvd$2ifbq$1@news.trigofacile.com> <u7oljn$1chb$1@nnrp.usenet.blueworldhosting.com> <u7ollu$1jmj$1@nnrp.usenet.blueworldhosting.com> <u7phln$2is6p$1@news.trigofacile.com> <871qhrd13m.fsf@hope.eyrie.org> <u7u9tc$2ls19$1@news.trigofacile.com> <87fs65ouay.fsf@hope.eyrie.org> <u7uu1r$2nolf$1@news.trigofacile.com> <u80rje$2p8sd$1@news.trigofacile.com> <87a5wbnyjj.fsf@hope.eyrie.org>Show Full Headers
Complete Article Headers
Message-ID: <u84h0g$2s5q9$1@news.trigofacile.com> Subject: Re: INN 2.7.1 death spiral under high load? Date: Wed, 5 Jul 2023 21:41:04 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <u7mpcq$16ug$1@nnrp.usenet.blueworldhosting.com> <u7mtup$2h67a$1@news.trigofacile.com> <u7ogvd$2ifbq$1@news.trigofacile.com> <u7oljn$1chb$1@nnrp.usenet.blueworldhosting.com> <u7ollu$1jmj$1@nnrp.usenet.blueworldhosting.com> <u7phln$2is6p$1@news.trigofacile.com> <871qhrd13m.fsf@hope.eyrie.org> <u7u9tc$2ls19$1@news.trigofacile.com> <87fs65ouay.fsf@hope.eyrie.org> <u7uu1r$2nolf$1@news.trigofacile.com> <u80rje$2p8sd$1@news.trigofacile.com> <87a5wbnyjj.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-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: Wed, 5 Jul 2023 19:41:04 -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:Mmr/mCWxrL9lCfNjMnw+IdbRYXw= sha256:UeYwAuraKAsnFXMhbYLUFr9cF8icHzyz8WZryBv7jDo= In-Reply-To: <87a5wbnyjj.fsf@hope.eyrie.org>