Thread View: news.software.nntp
5 messages
5 total messages
Started by Brian
Fri, 19 Dec 1997 00:00
NNRP delay
Author: Brian
Date: Fri, 19 Dec 1997 00:00
Date: Fri, 19 Dec 1997 00:00
43 lines
2175 bytes
2175 bytes
What is the best cure for getting NNRPD to spawn faster when someone
connects to port 119? Sometimes it can take as long as 10-15 seconds!
More memory? A certain patch? INNd starts up quick for my peers, but
NNRPd lags......I thought I had read that the "apb" patch was what you
should do for this problem. When I searched for it, I came up with more
than one news patch with "apb" in it.
INN-1.7
Linux
Already have the following installed:
expireover patch
Joe Greco's Timer patch
C ONeill's history cache
his_cache fix
C ONeill's "buffer slam" patch
nnrpd moderated permission (nnrpd)
nc971031 "HEAD" command hang
ar970829 long overview (nnrpd)
innd-postcount patch
his_cache purge
fastrm error message format
expireover !size patch
Clean from spurious ^M
parsecontrol REPLYTO hole patch
Joe Greco cancel patch
Joe Greco cancel patch fix
socket buff increase to 32K
actived
mmaped-overview (overscream)
--
/------------------------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: NNRP delay
Author: Mike Wilson
Date: Sat, 20 Dec 1997 00:00
Date: Sat, 20 Dec 1997 00:00
32 lines
1727 bytes
1727 bytes
Brian wrote: > > What is the best cure for getting NNRPD to spawn faster when someone > connects to port 119? Sometimes it can take as long as 10-15 seconds! > > More memory? A certain patch? INNd starts up quick for my peers, but > NNRPd lags......I thought I had read that the "apb" patch was what you > should do for this problem. When I searched for it, I came up with more > than one news patch with "apb" in it. How many nnrp sessions are running when this happens? How many other sessions are running on that same port? In solaris you can change the amount of in-que requests (I think that is the right term) by starting inetd with a -l and a number I use -l 1024. If you are hitting the "default" limit then stuff like this might be happening. -- --- Mike Wilson To defeat the spam attacks I've decided to place the email addresses I've been forwarding all my spam to in the hopes that the spammers will send it directly to them. So, in no peticular order: no-spam@flash.net, abuse@flash.net, scott@flash.net, postmaster@flash.net, leethur@flash.net, root@flash.net
Re: NNRP delay
Author: Ken Leland
Date: Sat, 20 Dec 1997 00:00
Date: Sat, 20 Dec 1997 00:00
32 lines
1826 bytes
1826 bytes
Brian wrote: > > What is the best cure for getting NNRPD to spawn faster when someone > connects to port 119? Sometimes it can take as long as 10-15 seconds! > > More memory? A certain patch? INNd starts up quick for my peers, but > NNRPd lags......I thought I had read that the "apb" patch was what you > should do for this problem. When I searched for it, I came up with more > than one news patch with "apb" in it. > Well, the one that I believe is relevant can be found in the unoff patches section under inn in ftp.isc.org. (its a patch for 1.5.1) I've had real good luck with this one and its predecessor, the patch for 1.4unoff4. Alan wrote it to specifically solve the problem you have. This patch is a little grody though, so I put it in first and then stitched subsequent patches in around it. Its not really a patch cocktail if you don't have to stir :) A further step you can take, (which I finally took today) is to remove innd from nnrpd instantiation altogether. Practically, this requires you to maintain separate feeder and reader machines though, unless you want to convince all of your peers to feed you on a funny port. (Might not be so bad for small numbers of peers). Ken Leland Monmouth Internet
Re: NNRP delay
Author: Ray Rocker
Date: Sat, 20 Dec 1997 00:00
Date: Sat, 20 Dec 1997 00:00
21 lines
1184 bytes
1184 bytes
In article <349B5357.27BF@shreve.net>, Brian <signal@shreve.net> wrote: >What is the best cure for getting NNRPD to spawn faster when someone >connects to port 119? Sometimes it can take as long as 10-15 seconds! Move innd to another port and run nnrpd out of inetd. I did that and nnrpd comes up like greased lightning now. The whole system runs more smoothly in fact, with innd concentrating on pumping articles and not having to stop and fork/exec every time a reader connects. Downside, of course, is getting all your feeds switched to the new port. (reason #5243545 to have a separate transit server) -- Ray Rocker rocker@datasync.com
Re: NNRP delay
Author: Lars Fenneberg
Date: Sun, 21 Dec 1997 00:00
Date: Sun, 21 Dec 1997 00:00
63 lines
2930 bytes
2930 bytes
Hi all!
Brian wrote:
> What is the best cure for getting NNRPD to spawn faster when someone
> connects to port 119? Sometimes it can take as long as 10-15 seconds!
>
> More memory? A certain patch? INNd starts up quick for my peers, but
> NNRPd lags......I thought I had read that the "apb" patch was what you
> should do for this problem.
>
> INN-1.7
> Linux
We're also seeing this. I don't think that it is a problem
with INN but with Linux' implementation of the execve
system call. Our inn is very fast on sending the
innd banner (if you're allowed as a feed) but if you
issue a "mode reader" the wait begins. I've straced
this and here're the results (times in seconds in <..>
brackets):
Just before the execve... the fork in innd goes quite fast:
[...]
getsockopt(16, IPPROTO_IP4, [16], [0]) = 0 <0.000056>
setsockopt(16, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 <0.000051>
ioctl(16, FIONBIO, [0]) = 0 <0.000048>
fork() = 22623 <0.015371>
But then the exec of the nnrpd program in the new process:
dup2(16, 0) = 0 <0.000199>
dup2(16, 1) = 1 <0.000230>
dup2(16, 2) = 2 <0.000112>
close(16) = 0 <0.000047>
fcntl(0, F_SETFD, 0) = 0 <0.000049>
fcntl(1, F_SETFD, 0) = 0 <0.000047>
fcntl(2, F_SETFD, 0) = 0 <0.000047>
nice(4) = 0 <0.000047>
setgid(13) = 0 <0.000046>
setuid(9) = 0 <0.000046>
execve("/usr/sbin/in.nnrpd", ["/usr/sbin/in.nnrpd",
"-s
"...], [/* 6 vars */]) = 0 <28.574605>
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40006000 <0.000067>
[...]
Do you see that? It took over 28 seconds. If nnrpd is started
via inetd then the execve is almost instantinious(sp?).
I think it has something to do with the large memory
footprint (mostly mmap'ed memory) of innd.
Any Linux kernel hackers around that like to comment?
Lars.
--
Lars Fenneberg, lf@elemental.net (private), lf@cityline.net (work)
pgp fingerprint D1 28 F1 FF 3C 6B C0 27 CC 9C 6C 09 34 0A 55 18
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