Article View: news.software.nntp
Article #90462Re: INN 2.7.1 death spiral under high load?
From: Julien ÉLIE
Date: Sat, 01 Jul 2023 15:44
Date: Sat, 01 Jul 2023 15:44
66 lines
3711 bytes
3711 bytes
Hi Jesse,
>> One thing of note, I have been doing various things over the last year that
>> involve shoving large amount of articles to INN as fast as I can, but it
>> wasn't until I messed with a separate destination machine that has SSD storage
>> and could write a ton faster that I ran into this, so I'm curious to see how
>> things go when both source and destination are on NVMe drives.
Thanks again for your bug report and all your testings!
> Something I just noticed when looking at my Diablo feeder source code... some
> time ago one of the patches submitted increased FD_SETSIZE to 4096. Hmmm. :-)
Oh, thanks for the pointer.
Maybe we should do something like that for INN too as it seems to have
done the work for Diablo. Here is the related patch:
https://github.com/jpmens/diablo/commit/9505abdc9d100e97ef89e2f58482fe9bd49ca215
/*
* Cannot increase FD_SETSIZE on Linux, but we can increase __FD_SETSIZE
* with glibc 2.2 and 2.3 at least. We do this by including
* bits/types.h which defines __FD_SETSIZE first (before any other
include),
* then we redefine __FD_SETSIZE. Ofcourse a user program may NEVER
* include bits/whatever.h directly, so this is a dirty hack!
*/
#if LARGE_FD_SETSIZE > 1024
# ifdef __linux__
# include <features.h>
# if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
# include <bits/types.h>
# undef __FD_SETSIZE
# define __FD_SETSIZE LARGE_FD_SETSIZE
# endif
# else
/* Works on most BSDs */
# define FD_SETSIZE LARGE_FD_SETSIZE
# endif
#endif
So it would for instance mean for INN to say in the documentation that
-DLARGE_FD_SETSIZE=4096 should be given at build time to increase the
limit of the number of file descriptors to 4096.
Having googled a bit, there does not seem to be a more elegant way to
achieve that, unless switching to another method to read sockets
(poll(), libevent or).
Any worries with that piece of code to add into INN?
Jesse, the suggestion for
#define FD_SETSIZE 4096
I gave you in innd/chan.c may not work. The #define should be before
any inclusion of <sys/types.h>, and we do that in several header files.
Maybe it should be in include/inn/libinn.h instead, or maybe in
include/portable/system.h or maybe elsewhere, I should have a deeper look.
--
Julien ÉLIE
« La bête aux douze pieds qui marche sur la tête. » (Nougaro)
Technical Details
Message-ID:
<u7phln$2is6p$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>Show Full Headers
Complete Article Headers
Message-ID: <u7phln$2is6p$1@news.trigofacile.com> Subject: Re: INN 2.7.1 death spiral under high load? Date: Sat, 1 Jul 2023 17:44:55 +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> 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: Sat, 1 Jul 2023 15:44:55 -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:cWdYciuCOhARz+pO3M8GkTj2jz4= sha256:pjQqV9tXqHHqzQfl4TLwkwvLW0iB0OPdsYM8izycZZQ= In-Reply-To: <u7ollu$1jmj$1@nnrp.usenet.blueworldhosting.com>