Thread View: news.software.nntp
6 messages
6 total messages
Started by Alan Brown
Thu, 23 May 1996 00:00
Linux unoff 4 experiences and queries
Author: Alan Brown
Date: Thu, 23 May 1996 00:00
Date: Thu, 23 May 1996 00:00
43 lines
2278 bytes
2278 bytes
I've recompiled my unoff 4 news box with hashes set to 32768 in order to gauge the difference. So far I see none. unoff 4 seems faster overall than the unoff2 I was running, but expiry is much longer (though about 25% shorter than it was) This has been reported by many people on many platforms so i don't think that it's our imaginations... ;) Another problem which seems to have gotten worse: People are reporting timeouts connecting to the server (ie, before INN notices them and spawns nnrpd) and timeout/disconnections from the server while retrieving headers and/or articles. 90% of my readers are dialin using Free Agent - it may be the batch nature of this type of access requires some nnrpd tuning. Anyone got any ideas? The connection timeouts are usually accompanied by a "can't get hostbyaddr, connection reset by peer" message. From experimentation, Agent's connect timeout is set to 30 seconds after a IP linkup is established. This should be more than adequate time for the server to spawn nnrpd IMO. The platform is a 64Mb i486 dx2/66 using a single 4Gb barracuda as spool and with os, overviews, logs and news libs all on separate spindles. Anyone got any ideas? One thing that springs to mind is ulimits. Anyone know how to alter them for ~news on a Linux box? Add them to rc.news? Put the changes in rc.local just before? Edit ~news/.profile? AB -- "But you can't say they have arrived to classify your nervous lies What's right, what's not, what may not be. Don't try your tricky tests on me For I won't live in fear my friend - that every day could be my end"
Re: Linux unoff 4 experiences and queries
Author: Clayton O'Neill
Date: Wed, 22 May 1996 00:00
Date: Wed, 22 May 1996 00:00
23 lines
1693 bytes
1693 bytes
On Wed, 22 May 1996 13:02:03 -0400, Evan Champion <evanc@synapse.net> wrote: >> I've recompiled my unoff 4 news box with hashes set to 32768 in order >> to gauge the difference. So far I see none. unoff 4 seems faster overall >> than the unoff2 I was running, but expiry is much longer (though about 25% >> shorter than it was) >Just out of curiousity, has anyone tried playing around with the bucket size on > a >large spool to see what the "optimum" bucket size is? I did, and you really see most of the gain by going to 2k or 4k. However, I set mine to 32k for two reasons: It is marginally faster, and the memory penalty is minimal on my platform (Linux). And this way I don't really have to worry about it if the number of newsgroups doubles for some reason. -- ------------------------------------------------------------------------- Clayton O'Neill Business--> Premier One Inc whatever@oneill.net clayton@premier.net http://www.oneill.net <--Personal http://www.premier.net
Re: Linux unoff 4 experiences and queries
Author: Evan Champion
Date: Wed, 22 May 1996 00:00
Date: Wed, 22 May 1996 00:00
14 lines
1088 bytes
1088 bytes
Alan Brown wrote: > > I've recompiled my unoff 4 news box with hashes set to 32768 in order > to gauge the difference. So far I see none. unoff 4 seems faster overall > than the unoff2 I was running, but expiry is much longer (though about 25% > shorter than it was) Just out of curiousity, has anyone tried playing around with the bucket size on a large spool to see what the "optimum" bucket size is? Evan
Re: Linux unoff 4 experiences and queries
Author: Alan Brown
Date: Wed, 29 May 1996 00:00
Date: Wed, 29 May 1996 00:00
100 lines
4631 bytes
4631 bytes
Hmmm. following up my own posts....
>Another problem which seems to have gotten worse:
>
>People are reporting timeouts connecting to the server (ie, before INN
>notices them and spawns nnrpd) and timeout/disconnections from the server
>while retrieving headers and/or articles.
The connection timeouts turned out to be due to increased speed of our
streaming newsfeeds sucking away INN's attention. I'm still trying to
track down what's causing the timeout/disconnects once nnrpd is running
and feeding articles to the reader.
Startup timeouts can be avoided by setting up something separate to spawn
nnrpd (move incoming feeds to another port and/or setup inetd to listen and
spawn on another port such as 1119), or as I discovered, installing
Crosspost. The performance increase was astounding. From nnrpd startup
times in excess of 2 minutes from connect, I've gone down to a maxiumum
tested startup delay of 22 seconds.
Having said that, the suggested newfeeds entry in the man page has a
minor error. (Has this been discussed before Dave?)
Theres also nothing to be found in the FAQ on this program by grepping
for "crosspost" (heiko?)
Here's what my entry looks like:
CROSSPOST!:*:Tc,Ap,WR:/usr/local/news/bin/crosspost -s -
The -s is important - crosspost running without it does a disk sync after
every link written, which is a serious slowdown, but having added the -s
you also need the stdin switch. Syncing after every write is much safer
of course, but IMO losing a few articles/links in a crash is tolerable.
I knocked up a couple cleanup scripts based around the man page
suggestions too. These run hourly and daily on my system, shlocked to
prevent anything going haywire.
The first script will generate a *lot* of error messages saying that
symlinking couldn't take place. This is normal behaviour, but should
probably be taken care of properly in crosspost itself. (Jerry?)
I suspect the history preen would be a lot faster if called with a switch
which enabled checking for links rather than blindly trying to write over
existing ones but on a 2 million line history file it only took an hour to
run anyway. :)
If the second script ever actually does any work your system is probably
in serious trouble... :)
======
# crosspost.preen-history
#!/bin/sh
# script to run crosspost to preen the disks/history file, ensuring that
# only one copy is running.
# AJB 29 May 1996
LOCK=/usr/local/news/LOCK.crosspost.history
trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
if /usr/local/news/bin/shlock -p $$ -f ${LOCK} ; then
# Do appropriate work
/usr/bin/awk < /usr/lib/news/history -F ' ' '(NF > 2){print $3}' | /usr/lib/news/bin/crosspost -s -
else
echo Locked by `cat ${LOCK}`
fi
exit 0
========
#crosspost.flush-out.going
#!/bin/sh
# script to run crosspost on any overflow in out.going, ensuring that only
# one copy is running.
# AJB 29 May 1996
LOCK=/usr/local/news/LOCK.crosspost.out.going
trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
if /usr/local/news/bin/shlock -p $$ -f ${LOCK} ; then
# Do appropriate work
if [ -f /var/spool/news/out.going/CROSSPOST\!]; then
mv /var/spool/news/out.going/CROSSPOST\! /var/spool/news/out.going/CROSSPOST\!.lagged
/usr/lib/news/bin/ctlinnd flush CROSSPOST!
/usr/lib/news/bin/crosspost -s /var/spool/news/out.going/CROSSPOST\!.lagged
rm /var/spool/news/out.going/CROSSPOST\!.lagged
fi
else
echo Locked by `cat ${LOCK}`
fi
exit 0
======
--
"But you can't say they have arrived to classify your nervous lies
What's right, what's not, what may not be. Don't try your tricky tests on me
For I won't live in fear my friend - that every day could be my end"
Re: Linux unoff 4 experiences and queries
Author: Alan Brown
Date: Thu, 30 May 1996 00:00
Date: Thu, 30 May 1996 00:00
28 lines
1671 bytes
1671 bytes
On Wed, 29 May 1996, Joe St Sauver wrote: > In article <4ohaov$9ni@papaioea.manawatu.gen.nz> you write: > >spawn on another port such as 1119), > > We use 120 since it is still in the privleged range and unallocated. According to RFC 1700 it's assigned to "CFDPTKT" > >Crosspost. The performance increase was astounding. From nnrpd startup > >times in excess of 2 minutes from connect, I've gone down to a maxiumum > >tested startup delay of 22 seconds. > > Check to make sure that this isn't an artifact of DNS caching of hosts.nntp > entries. (substitutue IP numbers for DNS entries in that file and it will > really fly!) Hosts.nntp is read and the entries forward dns'd into IP numbers for INN to watch out for. That why it needs to be reloaded if the IP of the remote site changes. In any case I have names and numbers for all my feeders in the file. AB
Re: Linux unoff 4 experiences and queries
Author: Clayton O'Neill
Date: Thu, 30 May 1996 00:00
Date: Thu, 30 May 1996 00:00
38 lines
2478 bytes
2478 bytes
On 23 May 1996 01:37:58 +1200, Alan Brown <alan@papaioea.manawatu.gen.nz> wrote: >Another problem which seems to have gotten worse: > >People are reporting timeouts connecting to the server (ie, before INN >notices them and spawns nnrpd) and timeout/disconnections from the server >while retrieving headers and/or articles. > I can't think of any other OS that with would be a viable solution for, but I'm also running Linux and this is working well for me. In pre2.0.7 (1.99.7) they added a feature called transparent proxies. Basically, you enable the firewalling code and transparent proxies and place a set of rules like this in rc.blah: FW=/sbin/ipfwadm $FW -I -f $FW -I -a accept -S 204.178.176.27/32 -D 204.178.176.27/32 119 -P tcp $FW -I -a accept -S 204.178.176.0/23 -D 204.178.176.27/32 119 -P tcp -r 120 $FW -I -a accept -S 204.252.224.0/20 -D 204.178.176.27/32 119 -P tcp -r 120 $FW -I -a accept -S 206.124.192.0/19 -D 204.178.176.27/32 119 -P tcp -r 120 Basically the first line says that for the news server itself (204.178.176.27) allow through traffic normally. I then placed a line for each of our netblocks that specifies to redirect port 119 accesses to port 120 for all of the networks that we own. This way all of our customers will transparently be redirected to port 120, and be connected to an nnrpd running from inetd. All of our feeds won't be redirected and will connect to innd on port 119. This is similar to the idea of connectd, but it doesn't take the (probably small) performance hit of using an application level proxy. -- ------------------------------------------------------------------------- Clayton O'Neill Business--> Premier One Inc whatever@oneill.net clayton@premier.net http://www.oneill.net <--Personal http://www.premier.net
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