Thread View: news.software.nntp
17 messages
17 total messages
Started by Stephan Forseilles
Wed, 01 Oct 1997 00:00
Shared Active patch for NNRPD
Author: Stephan Forseilles
Date: Wed, 01 Oct 1997 00:00
Date: Wed, 01 Oct 1997 00:00
12 lines
819 bytes
819 bytes
Is there a shared-active patch for the nnrpd from inn1.6b3? I had one for 1.5.1 but it doesn't apply to 1.6. -- * Stephan Forseilles - UNIX System Engineer * * steph@skynet.be - Belgacom Skynet SA/NV *
Re: Shared Active patch for NNRPD
Author: Forrest J. Cavalier III
Date: Wed, 01 Oct 1997 00:00
Date: Wed, 01 Oct 1997 00:00
31 lines
1379 bytes
1379 bytes
In article <34325C40.8894971@skynet.be>, steph@skynet.be wrote...
>
> Is there a shared-active patch for the nnrpd from inn1.6b3? I had one
>for 1.5.1 but it doesn't apply to 1.6.
>
>--
>* Stephan Forseilles - UNIX System Engineer *
>* steph@skynet.be - Belgacom Skynet SA/NV *
>
>
>
As I understand it, Matt Dillon's shared active feature
is already in 1.6.
(Shameless plug: If you had a Usenet RKT subscription, you'd
already know about this URL, which lists the feature changes
to get 1.6.....
http://www.mibsoftware.com/userkt/inn/patches/0047.htm
)
Forrest Cavalier, Mib Software, INN customization and consulting
Searchable hypertext INN docs, FAQ, RFCs, etc: 650+ pages:
http://www.mibsoftware.com/userkt/forprov.htm
Commercial support for INN: http://www.mibsoftware.com/innsup.htm
Re: Shared Active patch for NNRPD
Author: Stephan Forseilles
Date: Wed, 01 Oct 1997 00:00
Date: Wed, 01 Oct 1997 00:00
64 lines
2293 bytes
2293 bytes
--------------357C60B41D7B9CF648E1E9FD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Forrest J. Cavalier III wrote: > > > > Is there a shared-active patch for the nnrpd from inn1.6b3? I had one > >for 1.5.1 but it doesn't apply to 1.6. > As I understand it, Matt Dillon's shared active feature > is already in 1.6. > That's what I thought but... 32589 nnrpd 1.8M 32674 nnrpd 1.8M If I remember well, they were smaller in 1.5.1+patch... -- * Stephan Forseilles - UNIX System Engineer * * steph@skynet.be - Belgacom Skynet SA/NV * --------------357C60B41D7B9CF648E1E9FD Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <HTML> Forrest J. Cavalier III wrote: <BLOCKQUOTE TYPE=CITE> <P>> <BR>> Is there a shared-active patch for the nnrpd from inn1.6b3? I had one <BR>>for 1.5.1 but it doesn't apply to 1.6.</BLOCKQUOTE> <BLOCKQUOTE TYPE=CITE>As I understand it, Matt Dillon's shared active feature <BR>is already in 1.6. <BR><A HREF="http://www.mibsoftware.com/innsup.htm"></A> </BLOCKQUOTE> That's what I thought but... <P>32589 nnrpd 1.8M <BR>32674 nnrpd 1.8M <P>If I remember well, they were smaller in 1.5.1+patch... <PRE>-- * Stephan Forseilles - UNIX System Engineer * * steph@skynet.be - Belgacom Skynet SA/NV *</PRE> </HTML> --------------357C60B41D7B9CF648E1E9FD--
Re: Shared Active patch for NNRPD
Author: bill davidsen
Date: Fri, 10 Oct 1997 00:00
Date: Fri, 10 Oct 1997 00:00
33 lines
1728 bytes
1728 bytes
In article <343289F7.2E91B39C@skynet.be>,
Stephan Forseilles <steph@skynet.be> wrote:
|
| Forrest J. Cavalier III wrote:
|
| > >
| > > Is there a shared-active patch for the nnrpd from inn1.6b3? I had one
| > >for 1.5.1 but it doesn't apply to 1.6.
|
| > As I understand it, Matt Dillon's shared active feature
| > is already in 1.6.
| >
|
| That's what I thought but...
|
| 32589 nnrpd 1.8M
| 32674 nnrpd 1.8M
|
| If I remember well, they were smaller in 1.5.1+patch...
1.6 lacks the shared active patch. There's a mmap(active) option,
but that's not nearly the same thing. The shared active patch has
about the same performance boost as the active daemon patch, but no
single point of failure.
--
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
The net serves four of the five physical senses. You can get sight, and
sound, and to a limited extent tactile feedback. No one would deny that
some portions of the net smell, but I see no signs that taste will ever
come to the net. -me
Re: Shared Active patch for NNRPD
Author: Phil Crown
Date: Sun, 12 Oct 1997 00:00
Date: Sun, 12 Oct 1997 00:00
25 lines
1569 bytes
1569 bytes
Is there a problem with running both (mmap-active-shared and actived)? > It does leave the hashing code in, and this does eat some cpu, but it would > only be a serious problem on a 486-class boxes. The code is very efficient > and the active file, though large, is in-core. > > Conceptually, an active file server is a much more efficient model both > in cpu and memory utilization, but the shared-active patch is not so bad > itself that it deserves the above comment. I've been running it on > BEST's newsreader boxes for over a year. > > -Matt > > >I can support 400 readers on a P133 CPU, at a dozen connections per second. > > > >You CAN NOT do that with sharedactive. "About the same performance boost" > >my foot. :-) > > > >... JG -- Phil Crown pcrown@ispnews.com http://www.ispnews.com
Re: Shared Active patch for NNRPD
Author: Joe Greco
Date: Sun, 12 Oct 1997 00:00
Date: Sun, 12 Oct 1997 00:00
27 lines
1818 bytes
1818 bytes
In news.software.nntp article <61lrbn$1ehg$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote: :1.6 lacks the shared active patch. There's a mmap(active) option, :but that's not nearly the same thing. The shared active patch has :about the same performance boost as the active daemon patch, but no :single point of failure. What Bill _MEANT_ to say was... Unlike the sharedactive patch, which may HANG all of your NNRP sessions if one nnrpd daemon goes awry, the actived patch will at least fall back to other access methods, and can be restarted without having to kill and restart your entire reader subsystem. The sharedactive patch also requires that your nnrpd hash the active file on every session startup. This is a very wasteful use of system resources. You don't get that problem when using actived. If you're on a limited CPU machine, you will notice tremendous benefits from actived. I can support 400 readers on a P133 CPU, at a dozen connections per second. You CAN NOT do that with sharedactive. "About the same performance boost" my foot. :-) ... JG
Re: Shared Active patch for NNRPD
Author: Matt Dillon
Date: Sun, 12 Oct 1997 00:00
Date: Sun, 12 Oct 1997 00:00
23 lines
1247 bytes
1247 bytes
:In article <344132A1.1AE43760@ispnews.com>,
:Phil Crown <pcrown@ispnews.com> wrote:
:>Is there a problem with running both (mmap-active-shared and actived)?
:>
Well, apart from them being mutually exclusive patches, no.
(i.e. yes).
:-)
actived will ultimately be the best all around solution... it's simple
enough that it is possible to make it bug-free. The shared-active
stuff that I wrote is an intermediate solution.
-Matt
>Phil Crown pcrown@ispnews.com http://www.ispnews.com
Re: Shared Active patch for NNRPD
Author: Phil Crown
Date: Sun, 12 Oct 1997 00:00
Date: Sun, 12 Oct 1997 00:00
24 lines
1317 bytes
1317 bytes
Matt Dillon wrote: > :In article <344132A1.1AE43760@ispnews.com>, > :Phil Crown <pcrown@ispnews.com> wrote: > :>Is there a problem with running both (mmap-active-shared and actived)? > :> > > Well, apart from them being mutually exclusive patches, no. > > (i.e. yes). > > :-) > > actived will ultimately be the best all around solution... it's simple > enough that it is possible to make it bug-free. The shared-active > stuff that I wrote is an intermediate solution. Thanks, I thought so, I've been running mmap-active-shared and want to try actived next. -- Phil Crown pcrown@ispnews.com http://www.ispnews.com
Re: Shared Active patch for NNRPD
Author: Matt Dillon
Date: Sun, 12 Oct 1997 00:00
Date: Sun, 12 Oct 1997 00:00
43 lines
2529 bytes
2529 bytes
:In article <61qolq$66s$1@earth.execpc.com>,
:Joe Greco <jgreco@ns.sol.net> wrote:
:>In news.software.nntp article <61lrbn$1ehg$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:
:>:1.6 lacks the shared active patch. There's a mmap(active) option,
:..
:>What Bill _MEANT_ to say was...
:>
:>Unlike the sharedactive patch, which may HANG all of your NNRP sessions
:>if one nnrpd daemon goes awry, the actived patch will at least fall
:>back to other access methods, and can be restarted without having to
:>kill and restart your entire reader subsystem.
:>
:>The sharedactive patch also requires that your nnrpd hash the active file
:>on every session startup. This is a very wasteful use of system resources.
:>You don't get that problem when using actived. If you're on a limited CPU
:>machine, you will notice tremendous benefits from actived.
Woa, hold on... it *cannot* hang all of your nnrp sessions if one nnrpd
daemon goes awry, my shared-active patch mmap's the active file
shared read-only. There is NO interaction between nnrpd sessions.
It does leave the hashing code in, and this does eat some cpu, but it would
only be a serious problem on a 486-class boxes. The code is very efficient
and the active file, though large, is in-core.
Conceptually, an active file server is a much more efficient model both
in cpu and memory utilization, but the shared-active patch is not so bad
itself that it deserves the above comment. I've been running it on
BEST's newsreader boxes for over a year.
-Matt
>I can support 400 readers on a P133 CPU, at a dozen connections per second.
>
>You CAN NOT do that with sharedactive. "About the same performance boost"
>my foot. :-)
>
>... JG
Re: Shared Active patch for NNRPD
Author: Anthony Talltree
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
10 lines
837 bytes
837 bytes
> actived will ultimately be the best all around solution... it's simple > enough that it is possible to make it bug-free. ...not to mention *portable*.
Re: Shared Active patch for NNRPD
Author: Marc Slemko
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
20 lines
1543 bytes
1543 bytes
In <61qolq$66s$1@earth.execpc.com> jgreco@ns.sol.net (Joe Greco) writes: >In news.software.nntp article <61lrbn$1ehg$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote: >:1.6 lacks the shared active patch. There's a mmap(active) option, >:but that's not nearly the same thing. The shared active patch has >:about the same performance boost as the active daemon patch, but no >:single point of failure. >What Bill _MEANT_ to say was... >Unlike the sharedactive patch, which may HANG all of your NNRP sessions >if one nnrpd daemon goes awry, the actived patch will at least fall >back to other access methods, and can be restarted without having to ...after, of course, you patch it to not spew perror() messages to the client making them give up in frustration at the odd server they are talking to.
Re: Shared Active patch for NNRPD
Author: Joe Greco
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
25 lines
1734 bytes
1734 bytes
In news.software.nntp article <61raid$9ru$1@flea.best.net>, dillon@best.net (Matt Dillon) wrote: : Woa, hold on... it *cannot* hang all of your nnrp sessions if one nnrpd : daemon goes awry, my shared-active patch mmap's the active file : shared read-only. There is NO interaction between nnrpd sessions. The typical sharedactive patch (not yours, Matt) will certainly and happily hang all of your nnrp sessions if one goes awry in just the right way. : It does leave the hashing code in, and this does eat some cpu, but it would : only be a serious problem on a 486-class boxes. The code is very efficient : and the active file, though large, is in-core. The hashing was a problem for me on a P133, when pushing a hundred to a hundred and fifty users, because the average startup time was about .3 seconds of CPU time, so once you got about 3 per second going, performance plummeted. Those same P133's now handle peaks of 400 users, and with more RAM, could probably go to 600-700. ... JG
Re: Shared Active patch for NNRPD
Author: Matt Dillon
Date: Tue, 14 Oct 1997 00:00
Date: Tue, 14 Oct 1997 00:00
47 lines
3118 bytes
3118 bytes
:In article <620jvg$1dq8$1@newssvr03-int.news.prodigy.com>,
:bill davidsen <davidsen@tmr.com> wrote:
:>In article <61qolq$66s$1@earth.execpc.com>,
:>Joe Greco <jgreco@ns.sol.net> wrote:
:>| In news.software.nntp article <61lrbn$1ehg$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:
:>| :1.6 lacks the shared active patch. There's a mmap(active) option,
:...
:>
:>I think I see why you find a diference... with a sustained user load
:>(+/-30min avg of 375, including a few peaks of 425, I had a high
:>connect rate of <2 per second. Your users are doing something mine
:>don't. Of course they use mostly IE and Netscape browsers, with a
:>small number of Forte users. That may be bland compared to yours.
I see relatively low connect rates too, but i don't think cpu is
really the issue. When it comes right down to it a pentium 133 is
a slow processor. A pentium II or a PPro will be at least twice as
fast and even faster... a PPro 200 will be 3 times as fast, a
Pentium II 266 will be 4 times as fast (well, maybe a little less with
the secondary cache being slower).
Where actived wins the most is in memory. It saves at least 200K per
nnrpd (24067 groups times 8 bytes per group for the hash table).
400 nnrpd's saves 80MB which is significant. The added overhead
is going to be 4-32K per process in IPC buffers which is nothing
compared to the savings, and cpu which I already think is irrelevant.
There's a good chance that a newsreader box running INND will be
limited by INND's ability to keep up with a full feed as the disk
load increases from the readers. actived definitely helps on the
disk caching side of the coin so even if the total cpu winds up being
the same, the added disk caching ought to allow one to run a hundred
or two more nnrpd processes before innd starts to barf.
Now that all said, I still use shared active on my newsreader boxes
simply because we aren't pushing the envelope on them. The actived
concept is sound, but it obviously needs a bit more debugging and
tweaking. I would get rid of the fallback stuff entirely... the people
who use actived have to depend on it so nnrpd might as well depend on
it too. I would then go and make actived uncrashable.
-Matt
Re: Shared Active patch for NNRPD
Author: bill davidsen
Date: Tue, 14 Oct 1997 00:00
Date: Tue, 14 Oct 1997 00:00
55 lines
3407 bytes
3407 bytes
In article <61qolq$66s$1@earth.execpc.com>,
Joe Greco <jgreco@ns.sol.net> wrote:
| In news.software.nntp article <61lrbn$1ehg$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:
| :1.6 lacks the shared active patch. There's a mmap(active) option,
| :but that's not nearly the same thing. The shared active patch has
| :about the same performance boost as the active daemon patch, but no
| :single point of failure.
|
| What Bill _MEANT_ to say was...
|
| Unlike the sharedactive patch, which may HANG all of your NNRP sessions
| if one nnrpd daemon goes awry, the actived patch will at least fall
| back to other access methods, and can be restarted without having to
| kill and restart your entire reader subsystem.
Never had such a thing happen, you may be running a diferent version
of shared active, or a kernel which hangs the lock. I had the use of
a BSD machine which could run actived, and it ran fine there until I
(deliberately) killed the daemon, at which point the "fall back"
happened, the load average went to 45+ in less than a minute, and I
got a "can't fork - no resources" type message trying to restart the
daemon.
| The sharedactive patch also requires that your nnrpd hash the active file
| on every session startup. This is a very wasteful use of system resources.
| You don't get that problem when using actived. If you're on a limited CPU
| machine, you will notice tremendous benefits from actived.
And after the initial hash everything will be in memory, saving
cycles by not doing IPC. Unless your readers open a socket for each
article read, which mine sure don't, they leave the damn sockets
open until the connection drops or the nnrpd times out.
| I can support 400 readers on a P133 CPU, at a dozen connections per second.
I think I see why you find a diference... with a sustained user load
(+/-30min avg of 375, including a few peaks of 425, I had a high
connect rate of <2 per second. Your users are doing something mine
don't. Of course they use mostly IE and Netscape browsers, with a
small number of Forte users. That may be bland compared to yours.
| You CAN NOT do that with sharedactive. "About the same performance boost"
| my foot. :-)
Fortunately I don't have to. And I only see peaks of 50 art/sec read
by users, so that's not a problem for me, either.
--
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
The net serves four of the five physical senses. You can get sight, and
sound, and to a limited extent tactile feedback. No one would deny that
some portions of the net smell, but I see no signs that taste will ever
come to the net. -me
Re: Shared Active patch for NNRPD
Author: Joe Greco
Date: Wed, 15 Oct 1997 00:00
Date: Wed, 15 Oct 1997 00:00
40 lines
2478 bytes
2478 bytes
In news.software.nntp article <620vaf$c3c$1@flea.best.net>, dillon@best.net (Matt Dillon) wrote: : I see relatively low connect rates too, but i don't think cpu is : really the issue. When it comes right down to it a pentium 133 is : a slow processor. A pentium II or a PPro will be at least twice as : fast and even faster... a PPro 200 will be 3 times as fast, a : Pentium II 266 will be 4 times as fast (well, maybe a little less with : the secondary cache being slower). That's nice, but news isn't something where you should _need_ such CPU power. I could go buy a monster Cray too, but that's not the real solution. When the P133's were installed, they were near top of the line (the P166 was a new chip at the time). I'm of course running "connectd", which may or may not allow my readers to connect a bit more often, and I know for a fact that a lot of the load on the machines are people going through the binaries.pictures groups, with Netscape or IE. : Where actived wins the most is in memory. It saves at least 200K per : Now that all said, I still use shared active on my newsreader boxes : simply because we aren't pushing the envelope on them. The actived : concept is sound, but it obviously needs a bit more debugging and : tweaking. I would get rid of the fallback stuff entirely... the people : who use actived have to depend on it so nnrpd might as well depend on : it too. I would then go and make actived uncrashable. news 26932 2.7 1.2 4596 3220 ?? S<s 10Jun97 4189:23.04 /usr/local/bin/actived A bit more than 5 months ... How much more uncrashable would you like it? :-) It would be easy enough code to audit. I purposely like simple code. ... JG
Re: Shared Active patch for NNRPD
Author: Ken Lalonde
Date: Wed, 15 Oct 1997 00:00
Date: Wed, 15 Oct 1997 00:00
26 lines
1664 bytes
1664 bytes
I found mmap-active to be a huge win in terms of memory, but each nnrpd still had to parse the entire file, and each held a large private hash table in memory. I gave actived a try, but ended up taking a slightly different approach. On our reader boxes, a perl script periodically converts the active file to a hashed database, in Dan Bernstein's "cdb" format (see http://pobox.com/~djb/cdb.html). The database maps a newsgroup name to the corresponding line in the active file. Nnrpd will use the CDB database if it exists, falling back to the old method otherwise. This scheme is basically the same as actived, except that the hash table is in a file rather than a process. Caching is handled by the OS as usual, and may be improved by moving the database to a tmpfs filesystem. A database has some minor advantages - simultaneous access, no client delay on rebuilds - but mainly, it's simpler and more robust. Ken Lalonde UUNET Canada
Re: Shared Active patch for NNRPD
Author: Matt Dillon
Date: Mon, 20 Oct 1997 00:00
Date: Mon, 20 Oct 1997 00:00
28 lines
1893 bytes
1893 bytes
:In article <62gf1f$f00$1@newssvr03-int.news.prodigy.com>,
:bill davidsen <davidsen@tmr.com> wrote:
:>In article <62gaag$h2i$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
:>| :In article <62g6tp$2u5q$1@newssvr03-int.news.prodigy.com>,
:..
:>Well, if you let any process do the update, that wouldn't happen.
:>Assume that each process to look at the hash table checks the age,
:>and if the refresh is more the N sec old does a lock, update and
:>refresh. That protects against the death of a single process
:>hurting anything (assuming the lock gets cleared on death).
:>
:>--
:> bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
There really isn't any need to add that sort of complexity. If the
nnrpd's access the shared memory read-only with only the parent accessing
it r/w, it is both much safer and much less complex from a coding
perspective. It generally isn't a good idea to code in redundancy on the
assumption that your primary access method is buggy. Much better to
design a less complex primary access method and pound on it until all the
bugs are gone.
-Matt
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