🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90457

Re: INN 2.7.1 death spiral under high load?

#90457
From: Julien ÉLIE
Date: Sat, 01 Jul 2023 06:26
46 lines
2735 bytes
Hi Jesse,

> In the man page of select(2) for FreeBSD, I see:
> 
>  The default size of FD_SETSIZE is currently 1024. In order to accommo-
>  date programs which might potentially use a larger number of open files
>  with select(), it is possible to increase this size by having the program
>  define FD_SETSIZE before the inclusion of any header which includes
>  <sys/types.h>.
> 
> There's maybe something to do regarding that as we do not do that...
> Nonetheless, it does not explain the previous issue with file 
> descriptors < 1024.

Could this be tried please?

The sleep set is just after the read set in memory, and I am under the 
impression that when FD_SET is used on a higher file descriptor than 
1024 by select() to advertise that this file descriptor should be read, 
it just marks that number minus 1024 as sleeping in the sleep set.  The 
length of the set is not large enough.


You could either try to rebuild INN with 4096 set in FD_SETSIZE in your 
system headers /usr/include/sys/select.h (and then revert the change 
after the build, just to test) or try this one for innd/chan.c only:

--- a/innd/chan.c
+++ b/innd/chan.c
@@ -17,6 +17,9 @@

  /* Needed on AIX 4.1 to get fd_set and friends. */
  #ifdef HAVE_SYS_SELECT_H
+#    ifndef FD_SETSIZE
+#        define FD_SETSIZE 4096
+#    endif
  #    include <sys/select.h>
  #endif


Please tell if it happens to work better.

-- 
Julien ÉLIE

« Un clavier azerty en vaut deux. »
Technical Details
Message-ID: <u7ogvd$2ifbq$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-mail
References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <u7mluk$1tqm$1@nnrp.usenet.blueworldhosting.com> <u7mmkc$19ks$1@nnrp.usenet.blueworldhosting.com> <u7mn40$o5i$1@nnrp.usenet.blueworldhosting.com> <u7mpcq$16ug$1@nnrp.usenet.blueworldhosting.com> <u7mtup$2h67a$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <u7ogvd$2ifbq$1@news.trigofacile.com>
Subject: Re: INN 2.7.1 death spiral under high load?
Date: Sat, 1 Jul 2023 08:26:53 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <u7l7kl$1qqb$1@nnrp.usenet.blueworldhosting.com> <u7mluk$1tqm$1@nnrp.usenet.blueworldhosting.com> <u7mmkc$19ks$1@nnrp.usenet.blueworldhosting.com> <u7mn40$o5i$1@nnrp.usenet.blueworldhosting.com> <u7mpcq$16ug$1@nnrp.usenet.blueworldhosting.com> <u7mtup$2h67a$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-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 06:26:53 -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:p4VMHo7G7IWwXdhZQoLDyjGx1Kg= sha256:aL6k5IOUGGfqaR7wlqkSRPt+GSHhsF/gTqsf8vOYU9g=
In-Reply-To: <u7mtup$2h67a$1@news.trigofacile.com>