Article View: news.software.nntp
Article #18360Re: Other patches now available...
From: Joe Greco
Date: Mon, 09 Jun 1997 00:00
Date: Mon, 09 Jun 1997 00:00
81 lines
4454 bytes
4454 bytes
In news.software.nntp article <3399B9FE.6FE0@ais.net>, rjoyner@ais.net wrote: :Marcus Needham wrote: :> The actived patch looks way cool. Has anyone got info on whether it works OK :> with 1.5.1 or not? : :Yep, it sure does. It should be just fine, although I don't know if it's a "clean patch" or not, as I don't have any 1.5.1 reader boxes. :I installed it yesterday, and have not had any :problems for >24 hrs and a few thousand NNRP connections later. I've had it running in production for several _months_ on several machines and it has been rock stable. The only potential trouble you will get into is if actived itself crashes, but the code in question is reasonably compact, and largely verifiable by inspection, and you can always install something into innwatch, etc., to restart it if it's not there. I haven't seen a crash since the end of development. There is a downside to this in that IF actived DOES crash, all the NNRP clients will start using the old, non-shared-active access methods. This might take your performance through the floor. But unlike the sharedactive method, where sometimes someone would lock up the entire reader subsystem by holding a semaphore, this will at least continue to work (poorly! but still work!) and you can repair the problem by simply restarting actived. One of my actived daemons has been running almost two months(!)... news 10813 2.9 1.2 4588 3168 ?? S<s 21Apr97 1586:51.96 /usr/local/bin/actived And in that time, about 50 days, it has only eaten 27 hours (or 2.25% of the CPU). The constant hashing of the active file by every single client who connected was eating 100% of the CPU during peak times, and was limiting the rate at which new connections could be accepted. I still contend that any client who connects repeatedly within a short period of time is broken, and I still intend to break them, but it's really helpful to be able to handle stressful situations. Some folks will also be yelling "Context switching!" and they're right. But I'd rather have lots of context switching and 50% free CPU and fast performance, it beats the other scenario hands down. Ummmm... I just remembered. I think there is some code in there that you might want to disable on a non-dedicated news box, it writes a file in /tmp that contains the number of lookups per second in a BSD load average style. That's a potential security hole but also a nifty look at how busy the actived server is. I think I'll also make some NNRP performance tools available, come to think of it. "connectdelay" is a little program I run from another machine that simply measures connection delay times and GROUP command times. Trivial to modify to measure other things. % ./connectdelay *** Connect: In progress. *** Connect: Got 200 code in 86 milliseconds. <<< 200 nntp.sol.net InterNetNews NNRP EXP-SA+KA+LL server INN 1.4unoff4 05-Mar-96 ready (posting ok). *** GROUP: In progress. >>> GROUP alt.sex *** GROUP: Got 211 code in 143 milliseconds. <<< 211 2012 412380 419322 alt.sex % :The MMAP'd overview stuff is also pretty kick-@#$@! At a price (at least if you use the unordered option, which I think you should, even if you're not necessarily unordered). I felt that the penalty of reading the entire .overview was worth it. I can't say for sure that it's a win, but my NOV spool stopped being a bottleneck. Then again, I have a master/slave setup, and the ordering stuff is an instant win for me. As my Web page suggests, this stuff is deep magic. :-) It has the potential to make a news admin's life much better, or a living hell. I do encourage folks to look at this stuff, and anything you understand, and is helpful, _use_it_ and enjoy! ... JG
Technical Details
Message-ID:
<5nh6nc$89n$1@earth.execpc.com>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-mailReferences:
<5n7unf$kp7$1@earth.execpc.com> <5n9k0g$mpq$1@news.theriver.com> <3399B9FE.6FE0@ais.net>Show Full Headers
Complete Article Headers
Message-ID: <5nh6nc$89n$1@earth.execpc.com> Subject: Re: Other patches now available... Date: Mon, 09 Jun 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <5n7unf$kp7$1@earth.execpc.com> <5n9k0g$mpq$1@news.theriver.com> <3399B9FE.6FE0@ais.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: 247260075 Sender: jgreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp