🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Joe Greco Thu, 05 Jun 1997 00:00
Other patches now available...
#18274
Author: Joe Greco
Date: Thu, 05 Jun 1997 00:00
16 lines
1020 bytes
Due to all the interest  :-)

There are some other new and interesting patches at
http://www.nntp.sol.net/patches, now.

Among other lesser items, there is a replacement for the sharedactive
patch that takes a slightly different angle on solving that problem, and
a patch that MMAP's and sorts .overview files, which is particularly
handy at sites using a master/slave INN setup of some types.

I don't have my connectd connection handler posted, sorry.

... JG

Re: Other patches now available...
#18323
Author: Marcus Needham
Date: Fri, 06 Jun 1997 00:00
16 lines
995 bytes
The actived patch looks way cool. Has anyone got info on whether it works OK 
with 1.5.1 or not?

In article <5n7unf$kp7$1@earth.execpc.com>, jgreco@ns.sol.net (Joe Greco) 
wrote:
>Due to all the interest  :-)
>
>There are some other new and interesting patches at
>http://www.nntp.sol.net/patches, now.
..

/// Marcus Needham /// marcus@theriver.com
\\\ VP & Webmaster \\\ The River, Tucson AZ USA, http://www.theriver.com/

Re: Other patches now available...
#18331
Author: R. Joyner
Date: Sat, 07 Jun 1997 00:00
35 lines
1570 bytes
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.  I installed it yesterday, and have not had any
problems for >24 hrs and a few thousand NNRP connections later.

The MMAP'd overview stuff is also pretty kick-@#$@!

Between these two and the apb performance patch, these guys have
breathed new life into my client box.

Many thanks to Joe, et. al. for these patches!!!

/rsj

> In article <5n7unf$kp7$1@earth.execpc.com>, jgreco@ns.sol.net (Joe Greco)
> wrote:
> >Due to all the interest  :-)
> >
> >There are some other new and interesting patches at
> >http://www.nntp.sol.net/patches, now.
> ..
> 
> /// Marcus Needham /// marcus@theriver.com
> \\\ VP & Webmaster \\\ The River, Tucson AZ USA, http://www.theriver.com/

--
Reece Joyner
Senior Systems Engineer			rjoyner@ais.net
American Information Systems, Inc.	http://www.ais.net

Re: Other patches now available...
#18360
Author: Joe Greco
Date: Mon, 09 Jun 1997 00:00
81 lines
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

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