🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25301

Help, need file descriptors (linux)

#25301
From: Brian
Date: Sun, 18 Jan 1998 00:00
92 lines
4007 bytes


I find that the linux kernel lacks enough file descriptors for large
servers, such as our news server.  I am using 2.0.33, and I beleive it has
a "per process" limit of 256 file descriptors.  I think I am running out.
I know how to increase the total system wide file descriptors, but thats
not the problem:

news:/proc/sys/kernel$ cat file-nr
240
news:/proc/sys/kernel$ cat file-max
4096

When they say there is a "per process" limit of 256 file descriptors, does
that mean a parent plus all its children? Or does each child get 256 as
well?  I am running out.  how do I increase per process limit?

Below is a posting where our "actived" server was running out of fd's.
The replies I am getting are telling me its fd related.  In other UNIX
OS's (Solaris, BSD, etc), it is trivial to increase per-process fd's, how
can this be done in Linux?

Linux has not done as well as other OS's in the news server world, but
I am going to prove otherwise :)

Appreciate your time,

Brian

/-------------------------- signal@shreve.net -----------------------------\
| Brian Feeny                | USR TC Hubs | ShreveNet Inc. (318)222-2638  |
| Systems Administrator      | Perl, Linux | Web hosting, online stores,   |
| ShreveNet Inc.             |  USR Pilot  | Dial-Up 14.4-56k, ISDN & LANs |
| 89 CRX DX w/MPFI, lots of  |-=*:Quake:*=-| http://www.shreve.net/        |
| mods/Homepage coming soon  |LordSignal/SN| Quake server: 208.206.76.3    |
\-------------------------- 318-222-2638 x109 -----------------------------/


---------- Forwarded message ----------
Date: Mon, 19 Jan 1998 03:21:09 GMT
From: Trevor Fiatal <trevor@corp.home.net>
To: Brian <signal@shreve.net>
Subject: Re: actived errors
Newsgroups: news.software.nntp

[posted to news.software.nntp and mailed to Brian]

On Sun, 18 Jan 1998 13:13:34 -0600, Brian  <signal@shreve.net>
spake thusly:

>I started seeing these in news.err:
>
>Jan 18 02:46:41 news nnrpd[26835]: 208.214.44.215 actived socket returned
>a different request-ID 866539081/866437660
>Jan 18 02:46:42 news nnrpd[26835]: 208.214.44.215 actived socket returned
>a different request-ID 866539081/866437660
>Jan 18 02:46:43 news nnrpd[26835]: 208.214.44.215 actived socket returned
>a different request-ID 866437660/866773852
>.
>.
>.
>
>There were a few of those xxx.xxx.xxx.xxx is NOT using actived errors as
>well. What is the general cause of this?

Could be two separate problems.

The first ('...returned a different...') is, I believe, due to a shortage of
file descriptors.  I've reduced, but not completely eliminated, this problem
on my big Solaris boxen by upping the number of file descriptors at the
beginning of rc.news.

The second means that an nnrpd process could not get a response from actived,
and is falling back to using old-style active-file access.  This could be due
to two things: (a) actived is out of fd's and can't open a new socket to
process the request, or (b) actived isn't running at all.

Helpful?

-Trevor

--
/--------------------------------=-------------------------------------\
|Trevor Fiatal - trevor@home.net | WANTED: Experienced Usenet and mail |
|Internet Applications Architect | systems admin. Relocation available |
|@Home Network, SF Bay Area, CA  | for right candidate. Email for info.|
\--------------------------------|-------------------------------------/



Technical Details
Message-ID: <Pine.LNX.3.96.980118220737.4382G-100000@mercury.shreve.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

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.980118220737.4382G-100000@mercury.shreve.net>
Subject: Help, need file descriptors (linux)
Date: Sun, 18 Jan 1998 00:00:00 +0000
From: Brian <signal@shreve.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: 317241831
Content-Type: TEXT/PLAIN; charset=US-ASCII
Organization: ShreveNet
Mime-Version: 1.0
Newsgroups: news.software.nntp