Thread View: news.software.nntp
9 messages
9 total messages
Started by Brian
Sun, 18 Jan 1998 00:00
Help, need file descriptors (linux)
Author: Brian
Date: Sun, 18 Jan 1998 00:00
Date: Sun, 18 Jan 1998 00:00
92 lines
4007 bytes
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.|
\--------------------------------|-------------------------------------/
Re: Help, need file descriptors (linux)
Author: Jesper Skriver
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
22 lines
1516 bytes
1516 bytes
Brian <signal@shreve.net> writes: >Thanks. Do you find that the 256 limit imposed by Linux is frequently >reached with most news servers? I only service about 20 simultaneous >readers at most, and have 4 peers right now each with 5 streams or so >incoming and outgoing. I didn't think I would be hitting those limits >so soon. Well, we normally run with ~250 incomming connections to our INN-CNFS feeder box, and ~80 peers we feed, with 2-10 connctions to each. Our readerbox peaks at about 450 concurrent readers, so some people has a need for more filedescriptors. -- Jesper Skriver (JS249-RIPE), Network manager Tele Danmark Internet (TDI1-RIPE) One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone bind them.
Re: Help, need file descriptors (linux)
Author: Peter Augustin
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
30 lines
1793 bytes
1793 bytes
Brian schrieb:
> Thanks. Do you find that the 256 limit imposed by Linux is frequently
> reached with most news servers? I only service about 20 simultaneous
> readers at most, and have 4 peers right now each with 5 streams or so
> incoming and outgoing. I didn't think I would be hitting those limits
> so soon.
Have you ever had these lines in your syslog:
Dec 31 09:07:02 readme innd: uni buffered
Dec 31 09:07:03 readme innd: atnet buffered
Dec 31 09:07:04 readme innd: kkb buffered
Dec 31 09:07:05 readme innd: rmk buffered
Dec 31 09:08:04 readme innd: uni buffered
Dec 31 09:08:07 readme innd: atnet buffered
Dec 31 09:08:07 readme innd: kkb buffered
Dec 31 09:08:08 readme innd: rmk buffered
If yes, you ran out of filedescriptors. If not, I wonder why :)
On my machine these lines appear once a week, after restarting innd they
are gone.
--
Realname: Peter Augustin EMail: acp@inode.at
Homepage: http://www.inode.at/acp/ IRC: ACP #inode
Re: Help, need file descriptors (linux)
Author: Andrew
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
17 lines
1343 bytes
1343 bytes
Brian <signal@shreve.net> wrote: > 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: Edit /usr/src/linux/include/linux/limits.h. Line 9 should define OPEN_MAX. Up it to 1024, recompile, and you should be good to go. -- Andrew O. Smith - <aos@insync.net> | "Especially if your kids enjoy Sysadmin, Insync Internet Services | jokes about hashish and sexy, Houston, Texas, USA | sexy dancers." --Mr. Laupin
Re: Help, need file descriptors (linux)
Author: Brian
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
35 lines
2091 bytes
2091 bytes
Peter Augustin wrote: > > Miquel van Smoorenburg schrieb: > > > It's better to use http://www.linux.org.za/filehandle.patch.linux > > Gives you up to 3000 file descriptors per process. > > It would be great if anybody can confirm that he was able to apply the > patch. In my case it didn't work, the patch failed (2.0.32). The author > of the patch didn't reply my Email, so anybody else can help me? > > -- I applied the patch just fine to 2.0.33. It should work fine on .32. Use a clean source tree and see what happens. Also read the README, which tells you the last hunk must be manually given a pathname: /usr/include/gnu/types.h Brian > > Realname: Peter Augustin EMail: acp@inode.at > Homepage: http://www.inode.at/acp/ IRC: ACP #inode -- /------------------------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----------------------------/
Re: Help, need file descriptors (linux)
Author: Miquel van Smoorenburg
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
23 lines
1690 bytes
1690 bytes
In article <34C37384.EB702AE8@inode.at>, Peter Augustin <acp@inode.at> wrote:
>Miquel van Smoorenburg schrieb:
>
>> It's better to use http://www.linux.org.za/filehandle.patch.linux
>> Gives you up to 3000 file descriptors per process.
>
>It would be great if anybody can confirm that he was able to apply the
>patch. In my case it didn't work, the patch failed (2.0.32). The author
>of the patch didn't reply my Email, so anybody else can help me?
Well it patches cleanly on 2.0.3x, but it fails on the last hunk where
it tries to patch /usr/include/gnu/types.h. You can safely ignore
that. However with the default include files and libraries you should
not try to use more then 1024 file descriptors without being _very_
careful (select() and sizeof(fd_setsize) come to mind!).
Mike.
--
Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed
miquels@cistron.nl | awake all night wondering if there is a doG
Re: Help, need file descriptors (linux)
Author: Peter Augustin
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
16 lines
1262 bytes
1262 bytes
Miquel van Smoorenburg schrieb:
> It's better to use http://www.linux.org.za/filehandle.patch.linux
> Gives you up to 3000 file descriptors per process.
It would be great if anybody can confirm that he was able to apply the
patch. In my case it didn't work, the patch failed (2.0.32). The author
of the patch didn't reply my Email, so anybody else can help me?
--
Realname: Peter Augustin EMail: acp@inode.at
Homepage: http://www.inode.at/acp/ IRC: ACP #inode
Re: Help, need file descriptors (linux)
Author: Brian
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
36 lines
2071 bytes
2071 bytes
Miquel van Smoorenburg wrote: > > >Edit /usr/src/linux/include/linux/limits.h. Line 9 should define OPEN_MAX. > >Up it to 1024, recompile, and you should be good to go. > > It's better to use http://www.linux.org.za/filehandle.patch.linux > Gives you up to 3000 file descriptors per process. Thanks. Do you find that the 256 limit imposed by Linux is frequently reached with most news servers? I only service about 20 simultaneous readers at most, and have 4 peers right now each with 5 streams or so incoming and outgoing. I didn't think I would be hitting those limits so soon. Brian > > Mike. > -- > Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed > miquels@cistron.nl | awake all night wondering if there is a doG -- /------------------------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----------------------------/
Re: Help, need file descriptors (linux)
Author: Miquel van Smoorenburg
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
22 lines
1541 bytes
1541 bytes
In article <69um9l$10v$3@synthemesc.insync.net>,
Andrew <aos@insync.net> wrote:
>Brian <signal@shreve.net> wrote:
>> 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:
>
>Edit /usr/src/linux/include/linux/limits.h. Line 9 should define OPEN_MAX.
>Up it to 1024, recompile, and you should be good to go.
It's better to use http://www.linux.org.za/filehandle.patch.linux
Gives you up to 3000 file descriptors per process.
Mike.
--
Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed
miquels@cistron.nl | awake all night wondering if there is a doG
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads