Article View: news.software.nntp
Article #83874Re: File descriptor limits.
From: Richard Kettlewell
Date: Wed, 16 Feb 2011 09:13
Date: Wed, 16 Feb 2011 09:13
34 lines
3035 bytes
3035 bytes
Ralf Dรถblitz <doeblitz@doeblitz.net> writes:
> D. Stussy <spam+newsgroups@bde-arc.ampr.org> wrote:
>> 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)
> [...]
>> Probably something obvious here, but I'm just not seeing it....
>
> You lost. Looks like someone is using select() and your libc is
> compiled with a limit of 1024 for the file descriptor set used by
> that syscall. Recompile the C library (har har) or switch to using
> epoll() or something like that (system-specific).
On many platforms it's sufficient to rebuild your program with an
explicit, larger, definition for FD_SETSIZE; rebuilding the whole Libc
is not required.
Glibc makes this unusually awkward, for some reason, unconditionally
using an internal __FD_SETSIZE and explicitly ignoring any attempts to
override it.
--
http://www.greenend.org.uk/rjk/
Technical Details
Message-ID:
<87lj1g4a0y.fsf@araminta.anjou.terraraq.org.uk>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.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!163.1.2.201.MISMATCH!feeds.news.ox.ac.uk!news.ox.ac.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.anjou.terraraq.org.uk!.POSTED!not-for-mailReferences:
<ijc6vh$12l$1@snarked.org> <ijd9rf$vl6$2@selene.doeblitz.net>Show Full Headers
Complete Article Headers
Message-ID: <87lj1g4a0y.fsf@araminta.anjou.terraraq.org.uk>
Subject: Re: File descriptor limits.
Date: Wed, 16 Feb 2011 09:13:33 +0000
From: Richard Kettlewell <rjk@greenend.org.uk>
References: <ijc6vh$12l$1@snarked.org> <ijd9rf$vl6$2@selene.doeblitz.net>
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.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!163.1.2.201.MISMATCH!feeds.news.ox.ac.uk!news.ox.ac.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.anjou.terraraq.org.uk!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Anjou
Lines: 34
NNTP-Posting-Host: araminta.anjou.terraraq.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: araminta.anjou.terraraq.org.uk 1297847613 14671 172.17.207.18 (16 Feb
X-Complaints-To: usenet@sfere.greenend.org.uk
NNTP-Posting-Date: Wed, 16 Feb 2011 09:13:33 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;
ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY, {EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Cancel-Lock: sha1:7G5pe4W8OM3xPYRy7b/lwtT2VP0=
X-Original-Bytes: 2809