🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83865

File descriptor limits.

#83865
From: D. Stussy
Date: Mon, 14 Feb 2011 21:21
47 lines
3030 bytes
I'm having a problem with the number of file descriptors.

I'm getting these errors in my logs - wtih 1024 descriptors:

innd: SERVER cant accept RCreader Too many open files
innd: innfeed! cant socketpair Too many open files
innd: innfeed! cant restart Too many open files
innd: tradindexed: cannot open /news/overview/...IDX: Too many open files

...And when I increase the number ("ulimit -n") to above 1,024, I get:

innfeed[5925]: ME fd (1026) looks too big (1024 -- FD_SETSIZE)
  (and the connection is rejected)


OK, so how do I increase the number above 1024 in such a way that I don't
get complaints for not having enough descriptors and not having too many?

I am using a tradindex overview and a CNFS spool.  The FAQ at doc/FAQ in
the INN source (Q 3.5) didn't help as increasing the limit via ulimit
causes the other problem ("fd looks too big").  When it hits the error
trying to (re-)open the history file, INN exits.

This is for a brand new installation - Linux x86 64-bit using the Slackware
13.1 (64-bit) distribution updated through January 25, 2011.

ulimit -a:
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 257433
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) 262144
open files                      (-n) 8192
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 257433
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Probably something obvious here, but I'm just not seeing it....

Technical Details
Message-ID: <ijc6vh$12l$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!news.snarked.org!pool-71-106-210-121.lsanca.dsl-w.verizon.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <ijc6vh$12l$1@snarked.org>
Subject: File descriptor limits.
Date: Mon, 14 Feb 2011 13:21:09 -0800
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!news.snarked.org!pool-71-106-210-121.lsanca.dsl-w.verizon.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 47
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
Injection-Date: Mon, 14 Feb 2011 21:31:29 +0000 (UTC)
Injection-Info: snarked.org;
 posting-host="pool-71-106-210-121.lsanca.dsl-w.verizon.net:71.106.210.121";
 logging-data="1109"; mail-complaints-to="newsmaster+complaints@snarked.org"
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-Original-Bytes: 2836