Article View: news.software.nntp
Article #25370Re: actived errors
From: USENET news
Date: Tue, 20 Jan 1998 00:00
Date: Tue, 20 Jan 1998 00:00
50 lines
2817 bytes
2817 bytes
In article <69upen$2ud$3@synthemesc.insync.net>,
Andrew <aos@insync.net> wrote:
>Trevor Fiatal <trevor@home.net> wrote:
>> Had to log in and check, 'cause I couldn't remember.
>
>Bad sysadmin. Bad, bad sysadmin. You're supposed to dream these things.
>:-)
>
>> Anyway, it's at 256 right now, and I've been meaning to crank it up further.
>> I'll try 1023 next, and see if that does the trick.
>
>You might want to make a system-wide 1023. That'll prevent any future
>problems if you install new software and/or forget to raise the limit in
>a script.
>
>A nice little 'set rlim_fd_cur=0x3ff' in /etc/system and a reboot should
>do it.
Given that stdio breaks on Solaris 2 for file descriptors over 255, this
thread raises two questions:
(a) does INN (and common add-ons, like actived) take adequate precautions to
ensure that anything involving stdio only ever uses a sufficiently
low-numbered file descriptor?
(b) what may (frequently? occasionally?) break elsewhere in the system due
to taking no special precautions regarding stdio and file descriptors, and
being sabotaged by an increased limit (possibly having worse effects than
simply hitting the limit)? Since programs failing to run out of descriptors
is rare even with lower limits, I suppose the main problem may be programs
that need a lot of open files, check the limits and work within the range
available, but maybe fail to allow for the stdio limitation if the max FD is
larger.
These concerns have made me wary of increasing the limits beyond 255
system-wide, or even just for INN (or other software that might find a
larger limit useful).
[From discussion in the context of the Squid web cache, I think the next
hurdle on Solaris 2 is 1023 or 1024 - if you allow more open files than that,
2, you can't use select() on higher numbered descriptors - you have to use
poll() instead.]
John Line
--
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk (alias {newsmaster,news,usenet}@news.cam.ac.uk)
Technical Details
Message-ID:
<6a1r2m$aou$1@lyra.csx.cam.ac.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.mbox.zip!not-for-mailReferences:
<Pine.LNX.3.96.980118131154.13442A-100000@mercury.shreve.net> <69um3c$10v$2@synthemesc.insync.net> <34c9e4a3.12620803@news.rdc1.sfba.home.com> <69upen$2ud$3@synthemesc.insync.net>Show Full Headers
Complete Article Headers
Message-ID: <6a1r2m$aou$1@lyra.csx.cam.ac.uk> Subject: Re: actived errors Date: Tue, 20 Jan 1998 00:00:00 +0000 From: news@news.cam.ac.uk (USENET news) References: <Pine.LNX.3.96.980118131154.13442A-100000@mercury.shreve.net> <69um3c$10v$2@synthemesc.insync.net> <34c9e4a3.12620803@news.rdc1.sfba.home.com> <69upen$2ud$3@synthemesc.insync.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.mbox.zip!not-for-mail X-Deja-AN: 317629478 Organization: Computing Service, Cambridge University, England Newsgroups: news.software.nntp