Article View: news.software.nntp
Article #84271Re: Rebuilding overview
From: Julien ÉLIE
Date: Wed, 31 Aug 2011 21:21
Date: Wed, 31 Aug 2011 21:21
37 lines
2513 bytes
2513 bytes
Hi Steve,
> As a side note: My Debian Squeeze server runs rsyslog [...]
>
> After some investigation and feedback from Julien, it seems that the
> artificial 1024 descriptor limit is caused by inn's use of 'select'. In
> innd.c though, the limit will reflect the system limit up to a hard
> ceiling of 5000 if rlimitnofile is left at its default (-1).
Having yet another look at this issue, I wonder whether there is not a
problem with BSD systems.
I read in http://linux.die.net/man/2/setrlimit that RLIMIT_OFILE is the
BSD name for RLIMIT_NOFILE.
In lib/fdlimit.c, we never define RLIMIT_OFILE and only use:
#if HAVE_GETRLIMIT && defined(RLIMIT_NOFILE)
int
getfdlimit(void)
{
struct rlimit rl;
if (getrlimit(RLIMIT_NOFILE, &rl) < 0)
return -1;
return rl.rlim_cur;
}
[...]
Maybe we should define RLIMIT_NOFILE to RLIMIT_OFILE if the first one is
not set and the second one is? This way, lib/fdlimit.c would work on
BSD systems the way it is expected to. (?)
--
Julien ÉLIE
« Medicus curat, natura sanat. »
Technical Details
Message-ID:
<j3m8k7$5e8$1@news.trigofacile.com>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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.stben.net!news.trigofacile.com!.POSTED.aaubervilliers-552-1-148-236.w81-249.abo.wanadoo.fr!not-for-mailReferences:
<slrnis7i5f.bet.steve@news.mixmin.net> <iq1e3h$59m$1@news.trigofacile.com> <slrnit9m74.23b.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <j3m8k7$5e8$1@news.trigofacile.com> Subject: Re: Rebuilding overview Date: Wed, 31 Aug 2011 23:21:11 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <slrnis7i5f.bet.steve@news.mixmin.net> <iq1e3h$59m$1@news.trigofacile.com> <slrnit9m74.23b.steve@news.mixmin.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.stben.net!news.trigofacile.com!.POSTED.aaubervilliers-552-1-148-236.w81-249.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 31 Aug 2011 21:21:11 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-552-1-148-236.w81-249.abo.wanadoo.fr:81.249.135.236"; logging-data="5576"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr; In-Reply-To: <slrnit9m74.23b.steve@news.mixmin.net> Lines: 36 X-Original-Bytes: 2224