Article View: news.software.nntp
Article #21596Changes to INN FAQ
From: Heiko W.Rupp
Date: Tue, 16 Sep 1997 00:00
Date: Tue, 16 Sep 1997 00:00
260 lines
11714 bytes
11714 bytes
====================================
Part: part1/9
No changes made since last posting
====================================
Part: part2/9
--- part2 1997/07/15 01:26:20 2.32
+++ part2 1997/09/15 18:17:30
@@ -1009,6 +1009,24 @@
if (NCcount > 0)
NCcount--;
+---------- Solaris fix #8
+
+From: Joe St Sauver <joe@decoy.uoregon.edu>
+
+We recently upgraded some machines in our news farm to fast ethernet, and
+after doing so we noticed poor performance (ping times of 30msec between
+two machines each connected to dedicated switch ports on the same switch...).
+
+Poking around a little, we noticed that under Solaris 2.5, tcp_conn_req_max
+is set to 32 by default, which is a little low if you are working with a fair
+number of peers or have a lot of readers. We bumped that value to 1000 or
+so (1024 max under Solaris 2.5), using:
+
+# ndd -set /dev/tcp tcp_conn_req_max 1000
+
+and now ping times are back into the 0 or 1 msec reported range you'd hope to
+see from that sort of topology. :-)
+
------------------------------
Subject: (2.15) Slackware Tips
====================================
Part: part3/9
--- part3 1997/07/29 01:26:23 2.16
+++ part3 1997/09/15 17:29:41
@@ -153,6 +153,9 @@
--tal
+Also make sure that the directories in the spool either don't exist or
+are writable by the news user.
+
------------------------------
Subject: (3.6) syslog message: Can't setup communication (bind failure)
====================================
Part: part4/9
No changes made since last posting
====================================
Part: part5/9
--- part5 1997/08/26 01:26:23 2.24
+++ part5 1997/09/15 17:41:30
@@ -273,7 +273,7 @@
ctlinnd renumber ''
makehistory -buv (or -bunv see #6.6 for it)
ctlinnd renumber ''
-(Note: the "makehistory" will take hours to run.)
+(Note: the "makehistory" will take hours to run. See #7.53 on this.)
IF YOU IGNORE THIS PROBLEM LONG ENOUGH (by issuing the "go" command via
ctlinnd) you will eventually get a "innd: ME cant update_active
====================================
Part: part6/9
No changes made since last posting
====================================
Part: part7/9
--- part7 1997/08/26 01:26:25 2.24
+++ part7 1997/09/15 18:33:31
@@ -83,6 +83,12 @@
7.50 uuxqt says: rnews exit status 1
7.51 innd get a non-zero ``nice'' value?
7.52 innd runs as root, even if configured to run as 'news'
+ 7.53 Makehistory is slow on inn 1.x , x<5.1
+ 7.54 Expire is slooooooow
+ 7.55 Why are multiple innwatch's running?
+ 7.56 I upgraded to INN 1.5.1, and peers have trouble feeding me.
+ 7.57 I upgraded to INN 1.5.1, and it takes clients a long time to connect.
+ 7.58 My server gets slower and is busy doing io
=====================================================================
@@ -439,6 +445,11 @@
*.err;kern.debug;auth.notice;mail.crit,news.none /dev/console
+On some systems you can add a flag to some entries in order to instruct
+syslog not to sync after each write. This might help raising throughput.
+Or else move the logs from busy file systems if that flag is not
+available.
+
------------------------------
Subject: (7.18) INN batcher writing "#!rnews 0" separators
@@ -1174,3 +1185,150 @@
So inndstart takes user and group values from _PATH_INNDDIR, and our
dir was owned by root =).
+------------------------------
+
+Subject: (7.53) Makehistory is slow on inn 1.x , x<5.1
+
+From: "Otto J. Makela" <otto@cc.jyu.fi>
+
+There is a rather serious bug in the standard distribution inn 1.4 (and all
+unoff versions, but has been fixed in inn 1.5.1) makehistory, which affects
+innd performance very much. Makehistory can be used to create the history
+dbz database files from the raw text file and for example dexpire does this
+with every histtrim operation.
+
+The problem is that makehistory is given just one parameter specifying the
+size of the expected dbz database in lines, but it uses this parameter also
+for the dbzfresh() tagmask parameter where the maximum key value is expected
+to be given. This means the dbz database is built with a very small hash
+table causing most of the history database to be accessed without hashing,
+a very serious performance hit.
+
+As noted in the inn FAQ section 7.45, you can check the size of your dbz
+hash table with the following commands:
+ head -1 history.dir | perl -ane 'print 2 ** $F[7], "\n";'
+if the number returned is smaller than your history text file, you are
+being affected by this problem.
+
+The problem becomes worse as the history file grows, so an indication of this
+problem is that your news server worked fine at first (small history file)
+but started really beating the living daylights out of the hard disk where
+history is after it grew a bit larger.
+
+This problem can be patched with the following extremely simple change to
+makehistory, which just multiplies the number of lines in the dbzfresh call
+with 70 which is (supposedly) an average number of characters per history
+text file line. This same fix has been implemented in inn 1.5.1 makehistory.
+--
+diff -u expire/makehistory.c{.orig,}
+--- expire/makehistory.c.orig Mon Jul 31 22:18:46 1995
++++ expire/makehistory.c Wed Apr 23 11:26:50 1997
+@@ -125,7 +125,8 @@
+ /* Open the new database, using the old file if desired and possible. */
+ (void)dbzincore(1);
+ if (IgnoreOld) {
+- if (dbzfresh(p, dbzsize(size), HIS_FIELDSEP, 'C', dbztagmask(size)) < 0) {
++ /* Assume average history line length of 70 characters */
++ if (dbzfresh(p, dbzsize(size), HIS_FIELDSEP, 'C', dbztagmask(size*70)) < 0) {
+ (void)fprintf(stderr, "Can't do dbzfresh, %s\n",
+ strerror(errno));
+ if (temp[0])
+
+------------------------------
+
+Subject: (7.54) Expire is slooooooow
+
+Q: Expire takes 20 hours on my system to complete.
+
+First of all you should call news.daily with the delayrm option (see
+also #2.12, #4.18, #4.19, #5.13). If this is still too slow, then it
+could be that the list passed to "fastrm" is too large to be sorted by
+the sort(1) command, typically because /tmp is too small. Try setting
+TMPDIR in innshellvars.
+
+------------------------------
+
+Subject: (7.55) Why are multiple innwatch's running?
+
+From: Jim Dutton <jimd@dutton4.it.siu.edu>
+
+Currently, "nobody" seems to verify whether an innwatch task is already
+executing before innwatch is started up in rc.news. Also, when innd is
+terminated via ctlinnd shutdown, innwatch is not affected (eg; it is
+left running).
+
+Since rc.news always starts an innwatch task, if innd is shutdown for
+maintenance, it is necessary to remember to ALSO kill the innwatch task
+and its attendant "sleeper" task, thus ensuring that there is no innwatch
+running when rc.news is executed to restart innd (assuming that this is
+how innd is restarted, of course).
+
+------------------------------
+
+Subject: (7.56) I upgraded to INN 1.5.1, and peers have trouble feeding me.
+
+INN 1.5.1 (and some versions of INN 1.4unoff) support streaming NNTP
+(see #6.25). Jerry Aguirre (who authored the streaming support)
+has this to say about streaming NNTP:
+
+> One of the fallouts of streaming was that a streaming feed tends to hog
+> the resources. (I consider it a feature but ...) Basically streaming
+> is more efficient so it is going to send more articles and thus consume
+> greater resources. The scheduling algorithm of INN's server aggravates
+> this so that the non-streaming connections suffer. There is code in INN
+> 1.5.1 to limit the work a streaming channel will do on a single pass.
+> It helps but perhaps not enough. More advanced methods have been
+> discussed but require greater changes to the code. (Jerry Aguirre, May
+> 9 1997)
+
+If you upgraded to INN 1.5.1 from a version of INN which didn't support
+streaming NNTP (e.g., INN 1.4sec), and have streaming support enabled,
+incoming feeds which are configured to attempt streaming mode by default
+will now be streaming articles to you. The incoming feeds which are not
+capable of streaming will get less and less of INN's attention
+(depending on how many incoming streamers are connected at the same
+time). Thus, the incoming feeds which can't stream will see a
+performance degradation, and may develop appreciable backlogs for you.
+
+There are several things which can be done. If the non-streamers switch
+to an outgoing feed program which supports streaming NNTP, then they
+will be able to get more of INN's attention. Current versions of
+innxmit and innfeed (see #4.21) support streaming NNTP. Another
+possibility is to disable streaming NNTP for incoming connections, which
+can be done in the hosts.nntp file (see the man page for hosts.nntp for
+more information).
+
+A third possibility is to apply the following patch by Alan Barrett:
+
+ ftp://ftp.isc.org/isc/inn/unoff-patches/inn-patch-apb-19970129
+
+This patch attempts to limit the amount of work INN does for each
+channel at one time. Several sites have experienced success with it,
+but at this point, it is not an official patch.
+
+------------------------------
+
+Subject: (7.57) I upgraded to INN 1.5.1, and it takes clients a long
+time to connect.
+
+This may be caused by streaming NNTP (see #7.56). Since INN
+handles all incoming NNTP connections (even the ones which are passed
+off to nnrpd), incoming streaming NNTP feeds may cause INN to take a
+long time to respond to a newsreader client's initial connection. The
+solutions in Subject #7.56 should be equally effective in reducing
+initial connection latency for newsreaders.
+
+Or as another alternative move innd away from port 119 and accept
+nnrpd connects port 119 using inetd.
+
+------------------------------
+
+Subject: (7.58) My server gets slower and is busy doing io
+
+Under Unix, when directories are getting too large, operations on them
+are also getting slow. Most likely candidate is control or if you
+have control.cancel in active control/cancel in the spool. Rebuilding
+the directory from time to time helps (e.g. mv /news/control/cancel
+/news/control/bye.bye && rm -fr /news/control/bye.bye). There is also
+somewhere a patch floating around that divides control/cancel in
+further subdirectories which makes each of those smaller.
====================================
Part: part8/9
No changes made since last posting
====================================
Part: part9/9
No changes made since last posting
--
Heiko W.Rupp Gerwigstr.5 D-76131 Karlsruhe +49 721 9661524
From a Japanese information booklet about using a hotel air
conditioner: Cooles and Heates: If you want just condition of warm
in your room, please control yourself.
Technical Details
Message-ID:
<diff-faq_874373124@pilhuhn.de>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-mailShow Full Headers
Complete Article Headers
Message-ID: <diff-faq_874373124@pilhuhn.de> Subject: Changes to INN FAQ Date: Tue, 16 Sep 1997 00:00:00 +0000 From: hwr@pilhuhn.de (Heiko W.Rupp) 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: 272819672 Supersedes: <diff-faq_873768336@pilhuhn.de> Followup-To: news.software.nntp Organization: The Home Of The Pilhuhn Newsgroups: news.software.nntp,news.software.b