🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
48 messages
48 total messages Started by Ragnar Lonn Tue, 01 Dec 1998 00:00
INN2.2 - articles late to appear on NFS-clients?
#33433
Author: Ragnar Lonn
Date: Tue, 01 Dec 1998 00:00
32 lines
2416 bytes
Ok, here's another interesting problem :-)
We have a setup where one server runs innd and writes articles and
overview to the NFS-mounted spool (a Netapp filer). The history db is kept 
locally. The server NFS-exports ~news/db and ~news/etc to two reader servers 
that mount those directories to get access to config files and the history db. 
The reader servers also mount the spool/overview from the Netapp filer.

Now, with INN 1.7x this worked pretty well but with INN2.2 (981129 snapshot)
and CNFS we have one little problem. When an article has been received by 
innd, the reader server will see the active file updated immediately and thus 
they will tell all the newsreaders connected that there's a new article in 
whatever group the article was posted to (when they do e.g. a GROUP command) 
but when the newsreaders try to get XOVER data or the article itself, the 
reader servers can't find it until several minutes later. I figured this has 
to be because of the NFS mounts - the reader servers aren't informed of 
changes to the overview/cycbuff files, or something.

Now, why did this work in 1.7?  Well maybe because we weren't running CNFS?
I *suspect* it may have something to do with the way the system writes to 
cycbuff and overview files. It may be that the NFS system doesn't propagate
changes to files unless they are closed and INN keeps files open pretty long 
for performance reasons (to avoid having to open and close them all the time).
It could also be an MMAP issue. I'm going to try and install an innd and 
overchan that have been compiled with "HAVE_MMAP 0" to see if that
affects anything but I'd appreciate any input, especially from people who may
be running a similar setup.

Regards,

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33440
Author: BARRY BOUWSMA IS A PEDOPHILE
Date: Wed, 02 Dec 1998 00:00
80 lines
4975 bytes
On Wed, 2 Dec 1998, Ragnar Lonn wrote:

> However, instead of *that* problem, another, more serious one appeared :-(
> Everything actually worked fine yesterday but today we suddenly saw some error 
> messages from nnrpd in the logs:
> Dec  2 18:36:44 zingo nnrpd[10338]: fgate01.radi.se actived socket 
> returned a different request-ID 826152018/825849033

Yeah, this happens quite a bit here with (relatively) high reader loads.
Nothing seems to be immediately amiss, and this doesn't guarantee that
failure is imminent.


> Then, after a while, the nnrpd's couldn't talk to actived anymore, apparently,
> and the log messages became:
> Dec  2 19:19:44 zingo nnrpd[12109]: t1o21p21.telia.com NOT using actived

(Side mumble, how is it that Telia is able to read from everyone's
machines, including ours?)

This happens when a response from actived is not received within the
timeout period, something like ten seconds.  I've tried upping it
somewhat, with no apparent improvement.  It appears that if you don't
get a quick response, you're not going to get one at all, so it seems.


> but if we don't have it, reader service is *a lot* slower and more resource-
> consuming. In this case, after nnrpd starts reporting that it isn't using 
> actived the number of nnrpd's on the system begins to rise, likely because
> the users thinks things are too slow so they try to reconnect, and so does
> the load on the system. Right now, the reader servers stay at around 900
> or so, load average, which is a subtle indication that something is amiss :-I

Hey, what is this, another DSW or something?

Trust me, as you have found out, you do *not* want to let this happen.
The number of nnrpds rises because instead of a response being returned
in a tenth of a second or so, you have to hash the active file for every
connection which takes well over ten seconds, so that the rapid connect-
download-one-article-disconnect-reconnect-repeat-ad-nauseam is no longer
happening and you have many more parallel nnrpds all hashing the active
file at the same time and not being responsive to allow a quick disconnect.

In fact, you really want to hack the code so that instead of bitching
loudly before falling back on the conventional hashing of the active
file for every nnrpd, which as you have seen results in little more
than an increasing spiral of doom until, well, until someone logs in
and kills off all the readers to bring the load down to tolerable
levels, or at 2 the next morning when people have given up and gone to
sleep so that the number of readers has dropped to the point where
actived can take over again...

You really want to fix things so that you never fall back the way the
code is written.  Instead, you want to hack the code so that if you
don't get a response from actived at connect time, you return a temporary
failure message.  We do that now, and it's made a big difference as to
whether I can sleep evenings without having nightmares about whether
the swerver load is in triple digits or four.  Usually things return to
normal a few seconds later, although some of our customers have raised
many an eyebrow about my choice of the failure message.  It's strictly
a defensive measure, kicking off those new readers who are about to
topple things over before things actually start to topple and suck for
everyone, not just the few who get temporarily inconvenienced.

I haven't analyzed exactly when this is likely to happen, although it is
invariably during our peak reader loads, and often corresponds with one
dial-up making anywhere from ten to 25 simultaneous parallel connections
with some crudware so-called alleged reader.


> did also work fine with INN 1.7 - has the actived system really changed
> that much since then?  

I doubt it, as I see this with 1.7 exactly as you do, and only seems to
be worse now with an approximate doubling of reader load using abusive
programs to suck out as many pr0n binariez as they can get before the
karlkancels wipe them out.


Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33446
Author: Ragnar Lonn
Date: Wed, 02 Dec 1998 00:00
39 lines
2450 bytes
In article , prl@algo.net (Ragnar Lonn) wrote:
>However, instead of *that* problem, another, more serious one appeared :-(
>Everything actually worked fine yesterday but today we suddenly saw some error 
>messages from nnrpd in the logs:
>
>Dec  2 18:36:44 zingo nnrpd[10338]: fgate01.radi.se actived socket 
>returned a different request-ID 826152018/825849033
>
>Then, after a while, the nnrpd's couldn't talk to actived anymore, apparently,
>and the log messages became:
>
>Dec  2 19:19:44 zingo nnrpd[12109]: t1o21p21.telia.com NOT using actived
>

Hmm, cool. Now I get all sorts of error messages:

Dec  3 00:03:49 zingo nnrpd[492]: david.publ.ica.se actived socket couldnt be 
read FINDRESP Connection refused
Dec  3 00:03:49 zingo nnrpd[546]: dialup239-1-2.swipnet.se actived socket 
couldnt be read AYTACK Connection refused
Dec  3 00:03:51 zingo nnrpd[492]: david.publ.ica.se actived socket couldnt be 
read FINDRESP Connection refused
Dec  3 00:03:52 zingo nnrpd[546]: dialup239-1-2.swipnet.se actived socket 
couldnt be read AYTACK Connection refused
Dec  3 00:03:52 zingo nnrpd[544]: destroyer.his.ki.se NOT using actived
Dec  3 00:03:52 zingo nnrpd[545]: sdu2-225.ppp.algonet.se NOT using actived
Dec  3 00:03:53 zingo nnrpd[546]: dialup239-1-2.swipnet.se NOT using actived
Dec  3 00:03:53 zingo nnrpd[547]: 195.100.240.179 actived socket couldnt be 
read AYTACK Connection refused

This after copying the binaries from the writer host and rebooting the reader
host to get a fresh start (hard to kill old processes when the load is at 900 
- easier to just reboot).

Well, something seems to be seriously wrong with actived!

  /Ragnar

Re: INN2.2 - articles late to appear on NFS-clients?
#33456
Author: Elena Samsonova
Date: Wed, 02 Dec 1998 00:00
15 lines
1278 bytes
Ragnar,

We are running exactly the same setup, exept that I use the traditional
storage method.  Since NetApp filers have no problem of a high file
count in a directory (up to 4mln is supported), I see no point in
switching to CNFS (there are too many problems with it, judging by this
newsgroup ;).  Your system worked fine with INN 1.7 probably just
because you were using the traditional storage method.  Our system works
fine.


Regards
Elena

INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33458
Author: Ragnar Lonn
Date: Wed, 02 Dec 1998 00:00
66 lines
3495 bytes
In article <36650CED.5F12611E@wxs.nl>, Elena Samsonova <E.Samsonova@wxs.nl> 
wrote:
>Ragnar,
>
>We are running exactly the same setup, exept that I use the traditional
>storage method.  Since NetApp filers have no problem of a high file
>count in a directory (up to 4mln is supported), I see no point in
>switching to CNFS (there are too many problems with it, judging by this
>newsgroup ;).  Your system worked fine with INN 1.7 probably just
>because you were using the traditional storage method.  Our system works
>fine.
>

Aha, interesting!  And your server handles a full incoming feed without 
trouble?  That's the reason we chose to upgrade in the first place - reader
service was fine but sometimes the server lagged behind with the incoming
article reception under INN 1.7. So I thought that if we upgraded to 2.x 
that had CNFS with reader support, all our troubles would be over. Hmm, 
perhaps a bit naive of me :-)  

Anyhow, the problem with the delayed appearance of articles on the reader
servers suddenly went away. I'm sorry to say I don't know exactly why it went
away - I have been switching innd, nnrpd, and actived binaries quite a lot, 
trying out differently compiled versions so it's hard to say what fixed it. 

However, instead of *that* problem, another, more serious one appeared :-(
Everything actually worked fine yesterday but today we suddenly saw some error 
messages from nnrpd in the logs:

Dec  2 18:36:44 zingo nnrpd[10338]: fgate01.radi.se actived socket 
returned a different request-ID 826152018/825849033

Then, after a while, the nnrpd's couldn't talk to actived anymore, apparently,
and the log messages became:

Dec  2 19:19:44 zingo nnrpd[12109]: t1o21p21.telia.com NOT using actived

Actived is absolutely vital for us. I don't know how it is for you (Elena?) 
but if we don't have it, reader service is *a lot* slower and more resource-
consuming. In this case, after nnrpd starts reporting that it isn't using 
actived the number of nnrpd's on the system begins to rise, likely because
the users thinks things are too slow so they try to reconnect, and so does
the load on the system. Right now, the reader servers stay at around 900
or so, load average, which is a subtle indication that something is amiss :-I
and you have to wait for ages for an article to be delivered.

Funny thing is, everything seems to work fine on the writer host. The only
difference is that the reader hosts NFS-mount ~news/etc and ~news/db
from the writer host, otherwise the systems are pretty identical. This setup
did also work fine with INN 1.7 - has the actived system really changed
that much since then?  

Regards,

  /Ragnar










Re: INN2.2 - articles late to appear on NFS-clients?
#33469
Author: Ragnar Lonn
Date: Wed, 02 Dec 1998 00:00
30 lines
2027 bytes
In article <1rsoeyk4af.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme 
<kjetilho@haey.ifi.uio.no> wrote:
>[Elena Samsonova]
>
>>   We are running exactly the same setup, exept that I use the
>>   traditional storage method.  Since NetApp filers have no problem
>>   of a high file count in a directory (up to 4mln is supported),
>
>Have you tried it?  A colleague of mine ran into problems with his
>NetApp and control.cancel.  Here's a transcript he sent me:
>

Actually, we ran into the control.cancel horror too. We experienced the
filer suddenly using 100% CPU and not being able to deliver NFS service
for a couple of minutes at a time. It happened with fairly regular intervals
and the cause was, of course, a control/cancel directory with hundreds
of thousands of files that caused the filer to lock up whenever it had to
access the directory (to store a newly arrived control message). We did
a temporary workaround to keep that directory fairly clean but I think Netapp
might have altered their software so it handles a really large number of
files in a single directory better than it used to.

Mind you, most Unix servers die (performance-wise) long before they reach a 
couple of 100,000 files in a single directory. 

  /Ragnar



Re: INN2.2 - articles late to appear on NFS-clients?
#33471
Author: Kjetil Torgrim Homme
Date: Wed, 02 Dec 1998 00:00
33 lines
1739 bytes
[Elena Samsonova]

>   We are running exactly the same setup, exept that I use the
>   traditional storage method.  Since NetApp filers have no problem
>   of a high file count in a directory (up to 4mln is supported),

Have you tried it?  A colleague of mine ran into problems with his
NetApp and control.cancel.  Here's a transcript he sent me:

  $ pwd
  /var/spool/news/control
  $ touch foo
  $ cd cancel/
  $ touch foo
  touch: foo: No space left on device
  $ ls -f | wc -l
    327680

That's way below 4 million files... (there was 8 GB and 1.7m inodes
free)

>   I see no point in switching to CNFS (there are too many problems
>   with it, judging by this newsgroup ;).  Your system worked fine
>   with INN 1.7 probably just because you were using the traditional
>   storage method.  Our system works fine.

If you don't switch to CNFS, there's no point switching to INN 2.x, I
think.


Kjetil T.

Re: INN2.2 - articles late to appear on NFS-clients?
#33476
Author: Elena Samsonova
Date: Wed, 02 Dec 1998 00:00
49 lines
2683 bytes
Kjetil Torgrim Homme wrote:
> >   We are running exactly the same setup, exept that I use the
> >   traditional storage method.  Since NetApp filers have no problem
> >   of a high file count in a directory (up to 4mln is supported),
> 
> Have you tried it?  A colleague of mine ran into problems with his
> NetApp and control.cancel.  Here's a transcript he sent me:
> 
>   $ pwd
>   /var/spool/news/control
>   $ touch foo
>   $ cd cancel/
>   $ touch foo
>   touch: foo: No space left on device
>   $ ls -f | wc -l
>     327680

Perhaps your colleague did not set 'maxfiles' to a high enough number. 
Indeed I tried it, and it worked fine with 1.2mln files in
control.cancel (the highest value I've seen, although I don't do this
kind of checks very often ;)

> That's way below 4 million files... (there was 8 GB and 1.7m inodes
> free)

Oh.  Well, perhaps some other parameter then.  It works fine for me. 
Have you tried calling NetApp tech. support?  I'm getting wonderful
service.
 
> >   I see no point in switching to CNFS (there are too many problems
> >   with it, judging by this newsgroup ;).  Your system worked fine
> >   with INN 1.7 probably just because you were using the traditional
> >   storage method.  Our system works fine.
> 
> If you don't switch to CNFS, there's no point switching to INN 2.x, I
> think.

Why?  I run INN 2.1 and am happy with it (will not upgrade to 2.2 until
an official release comes out).  And I did not upgrade from an earlier
INN but from another newsserver.  However, one of my peers had
performance problems with 1.7 which were completely solved with 2.1 on
the same server configuration (but I can't tell you more).  So I think
there are reasons for upgrading even if you don't use CNFS.
 

Regards
Elena

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33481
Author: Joe Greco
Date: Thu, 03 Dec 1998 00:00
28 lines
2017 bytes
In news.software.nntp article <7460l7$sl7$3@pepsi.tninet.se>, prl@algo.net (Ragnar Lonn) wrote:
:In article <745hk0$l8d@newsops.execpc.com>, jgreco@ns.sol.net (Joe Greco) 
:wrote:
:>Getting lots of the ID mismatches is typically a sign that you have a
:>flaky UDP/IP stack.  The whole idea of the mismatch and retry code was
:>to give it a reasonable chance of working on an unreasonable platform.
:>
:
:Aha. By the way, I did once have problems starting the actived from the
:2.2 distribution and apparently it couldn't bind the UDP port because the
:address was already in use. Shouldn't actived set SO_REUSEADDR on
:the socket after creating it?  At least with TCP servers that's often a
:good strategy but I haven't written any UDP stuff (for Unix) so I don't know.

I believe that my codebase does.  The code that ISC is using appears to
be somewhat dated, with a few changes that I've suggested over time.

Oh, wait, no, it doesn't.

On second thought, why the hell should it have to?  Unlike a TCP
connection, UDP is not stateful and the connections shouldn't linger
around tying up the port once the process is gone.

Hmm.

... JG

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33485
Author: BARRY BOUWSMA IS A PEDOPHILE
Date: Thu, 03 Dec 1998 00:00
54 lines
3481 bytes
On Thu, 3 Dec 1998, Ragnar Lonn wrote:

> What?  I don't understand. Is it the devil or the penguin who has the highest
> load average?

Yes.

No wait, those are lemmings.


> Well, a little patching can do wonders. I usually try to avoid continuous 
> patching, though. Too much work - you have to follow all developments and

Sez who you do?  All you need to do is fork your codebase from that which
sane people are using and never look back.  Do your own research and
developments.  A guarantee of job security, until someone takes a look at
the twisted ribbons of code that the swerver is running on and decides it
would be best to hire a consultant to come in.  Of course, for such a
possibility, you have already hot-wired the door handles as well as applied
special engineering techniques to all the office furniture.


> Well, I've never experienced a not-yet-dead process not showing up with 'ps'
>  - isn't this something that happens on really loaded systems?

Yeah, I guess it depends what you do, if you can even get a response back
from `ps' if your system decides to awake from its slumber.  My guess is
that our system, which uses a different watchdog, when heavily loaded, fails
to return the expected response and so we mistakenly believe actived died.


> That's what I've been saying!  I think our systems differ and that I
> have a problem you don't have  :-)

Yeah, and I think that *I* have a problem that *you* don't!  Actually,
I think I have quite a few problems that you don't, so count your blessings
while you still can.  Of course, you have to talk swedish, so I guess that
I can be thankful while I curse the fickle finger of fate.


> >outrageous phone
> >costs that go into our pocket as well (when you're both the phone company
> 
> Yeah, you could of course add a sizeable GIF company logo to the end of
> all the articles your users download - that'd increase their phone bills!

No it wouldn't, a GIF compresses too well.  For a simple, clean, well-
designed logo with sharp lines and little detail, a JPEG is the way to
go.  Who had the bright idea to put up street maps in JPEG format on all
those web sites where all the street names and details are little more than
a blur anyways.  Furrfu.


Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33487
Author: Kjetil Torgrim Homme
Date: Thu, 03 Dec 1998 00:00
24 lines
2017 bytes
[Ragnar Lonn]

>   I stopped the show when the load reached 950 on one of the
>   servers.  You're probably right in that the system can't handle
>   the connections fast enough which causes a negative spiral but I'm
>   curious as to how this could be when I just installed a supposedly
>   improved newsserver software and are using a supposedly much
>   faster article storage scheme?  I know that CNFS may gain most
>   performance on the feeder side, of course, but there ought to be a
>   little speed increase for the readers too, I would think. Maybe
>   I'm wrong again!

HAHAHAHA!!!!!  We have thirty (30, count them, it's not hard)
concurrent readers on our box, and INN's overview system is so slow
the lusers are complaining.  Luckily, we're at a University, so I can
ignore them until I get my cunning plan in production.

Have you looked at the iostat -xPnce output (that's Solaris 2.6, I
forget what OS you run)?


Kjetil T.

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33491
Author: BARRY BOUWSMA IS A PEDOPHILE
Date: Thu, 03 Dec 1998 00:00
73 lines
5027 bytes
On 3 Dec 1998, Olaf Titz wrote:

> > did mention tagged-hash but only said it was for servers with little memory
> > (less than 256MB). Our writer host has 512MB memory so I didn't think I

But your reader host also needs to use it too, and the memory used is
not available for better things a reader box needs, like keeping a
cache of the overview data or the article files, which is particularly
important with as many readers as you have.  (One of the reasons, aside
from the weather, why I'm suffering here.)


> It switches to a different dbz index format which is slower but uses
> much less memory.

Slower?  Not significantly for the configuration which Ragnar has, where
two feeder boxen are pummeling his writer swerver, that should mean an
average of one hit and one miss per article (in the other order, mind you).

The so-called tagged-hash history (call me old-fashioned, but I'm not quite
sure how these fancy yet outwardly meaningless names get applied; me, I
tend to refer to them differently like dbz v6 for the newer MD5-based
index/hash history, and the v3 family for what goes as tagged-hash, probably
'cuz I don't bother to pay attention...) needs to hit the history text file
for every suspected hit, which is unpalatable for a transfer machine, but
for a reader getting a single feed, or two, should be quite tolerable.
The text file also needs to be consulted for those readers which retrieve
articles by message ID, such as lynx and no doubt others.  However, my
measurements have shown that with the parameters I have chosen, I can
easily do between 50 and 100 confirmations of the text file per second,
sending a feed of message IDs which have already been received.  (The
long-term rate is apparently lower because I've found that our OS blocks
every 30 seconds for about 2 seconds to update the history files with a
full incoming feed.)  Presumably, as a feed of message IDs never before
seen would not need to hit the text file except to verify a few suspected
but false positives -- actual numbers measured vary in a real feed but are
typically less than 5% -- the rate here would be even higher but I've never
tried to measure this as it is normally slowed by delivery of the fresh article
which follows...

Damn, that's a long and meaningless paragraph.  Anyway, the tagged-hash
history should be quite adequate for a reader machine, provided, as Olaf
notes, that you can keep the .pag file in RAM, which is normally not a
problem:
-rw-rw-r--   1 news     news     642089666 03 dec 22:45 history
-rw-rw-r--   1 news     news         238 03 dec 22:44 history.dir
-rw-rw-r--   1 news     news     75991196 03 dec 22:45 history.pag
Contrast this with the requirements of an early v6.0 dbz filesizes:
-rw-rw-r--  1 news  news  813258408 Dec  3 22:46 history
-rw-rw-r--  1 news  news        120 Dec  3 22:46 history.dir
-rw-rw-r--  1 news  news  177044592 Dec  3 22:40 history.hash
-rw-rw-r--  1 news  news  118029728 Dec  3 22:40 history.index

This history mechanism never hits the history text file at all, as the
data kept in the hash/index files has a sufficiently low probability of
a collision.  That's great for a feeder machine, which can do thousands
of history lookups in a few milliseconds, provided you can keep these
files in memory.  However, any readers that try to retrieve articles by
message ID will also need to poke around in these files.

As we have only 384M of memory with the box that's using dbz v6, the
expire process gets pretty resource-intensive, although it does finish
in half an hour, but with massive swap usage, and things do get somewhat
sluggish during this time.

Note that like I caution, I haven't followed all the details of how the
2.x history format differs from that I've hacked into 1.5, as well as
the different options for storing hashed or plain message IDs, and the
other possibilities for deforming the history format far beyond what I
would recognize, so take my words with a few licks off a block of salt.


Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33494
Author: BARRY BOUWSMA IS A PEDOPHILE
Date: Thu, 03 Dec 1998 00:00
61 lines
3853 bytes
On Thu, 3 Dec 1998, Ragnar Lonn wrote:

>  but we do have a problem with all the
> penguins

STOP RIGHT THERE.  You do know that the penguin has a different way
of calculating the load average than the devil, do you not, often
appearing to have a higher load average?


> >Give the redneck a redneck!  Hang 'em high!  Find the code for XGetGroupList()
> 
> I think the function is called GRPfind() which in turn calls
> GRPactivedfind()  (nnrpd/group.c)

Yeah well, I'm still going from 1.7 code with the patch to rename the old
GetGroupList as XGetGroupList.  Once in a while I take a look at 2.x to
see if there might be something there I can steal, but then I usually decide
it's time for another beer after I read the latest from inn-workers instead.
Our customers are complaining that we're running old software, but when it
was faster to respond to readers than Typhoon on a much faster box, I'm not
about to give up the chance for a relaxed beer instead of troubleshooting.


>  I'd rather have a working actived that dies now and then than the 
> opposite.

Are you sure it really dies, or that during the times you think it's
dead, it really isn't?  I see on occasion that the restarted actived
isn't able to start properly probably because it never was really dead,
just that the system was too busy to figure it out properly.  But then
again, we're not using any penguins here, so I don't think actived is
normally dying as much as weekly.


> Well, our logs have been filled with "Connection reset by peer" for as long

Yeah, but I used to see more than that, like perl filter rejection notices...
And I'd see more than part of a second of log notices on the screen at
once.  No more.


> Umm, actually, when I look now, I see there are enormous amounts of
> context switching going on. With 206 nnrpd's on one reader machine with
> load average 60-80

*gulp*  Hmmm, methinks something be wrong, since I've had loads around 1
with 200 readers most of the time, and only at around 350 readers do
things start to take off.  That's with a small amount of hacking to 1.7
though to drop the load from what it had been otherwise.  And this one
machine is doing everything, suffering readers as well as writing and
filtering and decoding all the warez and mp3s and kitty pr0n into a
special directory just for me.  The actived failures start to happen when
the load reaches around 15 or so, which matches upwards of 350 readers
sucking the news as fast as they can to avoid paying the outrageous phone
costs that go into our pocket as well (when you're both the phone company
and the ISP, your bosses reward you well for keeping performance low to
force people to stay online longer, wotta deal).


Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33496
Author: BARRY BOUWSMA IS A PEDOPHILE
Date: Thu, 03 Dec 1998 00:00
149 lines
9812 bytes
On Thu, 3 Dec 1998, Ragnar Lonn wrote:

> brag about it, we enabled read access for the whole country (*.se) as

Yeah, well, I mean, that's not much, now, is it?  Maybe a third of
the population of �rhus or something?  Some fraction of our base of
paying customers?  ;-)  And presumably the Swedes know how to spend
their free time, like hunting whales or driving reindeer or whipping
each other in the sauna, unlike the danes who open all the windows
to let out the last remaining bit of warmth as they spend an exciting
fun-filled evening around the ubiquitous home computer.


> Hmm, the above sounds a bit obvious when I re-read it: with no programs
> running, the system works fine.

Bingo.  I believe you have just discovered the essential karma of the
business.  I make use of it often.  Every now and then, I wander down into
the machine room after donning earplugs to mute the sound of the alarm,
cleanly sever the 622Mbit/sec cable feeding the swerver farm with a
finely-honed axe, and wander aimlessly back upstairs after giving the
thumbs-up sign to the Helldesk which has suddenly become rather busy,
and enjoy a few minutes of quiet until the large men in dark clothing
with the beeping pagers arrive from a 45km drive to mean the end of the
system working fine.


> is that a newly spawned nnrpd doesn't get a response quickly enough from
> actived which causes it to get smart and decide to take matters into its own 
> hands - a real redneck, so to speak - and scan the active file by itself.

Give the redneck a redneck!  Hang 'em high!  Find the code for XGetGroupList()
and put your hacking skills to suitable abuse!
    syslog(L_ERROR, "%s NOT using actived",
        ClientHost);
/* Bail out now while the load is still low before it's too late */
        Reply("%d CATASTROPHIC SERVER FAILURE!!!!!!!!  AIEEEE, WE ARE GOING DOWN

Or something like that.  Depends on how antagonistic a relationship you want
with your luserbase and your Helldesk.  This also assumes that actived is
normally working without failure, and that you have plans to restart it
automatically otherwise.  The only time it's been a problem here is when
the load has reached double-digits during peak hours, and that's resulted
in the temporary unresponsiveness I've seen.


> But... how come this didn't happen in 1.7x ?  I know you write that you
> see it in 1.7 too but I *never* saw it in 1.7 despite running it for a year or
> two. And, by the way, we had the actived from 1.7 dying on us several 

No real ideas, just as I don't know why, for the week I was away getting
mugged in CZ this was never a problem, but started with a vengeance on
Monday evening.

Possible ideas -- it may depend on the size of the active file (I really
need to take a weed-whacker to mine, again), and it could very likely be
a result of more widespread use of abusive readers that make multiple
connections that are closed after every article.  It used to be that I
could see something in the logs other than
Dec  2 22:27:52 news-inn nnrpd[181604]: ip97.sdbnxr1.ras.tele.dk connect
Dec  2 22:27:52 news-inn nnrpd[93794]: ip97.sdbnxr1.ras.tele.dk connect
Dec  2 22:27:52 news-inn nnrpd[169062]: ip97.sdbnxr1.ras.tele.dk connect
Dec  2 22:27:53 news-inn nnrpd[12124]: ip97.sdbnxr1.ras.tele.dk cant read Connection reset by peer
Dec  2 22:27:53 news-inn nnrpd[12124]: ip97.sdbnxr1.ras.tele.dk timeout
Dec  2 22:27:53 news-inn nnrpd[12124]: ip97.sdbnxr1.ras.tele.dk group alt.binaries.pictures.erotica.fisting 1
Dec  2 22:27:53 news-inn nnrpd[12124]: ip97.sdbnxr1.ras.tele.dk exit articles 1
groups 1
Dec  2 22:27:53 news-inn nnrpd[12124]: ip97.sdbnxr1.ras.tele.dk times user 0.020 system 0.100 elapsed 2.857
Dec  2 22:27:53 news-inn nnrpd[181604]: ip97.sdbnxr1.ras.tele.dk cant read Connection reset by peer
Dec  2 22:27:53 news-inn nnrpd[181604]: ip97.sdbnxr1.ras.tele.dk timeout
Dec  2 22:27:53 news-inn nnrpd[181604]: ip97.sdbnxr1.ras.tele.dk exit articles 0 groups 0
Dec  2 22:27:53 news-inn nnrpd[181604]: ip97.sdbnxr1.ras.tele.dk times user 0.010 system 0.040 elapsed 0.622
Dec  2 22:27:53 news-inn nnrpd[12138]: ip97.sdbnxr1.ras.tele.dk connect
Dec  2 22:27:53 news-inn nnrpd[169062]: ip97.sdbnxr1.ras.tele.dk cant read Connection reset by peer
Dec  2 22:27:53 news-inn nnrpd[169062]: ip97.sdbnxr1.ras.tele.dk timeout
Dec  2 22:27:53 news-inn nnrpd[169062]: ip97.sdbnxr1.ras.tele.dk exit articles 0 groups 0
Dec  2 22:27:53 news-inn nnrpd[169062]: ip97.sdbnxr1.ras.tele.dk times user 0.020 system 0.040 elapsed 0.591
Dec  2 22:27:53 news-inn nnrpd[93794]: ip97.sdbnxr1.ras.tele.dk cant read Connection reset by peer
Dec  2 22:27:53 news-inn nnrpd[93794]: ip97.sdbnxr1.ras.tele.dk timeout
Dec  2 22:27:53 news-inn nnrpd[93794]: ip97.sdbnxr1.ras.tele.dk exit articles 0
groups 0
Dec  2 22:27:53 news-inn nnrpd[93794]: ip97.sdbnxr1.ras.tele.dk times user 0.020 system 0.070 elapsed 0.710
Dec  2 22:27:53 news-inn nnrpd[11628]: ip97.sdbnxr1.ras.tele.dk connect
Dec  2 22:27:53 news-inn nnrpd[93806]: ip97.sdbnxr1.ras.tele.dk connect
Dec  2 22:27:53 news-inn nnrpd[169072]: ip97.sdbnxr1.ras.tele.dk connect
Dec  2 22:27:54 news-inn nnrpd[12138]: ip97.sdbnxr1.ras.tele.dk cant read Connection reset by peer
Dec  2 22:27:54 news-inn nnrpd[12138]: ip97.sdbnxr1.ras.tele.dk timeout
Dec  2 22:27:54 news-inn nnrpd[12138]: ip97.sdbnxr1.ras.tele.dk exit articles 0
groups 0
Dec  2 22:27:54 news-inn nnrpd[12138]: ip97.sdbnxr1.ras.tele.dk times user 0.010 system 0.050 elapsed 0.664
Dec  2 22:27:54 news-inn nnrpd[11628]: ip97.sdbnxr1.ras.tele.dk cant read Connection reset by peer
Dec  2 22:27:54 news-inn nnrpd[11628]: ip97.sdbnxr1.ras.tele.dk timeout
Dec  2 22:27:54 news-inn nnrpd[11628]: ip97.sdbnxr1.ras.tele.dk exit articles 0
groups 0
Dec  2 22:27:54 news-inn nnrpd[11628]: ip97.sdbnxr1.ras.tele.dk times user 0.020 system 0.060 elapsed 0.514
Dec  2 22:27:54 news-inn nnrpd[93806]: ip97.sdbnxr1.ras.tele.dk cant read Connection reset by peer
Dec  2 22:27:54 news-inn nnrpd[93806]: ip97.sdbnxr1.ras.tele.dk timeout
Dec  2 22:27:54 news-inn nnrpd[93806]: ip97.sdbnxr1.ras.tele.dk exit articles 0
groups 0
Dec  2 22:27:54 news-inn nnrpd[93806]: ip97.sdbnxr1.ras.tele.dk times user 0.050 system 0.010 elapsed 0.542
Dec  2 22:27:54 news-inn nnrpd[169072]: ip97.sdbnxr1.ras.tele.dk cant read Connection reset by peer
Dec  2 22:27:54 news-inn nnrpd[169072]: ip97.sdbnxr1.ras.tele.dk timeout
Dec  2 22:27:54 news-inn nnrpd[169072]: ip97.sdbnxr1.ras.tele.dk exit articles 0 groups 0
Dec  2 22:27:54 news-inn nnrpd[169072]: ip97.sdbnxr1.ras.tele.dk times user 0.010 system 0.050 elapsed 0.537
Dec  2 22:27:54 news-inn nnrpd[169074]: ip97.sdbnxr1.ras.tele.dk connect
[and so on]

That's actually pretty benign, as I couldn't quickly find the second of
time where we got ten connections from one dial-up plus a dozen or so
from other dial-ups.

Also, how has your number of readers changed since the time you were
running 1.7?  Although, as I note, it's really difficult to guess with
some 90% of reader software only connecting long enough to download a
single article, so that the number of actual readers has little bearing
on the number of nnrpd processes (and with multiple processes like above
from one customer, well, who knows).  What about the load on your machine?
We see problems when the load reaches double-digits, so presumably then
the new connections aren't serviced fast enough.

Our current reader machine is too slow to even do adequate feed filtering
(but normally disk access is not a problem), so we may be hitting the
point where we can't do context switching fast enough, or something.
I haven't tried to analyze why, as it's more important to do something
about it than to know what to do.

It would be my guess that the machine-gun-type connections that are
depressingly common nowadays are what is able to push you over the edge
while in the past, connections which arrived while actived was dead were
able to be serviced before too many new ones arrived, but that's only a
guess, along with an increase in the Swedish population.


> And...if I start actived a little while before any nnrpd's get started, 
> shouldn't it already have the active file cached and ready to be served
> within a few picoseconds (well, at least within 10 seconds...) to the first,

You are talking about what you saw after reboot, I presume.  What I saw
there looks more like a failure of actived, and I've never seen them at
all myself, apart from in the source code.


>  How much can go wrong?  Argh!

You're new to the business, no?  ;-)  I'm sure others can give far more
interesting stories than I have to offer.


Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33499
Author: Aidan Cully
Date: Thu, 03 Dec 1998 00:00
33 lines
2300 bytes
In news.software.nntp, prl@algo.net (Ragnar Lonn) wrote:
> In article <Pine.LNX.4.00.9812030333100.202-100000@coredump.int.tele.dk>, 
> BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
> >the near future, but not necessarily.  For example, this evening as I
> >walked aimlessly through the frigid foggy air coating everything with
> >thick hoarfrost, there were many times when the mismatch was logged,
> >but never did we fail to get a response from actived (that is, I never
> >saw the NOT using actived message we log before botting off the victim).
> >
> 
> Well, that still doesn't explain why the load skyrockets on my poor servers,
> which don't log "NOT using actived" but still suffer from stress symptoms.
> Or maybe it could be something with the fog?  Still, it's not foggy *here*...

Did you pass --enable-tagged-hash to configure when you ran it?  That
sounds a fair bit like symptoms I got when I forgot to do that on our
test boxes.

I'm sure this has been hashed and rehashed almost as many times as the
history dbz itself, but does anyone know why the tagged-hash isn't the
default?  It seems to me that few enough INN installations can support
the non-tagged, and those admins that want to glean the extra
performance (and how much of a performance win can there be?) will know
to pass the --disable command line arg, so why isn't the tagged hash
the default?

--aidan
-- 
Aidan Cully       "Umm..  Could you call back?  My house is on fire."
Panix Staff          --Tom Waits
aidan@panix.com

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33500
Author: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
28 lines
2031 bytes
In article <745hk0$l8d@newsops.execpc.com>, jgreco@ns.sol.net (Joe Greco) 
wrote:
>Getting lots of the ID mismatches is typically a sign that you have a
>flaky UDP/IP stack.  The whole idea of the mismatch and retry code was
>to give it a reasonable chance of working on an unreasonable platform.
>

Aha. By the way, I did once have problems starting the actived from the
2.2 distribution and apparently it couldn't bind the UDP port because the
address was already in use. Shouldn't actived set SO_REUSEADDR on
the socket after creating it?  At least with TCP servers that's often a
good strategy but I haven't written any UDP stuff (for Unix) so I don't know.

>There are numerous inefficiencies in the whole nnrpd mechanism, and I
>don't know which one you're running into.  :-)
>

Well, me neither :-)  Thanks for trying though. I'll work a little more with
this but if I can't get it right I'll revert to traditional storage and then 
back to an older INN release if that doesn't help. 2.2 is a beta, after
all, and perhaps I should have followed e.g. inn-workers before installing
it.

Regards,

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33502
Author: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
119 lines
7025 bytes
In article <Pine.LNX.4.00.9812030138200.202-100000@coredump.int.tele.dk>, 
BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>On Thu, 3 Dec 1998, Ragnar Lonn wrote:
>paying customers?  ;-)  And presumably the Swedes know how to spend
>their free time, like hunting whales or driving reindeer or whipping

No, you're mixing us up with the Norwegians. Here, we are far too many
 - at least it seems that way when I look at the load average on my news
servers or at the crowds on the bus during rush hour. We don't have any whales
either, maybe a seal here and there, but we do have a problem with all the
penguins, polar bears, and troublesome vikings out on the streets.

>Bingo.  I believe you have just discovered the essential karma of the
>business.  I make use of it often.  Every now and then, I wander down into
>the machine room after donning earplugs to mute the sound of the alarm,
>cleanly sever the 622Mbit/sec cable feeding the swerver farm with a
>finely-honed axe, and wander aimlessly back upstairs after giving the

The problem here is that our offices aren't located anywhere near the 
machine room. Our postmaster does have an axe on her desk for when
she needs to deal with spammers so I guess I could borrow that but
it's a lot of trouble going to the machine hall every day to sever the
cable to the news servers. Of course, it's only a 100Mbps connection
so maybe it'll do if I cut it less often?

>Give the redneck a redneck!  Hang 'em high!  Find the code for XGetGroupList()
>and put your hacking skills to suitable abuse!
>    syslog(L_ERROR, "%s NOT using actived",
>        ClientHost);
>/* Bail out now while the load is still low before it's too late */
>        Reply("%d CATASTROPHIC SERVER FAILURE!!!!!!!!  AIEEEE, WE ARE GOING
> DOWN
>

Well, as I mentioned (did I?), right now I don't get any "NOT using actived" 
messages so it appears actived is indeed being used by all nnrpd's. I do get
the request-ID mismatch messages, but from the code (nnrpd/group.c) it
looks as if that won't cause nnrpd to stop talking to actived so it shouldn't
affect performance if the problem was only caused by nnrpds reading the
active file by themselves. I may be wrong, of course, but as they say -
what's right's what's left when you do everything wrong! 

I think the function is called GRPfind() which in turn calls
GRPactivedfind()  (nnrpd/group.c)

>Or something like that.  Depends on how antagonistic a relationship you want
>with your luserbase and your Helldesk.  This also assumes that actived is
>normally working without failure, and that you have plans to restart it
>automatically otherwise.  The only time it's been a problem here is when

Yeah well, INN 1.7 actived usually stays up for a week or two, which would
be a good uptime if we were discussing aphrodisiacs or hanggliding, but then 
it dies so we have been using a script to restart it and it has worked pretty 
well. I'd rather have a working actived that dies now and then than the 
opposite.

>Possible ideas -- it may depend on the size of the active file (I really
>need to take a weed-whacker to mine, again), and it could very likely be
>a result of more widespread use of abusive readers that make multiple
>connections that are closed after every article.  It used to be that I
>could see something in the logs other than
<snip>

Well, our logs have been filled with "Connection reset by peer" for as long
as I can remember almost!  (of course, my memory is notoriously bad so
I'm not sure that's a significant statement)  So I don't *think* that's the
problem. Also, the number of readers isn't likely to have skyrocketed
the last couple of days just at the moment when we upgraded to 2.2.
Could have, but not very likely!

>from one customer, well, who knows).  What about the load on your machine?
>We see problems when the load reaches double-digits, so presumably then
>the new connections aren't serviced fast enough.

Yeah well the load starts out at 2-3 when readers start to connect, then it 
just slowly but steadily climbs until it reaches unforeseen heights... I 
stopped the show when the load reached 950 on one of the servers. 
You're probably right in that the system can't handle the connections fast
enough which causes a negative spiral but I'm curious as to how this could
be when I just installed a supposedly improved newsserver software and
are using a supposedly much faster article storage scheme?  I know that
CNFS may gain most performance on the feeder side, of course, but there
ought to be a little speed increase for the readers too, I would think. Maybe
I'm wrong again!

>Our current reader machine is too slow to even do adequate feed filtering
>(but normally disk access is not a problem), so we may be hitting the
>point where we can't do context switching fast enough, or something.
>I haven't tried to analyze why, as it's more important to do something
>about it than to know what to do.
>

Umm, actually, when I look now, I see there are enormous amounts of
context switching going on. With 206 nnrpd's on one reader machine with
load average 60-80 I see between 7000 and 13000 cs per second!  That's
quite a lot for a poor Ultra/170!   The writer host, as comparison, does
between 400 and 1500 cs per second, has a load average of about 3.5,
23 nnrpd's, and 13 incoming NNTP connections from the (2) feeder machines.
But the amount of context switches on the reader host is not normal, I'll
bet our last whales on that.

>able to be serviced before too many new ones arrived, but that's only a
>guess, along with an increase in the Swedish population.

Well I guess we'll have to cut down on immigration a bit then, to avoid
overloading our newsservers!

>>  How much can go wrong?  Argh!
>
>You're new to the business, no?  ;-)  I'm sure others can give far more
>interesting stories than I have to offer.
>

Don't tempt me or I'll write a multi-threaded, horribly bug-ridden actived
myself!

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33505
Author: Joe Greco
Date: Thu, 03 Dec 1998 00:00
46 lines
3005 bytes
In news.software.nntp article <7451vk$j7d$1@pepsi.tninet.se>, prl@algo.net (Ragnar Lonn) wrote:
:In article <Pine.LNX.4.00.9812030333100.202-100000@coredump.int.tele.dk>, 
:BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
:>On Thu, 3 Dec 1998, Ragnar Lonn wrote:
:>> shouldn't be able to happen here - why is the load is still rising?
:>
:>Readers?
:>
:
:Oh yeah, you're right. The bastards....
:
:>the near future, but not necessarily.  For example, this evening as I
:>walked aimlessly through the frigid foggy air coating everything with
:>thick hoarfrost, there were many times when the mismatch was logged,
:>but never did we fail to get a response from actived (that is, I never
:>saw the NOT using actived message we log before botting off the victim).
:
:Well, that still doesn't explain why the load skyrockets on my poor servers,
:which don't log "NOT using actived" but still suffer from stress symptoms.
:Or maybe it could be something with the fog?  Still, it's not foggy *here*...

Just some observations (hey, I wrote the damn thing, it's my fault).

actived's most common failure mode appears to be high-load situations
where maybe it isn't getting CPU to run.  actived stalling is a real
bad thing.  If your loads are 50, seriously consider what you can do
to keep actived running full tilt (nice, rtprio, etc) despite the
load.

Getting lots of the ID mismatches is typically a sign that you have a
flaky UDP/IP stack.  The whole idea of the mismatch and retry code was
to give it a reasonable chance of working on an unreasonable platform.

The warez kiddiez, etc., can sometimes bomb a server into submission
by doing certain things that blow your CPU's mind.  For me and my 
rather unconventional code base, there are a few things that can be
done which mostly revolve around certain types of disconnect-connect-
disconnect-connect client behaviour.  Walking a large dir is a common
one for more traditional INN codebases.

There are numerous inefficiencies in the whole nnrpd mechanism, and I
don't know which one you're running into.  :-)

... JG

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33506
Author: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
73 lines
4494 bytes
In article <Pine.LNX.4.00.9812022329590.202-100000@coredump.int.tele.dk>, 
BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>> Dec  2 19:19:44 zingo nnrpd[12109]: t1o21p21.telia.com NOT using actived
>
>(Side mumble, how is it that Telia is able to read from everyone's
>machines, including ours?)
>

Hehe, when running INN 1.7, our system had the capacity to spare, so to
brag about it, we enabled read access for the whole country (*.se) as
that wouldn't mean using expensive foreign bandwidth. Right now, I'm 
considering disabling that read access, but I'll wait a little while and
see if I can fix the problem first... I don't think disabling it would help
much either, as less than half of the connections in a day comes from
people that aren't our own customers.

>This happens when a response from actived is not received within the
>timeout period, something like ten seconds.  I've tried upping it
>somewhat, with no apparent improvement.  It appears that if you don't
>get a quick response, you're not going to get one at all, so it seems.

Aha. That explains why it doesn't happen at all first then. With no load
on the system, things work fine. 

Hmm, the above sounds a bit obvious when I re-read it: with no programs
running, the system works fine.

>Hey, what is this, another DSW or something?
>

DSW?  Damn Slow Warez?

>Trust me, as you have found out, you do *not* want to let this happen.
>The number of nnrpds rises because instead of a response being returned
>in a tenth of a second or so, you have to hash the active file for every
>connection which takes well over ten seconds, so that the rapid connect-
>download-one-article-disconnect-reconnect-repeat-ad-nauseam is no longer
>happening and you have many more parallel nnrpds all hashing the active
>file at the same time and not being responsive to allow a quick disconnect.

Uha, I'm starting to get informed now, I think. So, what probably happens
is that a newly spawned nnrpd doesn't get a response quickly enough from
actived which causes it to get smart and decide to take matters into its own 
hands - a real redneck, so to speak - and scan the active file by itself. This
causes more load, making everything slower and increasing the chance that
the next nnrpd will do the same thing.

But... how come this didn't happen in 1.7x ?  I know you write that you
see it in 1.7 too but I *never* saw it in 1.7 despite running it for a year or
two. And, by the way, we had the actived from 1.7 dying on us several 
times - this caused increased load on the reader servers and slower
reader service overall but it *never* caused 3-figure load averages or any
'doom spirals' like in this case!

And...if I start actived a little while before any nnrpd's get started, 
shouldn't it already have the active file cached and ready to be served
within a few picoseconds (well, at least within 10 seconds...) to the first,
second, and third nnrpd's being spawned?

>I haven't analyzed exactly when this is likely to happen, although it is
>invariably during our peak reader loads, and often corresponds with one
>dial-up making anywhere from ten to 25 simultaneous parallel connections
>with some crudware so-called alleged reader.

Well, understandably there are lots of new connections being made when a
system has just been rebooted but still - how come actived is so slow to
respond to the requests?  I mean, this is a daemon that does only one
simple thing - load a file into memory and serve it to clients that ask for it
on a UDP port. How much can go wrong?  Argh!

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33507
Author: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
16 lines
1485 bytes
In article <745hpl$q9q@news1.panix.com>, aidan@panix.com (Aidan Cully) wrote:
>Did you pass --enable-tagged-hash to configure when you ran it?  That
>sounds a fair bit like symptoms I got when I forgot to do that on our
>test boxes.
>

Uh, no. Nobody (that is, the INSTALL document :-) told me about that. It
did mention tagged-hash but only said it was for servers with little memory
(less than 256MB). Our writer host has 512MB memory so I didn't think I
needed to enable tagged-hash. What does it do, more exactly?

And when should it be enabled?

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33509
Author: Kjetil Torgrim Homme
Date: Thu, 03 Dec 1998 00:00
45 lines
3045 bytes
[Ragnar Lonn]

>   >Luckily, we're at a University, so I can ignore them until I get
>   >my cunning plan in production.
>   
>   Are you going to cut the network connection with an axe?

I can't go into details, but the plan involves a demon.  (If you have
a Rich Text enabled brows^H^H^H^H^H reader, the next paragraph
contains more detail in microprint.  Choose Helvetica 720 pt for best
effect.)

. ... . .
.:�.: :.�

>   Here's the output from iostat -xPnce right now (load 200, 372
>   nnrpd's):
>   
>            cpu
>    us sy wt id
>     4 51  0 45

Hmm, load of 200 and 45% idle time.  An odd situation.

>                                 extended device statistics ---- errors --- 
>     r/s  w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b s/w h/w trn tot device
>     0.0  0.8    0.3    5.3  0.0  0.0    0.0   58.0   0   1   0   0   0   0 c0t0d0s0
>     0.0  0.0    0.0    0.1  0.0  0.0    0.0   64.5   0   0   0   0   0   0 c0t0d0s1
>     0.0  0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0   0   0   0   0 c0t0d0s2
>     0.0  0.2    0.2    1.9  0.0  0.1    0.0  190.8   0   1   0   0   0   0 c0t0d0s6
>     0.0  0.0    0.0    0.0  0.0  0.0    0.0    5.8   0   0   0   0   0   0 c0t0d0s7
>     0.0  0.0    0.0    0.0  0.0  0.0    0.1    2.1   0   0   0   0   0   0 pepsi:/news/etc
>    35.8  0.0 1057.4    0.0  0.0  0.5    0.1   12.7   0  34   0   0   0   0 pepsi:/news/db
>     2.5  0.0   20.2    0.0  0.0  0.0    0.0   16.0   0   4   0   0   0   0 pripps-nfs:/news/uniover
>     0.5  0.0    2.1    0.0  0.0  0.0    0.1   13.7   0   0   0   0   0   0 pripps-nfs:/news/overview
>    10.3  0.0   82.0    0.0  0.0  0.1    0.3    8.6   0   6   0   0   0   0 pripps-nfs:/news/cycbuff

I agree, this looks very healthy.  Non-existing wait and low %b.
(This grooves well with the 0% time wasted on waiting reported at the
top, too.)


Kjetil T. (Mr. No Bright Ideas)

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33510
Author: Fluffy
Date: Thu, 03 Dec 1998 00:00
8 lines
1421 bytes
BARRY BOUWSMA IS A PERIWINKLE <periwinkles@vszbr.cz> wrote:
> Our customers are complaining that we're running old software,

Just apply the latest patches to lib/innvers.c and they should be
quite pleased with the improved performance.


Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33511
Author: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
23 lines
1959 bytes
In article , prl@algo.net (Ragnar Lonn) wrote:
>In article <Pine.LNX.4.00.9812022329590.202-100000@coredump.int.tele.dk>, 
>BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>>Trust me, as you have found out, you do *not* want to let this happen.
>>The number of nnrpds rises because instead of a response being returned
>>in a tenth of a second or so, you have to hash the active file for every
>>connection which takes well over ten seconds, so that the rapid connect-

Hmm, I just replaced the INN 2.2 actived with the my old actived from INN 
1.7insync-whatever and now I still get those request-ID mismatches but nnrpd
never reports "NOT using actived" now. However, the load average is still 
rising, as is the number of nnrpd's on the system. 

As far as I can see, when looking at the INN 2.2 nnrpd source, the request-ID
mismatch by itself will *not* cause nnrpd to revert to getting the active file 
directly instead of via actived so your (Barry's) spiral-of-doom problem 
shouldn't be able to happen here - why is the load is still rising?

Regards,

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33512
Author: BARRY BOUWSMA IS A PEDOPHILE
Date: Thu, 03 Dec 1998 00:00
38 lines
2237 bytes
On Thu, 3 Dec 1998, Ragnar Lonn wrote:

> 1.7insync-whatever and now I still get those request-ID mismatches but nnrpd
> never reports "NOT using actived" now. However, the load average is still 
> rising, as is the number of nnrpd's on the system. 
> 
> mismatch by itself will *not* cause nnrpd to revert to getting the active file 
> directly instead of via actived so your (Barry's) spiral-of-doom problem 
> shouldn't be able to happen here - why is the load is still rising?

Readers?














Actually, the mismatch itself does not mean that nnrpd will hash the
active file itself instead of consulting actived.  That happens ONLY
when you see the NOT using actived messages.  As far as I have been
able to see, the only significance of a mismatch is that you may be
coming close to the point where actived fails to return a response in
the near future, but not necessarily.  For example, this evening as I
walked aimlessly through the frigid foggy air coating everything with
thick hoarfrost, there were many times when the mismatch was logged,
but never did we fail to get a response from actived (that is, I never
saw the NOT using actived message we log before botting off the victim).


Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33514
Author: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
24 lines
1875 bytes
In article <Pine.LNX.4.00.9812030333100.202-100000@coredump.int.tele.dk>, 
BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>On Thu, 3 Dec 1998, Ragnar Lonn wrote:
>> shouldn't be able to happen here - why is the load is still rising?
>
>Readers?
>

Oh yeah, you're right. The bastards....

>the near future, but not necessarily.  For example, this evening as I
>walked aimlessly through the frigid foggy air coating everything with
>thick hoarfrost, there were many times when the mismatch was logged,
>but never did we fail to get a response from actived (that is, I never
>saw the NOT using actived message we log before botting off the victim).
>

Well, that still doesn't explain why the load skyrockets on my poor servers,
which don't log "NOT using actived" but still suffer from stress symptoms.
Or maybe it could be something with the fog?  Still, it's not foggy *here*...

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33517
Author: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
77 lines
4264 bytes
In article <1rhfvdjttr.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme 
<kjetilho@haey.ifi.uio.no> wrote:
>HAHAHAHA!!!!!  We have thirty (30, count them, it's not hard)
>concurrent readers on our box, and INN's overview system is so slow
>the lusers are complaining.  Luckily, we're at a University, so I can
>ignore them until I get my cunning plan in production.
>

Are you going to cut the network connection with an axe?

>Have you looked at the iostat -xPnce output (that's Solaris 2.6, I
>forget what OS you run)?
>

I have checked for disk bottlenecks with iostat yes. I use "iostat -x 30" 
usually, and check the first and second output. Looks pretty OK to me. sd0
is the only disk that is a bit busy. NFS service is fast.

                               extended device statistics
device    r/s  w/s   kr/s   kw/s wait actv  svc_t  %w  %b 
sd0       0.1  1.1    0.5    7.3  0.0  0.1   89.1   0   1 
sd6       0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   0 
nfs1      0.0  0.0    0.0    0.0  0.0  0.0    6.8   0   0 
nfs2     35.8  0.0 1057.6    0.0  0.0  0.5   12.8   0  34 
nfs3      2.5  0.0   20.2    0.0  0.0  0.0   16.0   0   4 
nfs4      0.5  0.0    2.1    0.0  0.0  0.0   13.8   0   0 
nfs5     10.2  0.0   82.0    0.0  0.0  0.1    8.9   0   6 
nfs6      0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   0 
                               extended device statistics
device    r/s  w/s   kr/s   kw/s wait actv  svc_t  %w  %b 
sd0       0.0  1.6    0.0   10.4  0.0  0.2  112.2   0   1 
sd6       0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   0 
nfs1      0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   0 
nfs2     36.0  0.0 1015.4    0.0  0.0  0.3    9.4   0  30 
nfs3      3.1  0.0   24.9    0.0  0.0  0.1   16.2   0   5 
nfs4      0.1  0.0    0.4    0.0  0.0  0.0   13.9   0   0 
nfs5      6.0  0.0   48.0    0.0  0.0  0.0    8.4   0   4 
nfs6      0.0  0.0    0.0    0.0  0.0  0.0    0.0   0   0 

Here's the output
from iostat -xPnce right now (load 200, 372 nnrpd's):

         cpu
 us sy wt id
  4 51  0 45
                              extended device statistics ---- errors --- 
  r/s  w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b s/w h/w trn tot 
device
  0.0  0.8    0.3    5.3  0.0  0.0    0.0   58.0   0   1   0   0   0   0 
c0t0d0s0
  0.0  0.0    0.0    0.1  0.0  0.0    0.0   64.5   0   0   0   0   0   0 
c0t0d0s1
  0.0  0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0   0   0   0   0 
c0t0d0s2
  0.0  0.2    0.2    1.9  0.0  0.1    0.0  190.8   0   1   0   0   0   0 
c0t0d0s6
  0.0  0.0    0.0    0.0  0.0  0.0    0.0    5.8   0   0   0   0   0   0 
c0t0d0s7
  0.0  0.0    0.0    0.0  0.0  0.0    0.1    2.1   0   0   0   0   0   0 
pepsi:/news/etc
 35.8  0.0 1057.4    0.0  0.0  0.5    0.1   12.7   0  34   0   0   0   0 
pepsi:/news/db
  2.5  0.0   20.2    0.0  0.0  0.0    0.0   16.0   0   4   0   0   0   0 
pripps-nfs:/news/uniover
  0.5  0.0    2.1    0.0  0.0  0.0    0.1   13.7   0   0   0   0   0   0 
pripps-nfs:/news/overview
 10.3  0.0   82.0    0.0  0.0  0.1    0.3    8.6   0   6   0   0   0   0 
pripps-nfs:/news/cycbuff
  0.0  0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0   0   0   0   0 
zingo:vold(pid203)



>
>Kjetil T.

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33518
Author: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
50 lines
3327 bytes
In article <Pine.LNX.4.00.9812030414550.202-100000@coredump.int.tele.dk>, 
BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>STOP RIGHT THERE.  You do know that the penguin has a different way
>of calculating the load average than the devil, do you not, often
>appearing to have a higher load average?
>

What?  I don't understand. Is it the devil or the penguin who has the highest
load average?

>Our customers are complaining that we're running old software, but when it
>was faster to respond to readers than Typhoon on a much faster box, I'm not
>about to give up the chance for a relaxed beer instead of troubleshooting.

Well, a little patching can do wonders. I usually try to avoid continuous 
patching, though. Too much work - you have to follow all developments and
all that.

>>  I'd rather have a working actived that dies now and then than the 
>> opposite.
>
>Are you sure it really dies, or that during the times you think it's
>dead, it really isn't?  I see on occasion that the restarted actived
>isn't able to start properly probably because it never was really dead,
>just that the system was too busy to figure it out properly.  But then
>again, we're not using any penguins here, so I don't think actived is
>normally dying as much as weekly.

Well, I've never experienced a not-yet-dead process not showing up with 'ps'
 - isn't this something that happens on really loaded systems?  Previously,
our reader servers were never particularly loaded.

>*gulp*  Hmmm, methinks something be wrong, since I've had loads around 1
>with 200 readers most of the time, and only at around 350 readers do
>things start to take off.  That's with a small amount of hacking to 1.7

That's what I've been saying!  I think our systems differ and that I
have a problem you don't have  :-)

>sucking the news as fast as they can to avoid paying the outrageous phone
>costs that go into our pocket as well (when you're both the phone company
>and the ISP, your bosses reward you well for keeping performance low to
>force people to stay online longer, wotta deal).

Yeah, you could of course add a sizeable GIF company logo to the end of
all the articles your users download - that'd increase their phone bills!

   /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33527
Author: Elena Samsonova
Date: Fri, 04 Dec 1998 00:00
66 lines
4049 bytes
Wow, this has become a rather hot discussion! :-o

Ragnar Lonn wrote:
> 
> In article <36650CED.5F12611E@wxs.nl>, Elena Samsonova <E.Samsonova@wxs.nl>
> wrote:
> >Ragnar,
> >
> >We are running exactly the same setup, exept that I use the traditional
> >storage method.  Since NetApp filers have no problem of a high file
> >count in a directory (up to 4mln is supported), I see no point in
> >switching to CNFS (there are too many problems with it, judging by this
> >newsgroup ;).  Your system worked fine with INN 1.7 probably just
> >because you were using the traditional storage method.  Our system works
> >fine.
> >
> 
> Aha, interesting!  And your server handles a full incoming feed without
> trouble?  

That's right.  We have two full feeds coming in of which we filter
20,000 groups that we carry.  We also use Cleanfeed that examins every
article, and we deliver 2 small feeds and 1 full feed (full of what
we've got, that is) to the peers.  The feeder isn't breathing very hard
with CPU idle of 70%.  We also see no backlogs at our peers' sites that
would indicate that our server cannot handle the load.  We also never
miss any articles.  So yes, we don't have any trouble. :)

> Actived is absolutely vital for us. I don't know how it is for you (Elena?)
> but if we don't have it, reader service is *a lot* slower and more resource-
> consuming. 

I don't use actived.  I read the manual pages and thought it was tricky
on a distributed architecture.  Perhaps I'm being too cautious, but I
don't really need it at all.  I have three reader machines, Origin200
(Silicon Graphics), 2 CPU each, they are doing about 300 simultaneous
connections each and are not breathing hard (60% CPU idle, run queue
between 2.5 and 3.5).  So I don't really have a reason to use all those
advanced solutions, plain vanilla works fine for me. :)  I did however
patch nnrpd to have it cheat on the GROUP command (there was a
discussion about it in this newsgroup a while ago).  That did help!

> In this case, after nnrpd starts reporting that it isn't using
> actived the number of nnrpd's on the system begins to rise, likely because
> the users thinks things are too slow so they try to reconnect, and so does
> the load on the system. Right now, the reader servers stay at around 900
> or so, load average, which is a subtle indication that something is amiss :-I
> and you have to wait for ages for an article to be delivered.

My machines die when the load depasses 1000, poor things.  It happened
once when the filer went down with a burnt out power supply. :-o
 
> Funny thing is, everything seems to work fine on the writer host. The only
> difference is that the reader hosts NFS-mount ~news/etc and ~news/db
> from the writer host, otherwise the systems are pretty identical. 

Interesting.  So you NFS-mount these directories from your feeder to the
readers?  I just put them all on the filer so that there's only one
machine to mount for everyone.  The feeder mounts it read-write, the
readers mount it read-only.


Regards
Elena

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33540
Author: Ragnar Lonn
Date: Fri, 04 Dec 1998 00:00
74 lines
4581 bytes
In article <3667D772.2E9A8C3D@wxs.nl>, Elena Samsonova <E.Samsonova@wxs.nl> 
wrote:
>Wow, this has become a rather hot discussion! :-o

You should see the discussion our users are having about our newsserver
performance :-)

>I don't use actived.  I read the manual pages and thought it was tricky
>on a distributed architecture.  Perhaps I'm being too cautious, but I
>don't really need it at all.  I have three reader machines, Origin200
>(Silicon Graphics), 2 CPU each, they are doing about 300 simultaneous
>connections each and are not breathing hard (60% CPU idle, run queue
>between 2.5 and 3.5).  So I don't really have a reason to use all those

Well I'm not too familiar with SGI machines but unless I'm mistaken,
you're running a pair of pretty fast machines as readers then, no?  
With INN 1.7x our 170Mhz single-CPU Ultrasparc 1 machines had a
load average of about 0.5 with 100-150 or so readers on them and those
are not terribly expensive machines so that was pretty good I guess
but if we didn't use actived, the load would rise to, I think 5,6,7, maybe
8 and above all, service would be a lot slower!  I bet you could speed
things up quite a bit and get lightning performance from your system
by using actived!

And it's not tricky at all!  You just start actived and the nnrpd's will
start using it :-)

>advanced solutions, plain vanilla works fine for me. :)  I did however
>patch nnrpd to have it cheat on the GROUP command (there was a
>discussion about it in this newsgroup a while ago).  That did help!

What does the patch do?

>> Funny thing is, everything seems to work fine on the writer host. The only
>> difference is that the reader hosts NFS-mount ~news/etc and ~news/db
>> from the writer host, otherwise the systems are pretty identical. 
>
>Interesting.  So you NFS-mount these directories from your feeder to the
>readers?  I just put them all on the filer so that there's only one
>machine to mount for everyone.  The feeder mounts it read-write, the
>readers mount it read-only.
>

Yeah, I actually got the idea from a document written by engineers at
Network Appliance about using Netapp filers in newsserver applications. 
They figured a good solution would be to put articles on the filer and the
history database locally on a single machine that did all the 'writing'
(the 'writer host'). I figured so too because it'd mean the writer host got
faster access to the history database and active file, which it updates a
lot. The reader hosts would then nfs-mount ~news/etc (where the history db
was located in earlier INN versions) read-only from the writer host to get the 
config files in that dir and for the rare occasion when nnrpd needs to access 
the history db directly. The nnrpd's do of course access the active file a lot 
so to avoid overloading the local disk on the writer host with nfs-accesses to 
~/news/etc/active it is very important to run actived on the *reader* hosts.

But...as Netapp themselves like to brag, their filers can actually be faster
than local disks if they (the filers) aren't too heavily loaded and the 
network is fast so I'm not completely sure how much there is to gain from
using a local disk for the history db and all that stuff. The machine should 
be able to cache things in local memory much better than when updating
files on an NFS server but how much does that help, really?  The Netapp
caches write operations too, and very efficiently. I really don't know if 
there is any actual performance to gain from this approach. One thing that
is nice about it, though, is the fact that we only need to update one set
of config files no matter how many reader servers we install.

Regards,

  /Ragnar



Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33542
Author: Ragnar Lonn
Date: Fri, 04 Dec 1998 00:00
25 lines
2212 bytes
In article <Pine.LNX.4.00.9812032242510.202-100000@coredump.int.tele.dk>, 
BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>Sez who you do?  All you need to do is fork your codebase from that which

fork is too expensive, you should try threading instead.

>Yeah, and I think that *I* have a problem that *you* don't!  Actually,
>I think I have quite a few problems that you don't, so count your blessings
>while you still can.  Of course, you have to talk swedish, so I guess that
>I can be thankful while I curse the fickle finger of fate.

Actually, here at work we normally speak danish because we find it a
naturally beautiful language that we would all very much like to learn better.

>> Yeah, you could of course add a sizeable GIF company logo to the end of
>> all the articles your users download - that'd increase their phone bills!
>
>No it wouldn't, a GIF compresses too well.  For a simple, clean, well-
>designed logo with sharp lines and little detail, a JPEG is the way to

Yeah, yeah but what about *your* logo?

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33547
Author: Ragnar Lonn
Date: Fri, 04 Dec 1998 00:00
34 lines
2398 bytes
In article <Pine.LNX.4.00.9812032155370.202-100000@coredump.int.tele.dk>, 
BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>> It switches to a different dbz index format which is slower but uses
>> much less memory.
>
>Slower?  Not significantly for the configuration which Ragnar has, where
>two feeder boxen are pummeling his writer swerver, that should mean an
>average of one hit and one miss per article (in the other order, mind you).

And as the new innd has a history cache for recently received articles that
extra miss will probably not mean much extra work unless the feeder machines
are badly out of sync or something, no?

>'cuz I don't bother to pay attention...) needs to hit the history text file
>for every suspected hit, which is unpalatable for a transfer machine, but
>for a reader getting a single feed, or two, should be quite tolerable.
>The text file also needs to be consulted for those readers which retrieve
>articles by message ID, such as lynx and no doubt others. 

Do you really think there are a lot of readers getting articles by Message-ID?

>Damn, that's a long and meaningless paragraph.  Anyway, the tagged-hash
>history should be quite adequate for a reader machine, provided, as Olaf
>notes, that you can keep the .pag file in RAM, which is normally not a
>problem:

I'll try recompiling with --enable-tagged-hash and see what happens (and
rebuild the history files of course).

Regards,

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33551
Author: Ragnar Lonn
Date: Fri, 04 Dec 1998 00:00
14 lines
1316 bytes
In article <746ki1$lj0@newsops.execpc.com>, jgreco@ns.sol.net (Joe Greco) 
wrote:
>On second thought, why the hell should it have to?  Unlike a TCP
>connection, UDP is not stateful and the connections shouldn't linger
>around tying up the port once the process is gone.
>

Well, perhaps the OS blocks the port for a while to avoid a new program
listening on it getting old datagrams sent to it?   I'm making wild guesses
here :-)

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33556
Author: Clayton O'Neill
Date: Fri, 04 Dec 1998 00:00
20 lines
1904 bytes
On 3 Dec 1998 08:23:17 GMT, Aidan Cully <aidan@panix.com> wrote:
|I'm sure this has been hashed and rehashed almost as many times as the
|history dbz itself, but does anyone know why the tagged-hash isn't the
|default?  It seems to me that few enough INN installations can support
|the non-tagged, and those admins that want to glean the extra
|performance (and how much of a performance win can there be?) will know
|to pass the --disable command line arg, so why isn't the tagged hash
|the default?

I don't know why it's not the default either, but trust me, it makes a huge
difference if you've got lots of connections and you have enough memory to
hold the entire .hash file in memory.  

That being said, I really don't know why this was merged in as a compile
time option.  Someone really should have put an API on top of all history
file access.  Because they didn't, there is an #ifdef/#else/#endif set
around ever history file lookup in the entire tree.  Pretty damn gross if
you ask me.

Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33558
Author: BARRY BOUWSMA IS A PEDOPHILE
Date: Sat, 05 Dec 1998 00:00
12 lines
1381 bytes
On Sat, 5 Dec 1998, Ragnar Lonn wrote:

> Also, there are of course some vital thing I haven't thought about in the
> reasoning above. Pointing it out to me is a good deed which will be rewarded
> when you get to heaven.

Well, I was about to follow up, but ya kinda blew it there...

I hates never collectin' on me rewards


Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33559
Author: Ragnar Lonn
Date: Sat, 05 Dec 1998 00:00
21 lines
1714 bytes
In article <Pine.LNX.4.00.9812050910220.202-100000@coredump.int.tele.dk>, 
BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>On Sat, 5 Dec 1998, Ragnar Lonn wrote:
>
>> Also, there are of course some vital thing I haven't thought about in the
>> reasoning above. Pointing it out to me is a good deed which will be rewarded
>> when you get to heaven.
>
>Well, I was about to follow up, but ya kinda blew it there...
>
>I hates never collectin' on me rewards
>

Well, I could always send you a few bytes as a reward if you like - I make 
them myself, using only the finest ingredients!  Tell me if you don't like
swedish characters and I'll make sure I don't include any of those.

  /Ragnar


Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33565
Author: Fluffy
Date: Sat, 05 Dec 1998 00:00
21 lines
1900 bytes
Ragnar Lonn <prl@algo.net> wrote:

> However, the system does get unnecessarily complex and hard to find
> your way around in if you're looking for a read-only(*) or feed-only
> server software. But I guess that's not a too big price to pay if
> it's the only one.

Yeah, I do agree that as things stand right now, it's not exactly
obvious how to take the INN suite and pick which bits and pieces to
turn on (or off) to make it into an optimal reader, feeder or
combination.

Mostly, the package is just short on documentation.  Once you know
where to look, it's not too hard to make INN behave any way you like;
but a map would be nice.

Feel like attempting to plot one? =)



Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33566
Author: Fluffy
Date: Sat, 05 Dec 1998 00:00
19 lines
1827 bytes
Ragnar Lonn <prl@algo.net> wrote:
> Here's a radical solution that has probably been made before and
> rejected for some good reason, but still: why not split the codebase
> into a feeder-INN and a reader-INN?

Because it's been done that way since the beginning.  Nnrpd runs
pretty much independently of innd, and even the features that make the
difference between a transit-only box and something useful for reading
(NOV etc.) have pretty much always been handled by separate programs.

The unified overview stuff blurred the lines a bit, but IMHO that was
one of those things that seemed like a really good idea in theory but
didn't pan out in practice.

Anyway, I don't see where there is much to split that isn't split
already.


Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33568
Author: Ragnar Lonn
Date: Sat, 05 Dec 1998 00:00
29 lines
2291 bytes
In article <749vvb$e13$1@meowhost.meow.invalid>, gerglery@usa.net (Fluffy) 
wrote:
>Ragnar Lonn <prl@algo.net> wrote:
>> Here's a radical solution that has probably been made before and
>> rejected for some good reason, but still: why not split the codebase
>> into a feeder-INN and a reader-INN?
>
>Because it's been done that way since the beginning.  Nnrpd runs
>pretty much independently of innd, and even the features that make the
>difference between a transit-only box and something useful for reading
>(NOV etc.) have pretty much always been handled by separate programs.
>

Ok, thanks. I was just being curious. I don't know enough about the source to 
be able to say much, really. When I try now, I can't really think of anything 
in nnrpd or innd today that affects the other's performance and I can't come 
up with any useful new features with that problem either so maybe my fears
about programmers having to decide whether to promote feeding or reading are 
unjustified.

However, the system does get unnecessarily complex and hard to find your
way around in if you're looking for a read-only(*) or feed-only server 
software. But I guess that's not a too big price to pay if it's the only one.

(*) - I mean "read-mostly". A reader system with no full outgoing feeds.

  /Ragnar

Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33572
Author: Ragnar Lonn
Date: Sat, 05 Dec 1998 00:00
53 lines
3535 bytes
In article <slrn76g5vr.ikb.usenet@luser.oneill.net>, usenet@oneill.net 
(Clayton O'Neill) wrote:
>On 3 Dec 1998 08:23:17 GMT, Aidan Cully <aidan@panix.com> wrote:
>|I'm sure this has been hashed and rehashed almost as many times as the
>|history dbz itself, but does anyone know why the tagged-hash isn't the
>|default?  It seems to me that few enough INN installations can support
>
>I don't know why it's not the default either, but trust me, it makes a huge
>difference if you've got lots of connections and you have enough memory to
>hold the entire .hash file in memory.  
>

Here's a radical solution that has probably been made before and rejected
for some good reason, but still: why not split the codebase into a feeder-INN
and a reader-INN?

Feeding and reading are two entirely different modes of operation and should
really be treated as such. Trying to combine both in a single package is, 
IMHO, doomed to make the software eternally inferior to the dedicated 
feeder/reader packages out there. Flexible yes, but performance will be no
good and the system gets very complex.

You can include how many compile-time options you want - there will still
be programming decisions made that will affect either feeding or reading
negatively and which won't be alterable at compile time. How many systems
today are combined feeder/reader systems?  And with that I mean a system
with a bunch of incoming/outgoing full feeds plus a decent number of readers.
I would dare say close to none (I might be mistaken of course) and they 
probably get fewer every day so why bother with it?

If a dedicated INN reader system was made, that could handle a couple
of incoming full feeds, and some tiny outgoing feeds for locally posted 
articles, relatively well, and which didn't bother much about the efficiency 
on the transit side, I bet it would be great. And a dedicated INN feeder
system could do away with all the reader support and just concentrate
on the transit efficiency.

I know, one extra codebase to maintain and an extra software to learn
(probably two, as both packages would likely differ a lot from todays INN)
but INN of today is a large beast composed of lots of small programs
and many config, data, index, etc. files so the overall complexity would
probably be reduced, not increased.

Of course, the less demand for support contracts for ISC I guess.
That's always a downside :-)

Also, there are of course some vital thing I haven't thought about in the
reasoning above. Pointing it out to me is a good deed which will be rewarded
when you get to heaven.

  /Ragnar

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33577
Author: Elena Samsonova
Date: Mon, 07 Dec 1998 00:00
20 lines
1861 bytes
Ragnar Lonn wrote:
> >'cuz I don't bother to pay attention...) needs to hit the history text file
> >for every suspected hit, which is unpalatable for a transfer machine, but
> >for a reader getting a single feed, or two, should be quite tolerable.
> >The text file also needs to be consulted for those readers which retrieve
> >articles by message ID, such as lynx and no doubt others.
> 
> Do you really think there are a lot of readers getting articles by Message-ID?

Perhaps they are not very numerous, but they are the loudest in
complaining.  A couple of those users can be a major pain in the neck. 
(One of such users of ours had me go through the intire nnrpd code just
to prove to him that the problem was with his news reader, not with my
server.)


Regards
Elena

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33587
Author: Ragnar Lonn
Date: Mon, 07 Dec 1998 00:00
120 lines
6799 bytes
On Mon, 7 Dec 1998, Elena Samsonova wrote:

> Ragnar Lonn wrote:
> > With INN 1.7x our 170Mhz single-CPU Ultrasparc 1 machines 
> > had a
> > load average of about 0.5 with 100-150 or so readers on them 
> 
> We saw the same performance when Origins had just one CPU (each :) 
> And we did not use actived...  Since the hardware is equivalent, there
> must be something in the software setup that makes all the difference, I
> guess.  But what?  Or is it perhaps kernel tricks?  Did you tune
> Solaris' kernel?  We tuned IRIX kernel, and that made a very big
> difference.  From the other Sun machines that we deploy for other
> purposes, I know that Solaris kernel has some default settings that are
> wrong for news environments.  Tuning those improves performance
> ten-fold.

Hmm, wait a minute :-)  How did you figure out your machines were
doing better than ours?

You said your load average during peak hours was somewhere between 2.5 and
3.5 with, what was it, 350 users on? Let's say it's 3.5 - that means that
each user generate 0.01 load on your machine. When I look at one of our
reader servers now, the load is hovering around 0.30 (the past 15 minutes
average load) with 85 users on so on my machine, it appears that every
user generates 0.004 or so load. 

Granted, load average ususally doesn't go up linearly with the
number of users but in a exponential curve, but still. You have twin-CPU
machines too, which should make your figures even lower.

As for tuning Solaris kernel parameters I'd of course be very grateful
if you found me one that would improve performance tenfold, but I don't
think there are any such parameters :-)  For certain applications you
can tune kernel params and get huge performance gains but in most cases,
there's not much to win by fiddling with them. The only thing I've changed
now is the default and max number of file descriptors for processes
(rlim_fd_max and rlim_fd_cur).

> > I bet you could speed
> > things up quite a bit and get lightning performance from your system
> > by using actived!
> 
> Sounds very tempting. :)  I think I shall try it.
> 

You should!  I just noticed that actived had died on one of the
reader servers and the load there was much higher than on the other
machine. I wrote above that one server had 85 readers and 0.3 load
average. Well, the other machine had 77 users and 1.80 load average.
Just because it wasn't running actived. The only real problem with
actived is that it dies now and then, at least on Solaris, so we
usually setup a script that checks every minute or so to see that
actived is still alive and restart it if it isn't.

> The thing I'm worried about is whether actived can correctly react on
> the frequent changes to the active file made by some other machine. 
> Have you had any problems with that?  And how often do you update your
> active file?  (I.E. do you use MMAP_SYNC, and if so with what
> frequency?)
> 

Aha!  Good that you mentioned it :-)  We did indeed have problems
with that. I was too stupid to try MMAP_SYNC - that would probably
have solved it. I did consider defining "HAVE_MMAP 0" in
config.h but I didn't do that because people keep telling me how
fast memory mapping is compared to regular file I/O (have to test
it sometime so I'll get convinced too). Anyhow, the problem was of
course (for those who don't know about our setups) that the reader 
servers that were NFS-mounting ~news/db from the writer host didn't
see the changes made to the active file by innd on the writer host
as innd used mmap to do it. As I didn't want to disable memory
mapping completely and didn't think about MMAP_SYNC  I solved it by
letting cron do "touch ~news/db/active" every minute on the writer host
:-) Perhaps not the most elegant solution in the world but it works.

> It cheats... :-o  When the GROUP command is issued, INN normally goes
> into the group directory and builds an overview on the spot.  The patch
> has it read the active file instead and return the counters found there
> without ever going to the spool.  The active file needs to be updated
> frequently enough for this to work though.

Hmm, I think my nnrpd (INN 2.2) does this already. Otherwise I wouldn't
have experienced any trouble with the active file updates not reaching
the reader servers that I wrote about above.

> > The Netapp
> > caches write operations too, and very efficiently. I really don't know if
> > there is any actual performance to gain from this approach. 
> 
> I talked to several large ISPs who run their news the way you and I do,
> and some of them said that they found perform better with the history db
> on a local disk (like yours, I guess), and others said that it worked
> better with the history db on the filer.  I decided to try for the filer
> and if it did not work to move it to the local disk, but since it worked
> fine, I never did compare the two in my setup.

That's probably a good approach. If it works, don't fix it ;)
If you at some point in the future have to redesign the system
anyhow you could try putting history locally on the writer host
and see if it changes anything. If the OS is any good at caching 
writes it ought to be somewhat faster I think.

> > One thing that
> > is nice about it, though, is the fact that we only need to update one set
> > of config files no matter how many reader servers we install.
> 
> How is that different from having the readers mount ~news/etc and
> ~news/db from the filer?  That's what I do so that all the readers have
> the same setup.

Eh, not at all different ;)  Somehow my brain decided to bring up an
old reason for using NFS-mounts as opposed to local disks only and
that wasn't really valid in this discussion. Sorry about that,
I must have been more confused than usual when I wrote it :-)

  /Ragnar


Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
#33592
Author: Elena Samsonova
Date: Mon, 07 Dec 1998 00:00
92 lines
4943 bytes
Ragnar Lonn wrote:
> >I don't use actived.  I read the manual pages and thought it was tricky
> >on a distributed architecture.  Perhaps I'm being too cautious, but I
> >don't really need it at all.  I have three reader machines, Origin200
> >(Silicon Graphics), 2 CPU each, they are doing about 300 simultaneous
> >connections each and are not breathing hard (60% CPU idle, run queue
> >between 2.5 and 3.5).  So I don't really have a reason to use all those
> 
> Well I'm not too familiar with SGI machines but unless I'm mistaken,
> you're running a pair of pretty fast machines as readers then, no?
> With INN 1.7x our 170Mhz single-CPU Ultrasparc 1 machines 

These are more or less equivalent to a single-CPU Origin200.  The latter
has 180Mhz CPUs.

> had a
> load average of about 0.5 with 100-150 or so readers on them 

We saw the same performance when Origins had just one CPU (each :) 

> and those
> are not terribly expensive machines so that was pretty good I guess
> but if we didn't use actived, the load would rise to, I think 5,6,7, maybe
> 8 and above all, service would be a lot slower!  

And we did not use actived...  Since the hardware is equivalent, there
must be something in the software setup that makes all the difference, I
guess.  But what?  Or is it perhaps kernel tricks?  Did you tune
Solaris' kernel?  We tuned IRIX kernel, and that made a very big
difference.  From the other Sun machines that we deploy for other
purposes, I know that Solaris kernel has some default settings that are
wrong for news environments.  Tuning those improves performance
ten-fold.

> I bet you could speed
> things up quite a bit and get lightning performance from your system
> by using actived!

Sounds very tempting. :)  I think I shall try it.

> And it's not tricky at all!  You just start actived and the nnrpd's will
> start using it :-)

The thing I'm worried about is whether actived can correctly react on
the frequent changes to the active file made by some other machine. 
Have you had any problems with that?  And how often do you update your
active file?  (I.E. do you use MMAP_SYNC, and if so with what
frequency?)

> >advanced solutions, plain vanilla works fine for me. :)  I did however
> >patch nnrpd to have it cheat on the GROUP command (there was a
> >discussion about it in this newsgroup a while ago).  That did help!
> 
> What does the patch do?

It cheats... :-o  When the GROUP command is issued, INN normally goes
into the group directory and builds an overview on the spot.  The patch
has it read the active file instead and return the counters found there
without ever going to the spool.  The active file needs to be updated
frequently enough for this to work though.

[keeping history db on the local disk and NFS mounting that to the
readers]
> so to avoid overloading the local disk on the writer host with nfs-accesses to
> ~/news/etc/active it is very important to run actived on the *reader* hosts.

I see!

> The Netapp
> caches write operations too, and very efficiently. I really don't know if
> there is any actual performance to gain from this approach. 

I talked to several large ISPs who run their news the way you and I do,
and some of them said that they found perform better with the history db
on a local disk (like yours, I guess), and others said that it worked
better with the history db on the filer.  I decided to try for the filer
and if it did not work to move it to the local disk, but since it worked
fine, I never did compare the two in my setup.

> One thing that
> is nice about it, though, is the fact that we only need to update one set
> of config files no matter how many reader servers we install.

How is that different from having the readers mount ~news/etc and
~news/db from the filer?  That's what I do so that all the readers have
the same setup.


Regards
Elena

Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33602
Author: Elena Samsonova
Date: Mon, 07 Dec 1998 00:00
15 lines
1568 bytes
Fluffy wrote:
> Mostly, the package is just short on documentation.  Once you know
> where to look, it's not too hard to make INN behave any way you like;
> but a map would be nice.
> 
> Feel like attempting to plot one? =)

I shall do it.  And I mean it too. :)  I already have some of it.  Where
do I send the stuff and in what format?

-- 
Regards
Elena

Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33604
Author: Ragnar Lonn
Date: Mon, 07 Dec 1998 00:00
19 lines
1690 bytes
In article <366BEE3E.15079393@wxs.nl>, Elena Samsonova <E.Samsonova@wxs.nl> 
wrote:
>Fluffy wrote:
>> Mostly, the package is just short on documentation.  Once you know
>> where to look, it's not too hard to make INN behave any way you like;
>> but a map would be nice.
>> 
>> Feel like attempting to plot one? =)
>
>I shall do it.  And I mean it too. :)  I already have some of it.  Where
>do I send the stuff and in what format?
>

Post it here and let people make additions/corrections as needed. And use
standard ASCII text format, no scary MS-word or something like that :-)

  /Ragnar

Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33623
Author: Elena Samsonova
Date: Tue, 08 Dec 1998 00:00
39 lines
2807 bytes
Fluffy wrote:
> Elena Samsonova <E.Samsonova@wxs.nl> , brave and tragic soul,
> volunteers to compile a how-to document for INN:

Brave--thank you. :)  Tragic--not really.  I think documenting is fun,
it makes sure you *really* understand the subject.

> If you're not on the inn-workers list, it wouldn't hurt to join.
> Traffic sometimes floats between here and the list, any anyway the
> people who can actually get your document into the tarball hang out
> there =)

Which list is that?  I looked at ISC but found no mention of such a
list.  I thought *this* group was the INN-workers list.  8-)

> The preferred format these days is probably going to be plain text.
> If you'd like to make it easy to get the document into man pages, HTML
> etc., POD wouldn't be a bad choice for the native format.

Ragnar suggests plain text with lots of reviews here.  I was planning on
the reviews myself because I only run one configuration and we want to
include other things in the HOW-TO as well.  I suggest a compromise: my
documentation is already HTML with some GIFs (really, pictures often do
a much better job explaining than words).  Since this is not a binary
group, and my own Cleanfeed would filter those GIFs out should I try to
post them here, I shall set up a site where I'll put the HTML version,
and I shall be posting parts of it as plain text in this group to get
the most comments.  

What do you say, people?

I need to filter some of our specific stuff out of it, and I can have
the first version ready in a day or two.


Regards
Elena

Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33635
Author: Fluffy
Date: Tue, 08 Dec 1998 00:00
21 lines
1900 bytes
{post & mail}

Elena Samsonova <E.Samsonova@wxs.nl> , brave and tragic soul,
volunteers to compile a how-to document for INN:

> I shall do it.  And I mean it too. :)  I already have some of it.  Where
> do I send the stuff and in what format?

If you're not on the inn-workers list, it wouldn't hurt to join.
Traffic sometimes floats between here and the list, any anyway the
people who can actually get your document into the tarball hang out
there =)

The preferred format these days is probably going to be plain text.
If you'd like to make it easy to get the document into man pages, HTML
etc., POD wouldn't be a bad choice for the native format.
-- 
"FEAST!"
      --Alice

Re: Split the codebase? (Was: Re: INN2.2 actived on strike!)
#33639
Author: Ragnar Lonn
Date: Tue, 08 Dec 1998 00:00
13 lines
1507 bytes
In article <366D2D62.746E12F8@wxs.nl>, Elena Samsonova <E.Samsonova@wxs.nl> 
wrote:
>post them here, I shall set up a site where I'll put the HTML version,
>and I shall be posting parts of it as plain text in this group to get
>the most comments.  
>

Sounds good to me!
Tell me where it is and I'll be happy to read it and make ignorant remarks ;)

  /Ragnar

Re: INN2.2 - articles late to appear on NFS-clients?
#33771
Author: Steven Clarke
Date: Sun, 13 Dec 1998 00:00
10 lines
1118 bytes
Kjetil Torgrim Homme (kjetilho@haey.ifi.uio.no) wrote:
: That's way below 4 million files... (there was 8 GB and 1.7m inodes
: free)

How big was the directory? Most NetApps run with wafl.maxdirsize set to
10240. You may need to increase this setting.

Steve Clarke

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