🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Dylan Neild Tue, 07 Jul 1998 00:00
Couple of INN 2.0 Related Questions..
#29561
Author: Dylan Neild
Date: Tue, 07 Jul 1998 00:00
66 lines
3188 bytes
** Please reply via e-mail .. **

OK,

INN 2.0 is rocking away on my news server, and I must say, INN 2.0+cnfs
is much faster then INN1.7.2 ... of course..  those Ultra Wide SCSI
drives couldn't have helped either.. :)

I do have a couple of questions that I hope someone more "in the know"
can answer for me.. :)

1. With CNFS and INN 2.0 -- i've got ALT seperated from everything
else.. ie.. a metacycbuff group for the ALT.* and a metacycbuff group
for the * groups. News is going where it should, and all is cool.

However, readers are reporting the since the changes.. although WAY more
articles are availalble at any given time.. two things are happening
from a READER point of view:

	- TONS of articles in each group are no longer availalble. I assume
this has to do with the fact that the NNRPD is reading some sort of
article listing and is attempting to pull articles that have already
been overwritten in the appropriate metacycbuff. Is there a way I can
stop or minimize this? What would cause this?

	- Although doing a "list" command is blazing fast.. and getting the
number of read/unread articles in a group is also BLAZING fast, clients
are reporting that when they go to retrieve a list of headers in a
newsreader like Agent or Netscape, that there is a LONG PAUSE before
data starts getting fed to them. Following this pause, the server blasts
the header data at them at an uncanny speed, but that hardly justifies
waiting 45 seconds for the data to start coming. Most of my clients
think the news is busted at that point, and simply give up. Any ideas? 



2. From a backend point of view.. my server is logs the following in
news.err every day:

Jul  5 14:33:07 homer innd: CNFS-sm: cycbuff ALT3 rollover to cycle
0x6... remain calm
Jul  5 14:35:49 homer innd: CNFS-sm: cycbuff ALT5 rollover to cycle
0x6... remain calm

It does this for almost every cycbuff I have. Any ideas? This bad.. I
assume not due to the "remain calm".. but for personal interest.. what
exactly is it?

Also, news.daily (running with EXPIREOVER+LOWMARK) spits this lovely
little nugget into my expire.log every night:

 Can't initialize new unified overview

What exactly does this mean? 


Sorry to bug you all.. other then that.. all is well with my new 2.0.

Also.. is their a 2.0-centric FAQ around?

Regards,

Dylan 
Speedline Canada

Re: Couple of INN 2.0 Related Questions..
#29670
Author: Curt Welch
Date: Fri, 10 Jul 1998 00:00
36 lines
2639 bytes
aidan@panix.com (Aidan Cully) wrote:
> In article <19980710154445.859$9x@newsreader.com>,
> Curt Welch <curt@kcwc.com> wrote:
> >I'm also seeing some obvious bugs with the overview stuff (though once
> >again this could be caused by something I've done wrong - I'm still very
> >new to all this).  But, for example, I have a local group called
> >newsreader.test. It had 3 articles posted in it.  Once, the overview
> >data returned was for 3 articles from a totally different group.  And
> >once, when I tried to read the article (with a "article NNN" command).
> >it returned the bogus article as well.  But later, without restarting
> >the server, the correct articles were accesable again (thought the NNTP
> >connection was probably restarted).
>
> Out of curiousity, were you running an expire(over) at the time?

Nope.  At least I don't think so :).  I haven't set up the cron jobs yet
and didn't run anything by hand.

> No, I think you just explained what the people who implemented unified
> overview were missing. :-)  I don't think the new format we're going to
> get will look like the pre-storage-api overview files, but it _should_ be
> approximately as efficient.

Oh, I did just realize another advantage which I somehow missed.  With the
unified format you only have to write the xover data once even if the
the article is crossposted to to 20 groups - that's a nice savings with
all the crossposting done these days.  But all the .index files still need
to be written out and I'd think the extra overhead of that for all the
non-cross posted articles would wipe out the savings from the cross posted
articles.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Couple of INN 2.0 Related Questions..
#29672
Author: Curt Welch
Date: Fri, 10 Jul 1998 00:00
92 lines
5336 bytes
Dylan Neild <dylan@speedline.ca> wrote:
> INN 2.0 is rocking away on my news server, and I must say, INN 2.0+cnfs
> is much faster then INN1.7.2 ... of course..  those Ultra Wide SCSI
> drives couldn't have helped either.. :)

I too have just started playing with INN 2.0.

With 1.7.2 or 2.0 using the traditional storage method, my machine could
recieve around 20 to 25 articles per second from a local Diablo feeder box.

With CNFS, it does about 75 to 100 artciles per second and I've seen it
peak as high as 200!  That's fast!

>         - TONS of articles in each group are no longer availalble.

Yep, I'm seeing that too.

> What would cause this?

My first guess is that INN 2.0/CNFS sucks.  (I say it just like this
because I really was hoping it would work better than this so it's just
my disapointment - I do apprecate all the work people have put into
it.)

It could be that I don't have evertyhing configured correctly, but I
suspect that's not it.

The problem is cancled articles.  The "old" INN was smart enough to remove
cancled articles from the overview data when it was sent to the user.  It
would scan the directory and not send the overview records for articles
that had been cancled.  This way, users never see the cancled articles - or
they only see the ones that were cancled between the time they retrived the
headers and then tried to read the aricle.

The new INN however doesn't do this.  If an article is cancled after you
receive it, the overview data will remain valid (I don't know if the
expire process cleans this up or not - I haven't gotten that far in my
testing yet).

So, if you honor cancles and accept the spam cancles, you will get
newsgroups with tons of missing articles.  It's really unworkable when
every other article you try to read is missing - maybe some newsreaders
hide this better than others?

I'm also seeing some obvious bugs with the overview stuff (though once
again this could be caused by something I've done wrong - I'm still very
new to all this).  But, for example, I have a local group called
newsreader.test. It had 3 articles posted in it.  Once, the overview data
returned was for 3 articles from a totally different group.  And once, when
I tried to read the article (with a "article NNN" command). it returned the
bogus article as well.  But later, without restarting the server, the
correct articles were accesable again (thought the NNTP connection was
probably restarted).

And, when typing xover commands by hand for dc.general, I got to the point
where xover would only return a single xover record even though I was
asking for all xover records for the group.  But with that as well, a later
NNTP connection returned the correct data.  Clearly there are some nasty
little bugs in this stuff.

>         - Although doing a "list" command is blazing fast.. and getting
> the number of read/unread articles in a group is also BLAZING fast,
> clients are reporting that when they go to retrieve a list of headers in
> a newsreader like Agent or Netscape, that there is a LONG PAUSE before
> data starts getting fed to them.

I see that too.  INN 2.0 must be doing some type of caching of the overview
data with this new unified overview.  But that first fetch does just take
too long.  I haven't seen anything as long as what you are seeing, but I'm
seeing delays that take a few seconds (old inn would never take more than
about 100 ms for an overview of that size).  For a very large group though,
I could see it taking many seconds.

What is the point of the unified overview?  Is there any documentation that
gives an overview of the the new CNFS and unified overview structure?  I've
spent hours reading man pages and README files etc and I still don't really
understand as much as I need to.

I don't get the point of why you would want to put the overview records all
into a single file (or a small set of files).  I can understand how it
would make writing the overview files much quicker, but the nnrp job of
return the data will be slow as hell - and that's not something that can be
ignored.  And to find the overview records for a single group you need
those .index files, and as long as you are writing those out anyway, why
not just write the overview data that like the old way?  Like I said, I
just don't get it.  Can anyone explain what I'm mising?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Couple of INN 2.0 Related Questions..
#29697
Author: Aidan Cully
Date: Fri, 10 Jul 1998 00:00
95 lines
5468 bytes
In article <19980710154445.859$9x@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
>Dylan Neild <dylan@speedline.ca> wrote:
>>         - TONS of articles in each group are no longer availalble.
>
>Yep, I'm seeing that too.
>
>> What would cause this?
>
>My first guess is that INN 2.0/CNFS sucks.  (I say it just like this
>because I really was hoping it would work better than this so it's just
>my disapointment - I do apprecate all the work people have put into
>it.)
>
>The problem is cancled articles.  The "old" INN was smart enough to remove
>cancled articles from the overview data when it was sent to the user.  It
>would scan the directory and not send the overview records for articles
>that had been cancled.  This way, users never see the cancled articles - or
>they only see the ones that were cancled between the time they retrived the
>headers and then tried to read the aricle.
>
>The new INN however doesn't do this.  If an article is cancled after you
>receive it, the overview data will remain valid (I don't know if the
>expire process cleans this up or not - I haven't gotten that far in my
>testing yet).

I believe this is fixed in the later snapshots..  From discussion on
inn-workers, I think we now check for the existance of the article
before sending overview data.  You might want to try upgrading, since
there's been a lot of bug-fixes since the release (in fact, I believe
they're planning another release Real Soon).

>I'm also seeing some obvious bugs with the overview stuff (though once
>again this could be caused by something I've done wrong - I'm still very
>new to all this).  But, for example, I have a local group called
>newsreader.test. It had 3 articles posted in it.  Once, the overview data
>returned was for 3 articles from a totally different group.  And once, when
>I tried to read the article (with a "article NNN" command). it returned the
>bogus article as well.  But later, without restarting the server, the
>correct articles were accesable again (thought the NNTP connection was
>probably restarted).

Out of curiousity, were you running an expire(over) at the time?

>And, when typing xover commands by hand for dc.general, I got to the point
>where xover would only return a single xover record even though I was
>asking for all xover records for the group.  But with that as well, a later
>NNTP connection returned the correct data.  Clearly there are some nasty
>little bugs in this stuff.

I believe Katsuhiro Kondou is currently putting a lot of work into the
overview..  It's (almost?) universally acknowledged that the unified
overview was a bad idea, and hopefully we'll soon be able to put it all
behind us.  I, for one, don't intend to run the storage-API on our
reader box until he's got his new overview done.

>>         - Although doing a "list" command is blazing fast.. and getting
>> the number of read/unread articles in a group is also BLAZING fast,
>> clients are reporting that when they go to retrieve a list of headers in
>> a newsreader like Agent or Netscape, that there is a LONG PAUSE before
>> data starts getting fed to them.
>
>I see that too.  INN 2.0 must be doing some type of caching of the overview
>data with this new unified overview.  But that first fetch does just take
>too long.  I haven't seen anything as long as what you are seeing, but I'm
>seeing delays that take a few seconds (old inn would never take more than
>about 100 ms for an overview of that size).  For a very large group though,
>I could see it taking many seconds.
>
>What is the point of the unified overview?  Is there any documentation that
>gives an overview of the the new CNFS and unified overview structure?  I've
>spent hours reading man pages and README files etc and I still don't really
>understand as much as I need to.
>
>I don't get the point of why you would want to put the overview records all
>into a single file (or a small set of files).  I can understand how it
>would make writing the overview files much quicker, but the nnrp job of
>return the data will be slow as hell - and that's not something that can be
>ignored.  And to find the overview records for a single group you need
>those .index files, and as long as you are writing those out anyway, why
>not just write the overview data that like the old way?  Like I said, I
>just don't get it.  Can anyone explain what I'm mising?

No, I think you just explained what the people who implemented unified
overview were missing. :-)  I don't think the new format we're going to get
will look like the pre-storage-api overview files, but it _should_ be
approximately as efficient.

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

Re: Couple of INN 2.0 Related Questions..
#29703
Author: bill davidsen
Date: Fri, 10 Jul 1998 00:00
57 lines
3034 bytes
In article <35A2EDB3.1666@speedline.ca>,
Dylan Neild  <dylan@speedline.ca> wrote:

| 2. From a backend point of view.. my server is logs the following in
| news.err every day:
| 
| Jul  5 14:33:07 homer innd: CNFS-sm: cycbuff ALT3 rollover to cycle
| 0x6... remain calm
| Jul  5 14:35:49 homer innd: CNFS-sm: cycbuff ALT5 rollover to cycle
| 0x6... remain calm
| 
| It does this for almost every cycbuff I have. Any ideas? This bad.. I
| assume not due to the "remain calm".. but for personal interest.. what
| exactly is it?

This indicates that you have filled a cycbuff file and that the write
pointer is rolling over to the start of the file. Unfortunately, if it
happens "every day" it means that you only have a one day retention.
This is probably not the desired config, even for alt...

I put my alt articles into two buckets, those <20k and HUGE. However, if
you wish to separate the smut from the warez, about 150k is better.

| Also, news.daily (running with EXPIREOVER+LOWMARK) spits this lovely
| little nugget into my expire.log every night:
| 
|  Can't initialize new unified overview
| 
| What exactly does this mean? 

It means you have a good idea why you have the slow response to overview
requests!

See makehistory and expireindex, I feel as if I could quote them by
heart, using expletives for punctuation.

Hint: If you have been running for a while, I bet you will read some
manuals and decide to run makehistory with the -I option. Then you are
supposed to sort the output file. Consider using split to break up the
emitted file, which tends to be huge, into a bunch od smaller files.

Sort those, and on the first, and only first, expireindex run use -o.
The rest of the time feed it a sorted batch and use only -a -z. The UNIX
sorts tend to run in some sort of ugly exponential time, and you can
sort one batch while you process the next a lot better than sort one,
make your /tmp larger, sort again, etc.

Call this Bill's little time saver.

-- 
    bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
"If heros often had feet of clay, they were, at least, still heros. How
many other clay-footed humans could claim as much?"
	Michael Flynn, _Firestar_


Re: Couple of INN 2.0 Related Questions..
#29713
Author: Dylan Neild
Date: Fri, 10 Jul 1998 00:00
13 lines
1065 bytes
Hmmm....

As an addendum to this... I have switched from INN 2.0+cnfs to INN2.0
traditional storage.. Cancelled articles are disappearing from the
overview as they should.

Dylan

Hmm. It's really too-bad.. CNFS is really fast.



Re: Couple of INN 2.0 Related Questions..
#29752
Author: Curt Welch
Date: Mon, 13 Jul 1998 00:00
57 lines
2988 bytes
Steven Gillard <steven_gillard@hp.com.nojunkmail> wrote:
> Curt Welch wrote:
>
> > But, for example, I have a local group called
> > newsreader.test. It had 3 articles posted in it.  Once, the overview
> > data returned was for 3 articles from a totally different group.  And
> > once, when I tried to read the article (with a "article NNN" command).
> > it returned the bogus article as well.  But later, without restarting
> > the server, the correct articles were accesable again (thought the NNTP
> > connection was probably restarted).
>
> What platform are you running on?

FreeBSD 2.2.6

I'm running the stock inn 2.0 and haven't tried a latter snapshot yet
so I need to do that since there seems to have been lots of little fixes
already.

> I'm running a relatively recent
> snapshot on HPUX 10.20 (test box only at the moment) and was seeing
> similar behaviour until I realised overviewmmap was set on in inn.conf.
> I turned it off and haven't seen the problems since.

Mine is on as well.  I'll experiment with turning it off.

> As for the unified overview performance, it is a bit of a worry.  I
> observed nnrpd make the following system calls while performing an xover
> of 50 articles:
>
> syscall          count  rate    elapsed
>
> read              156   30.5    0.01046
> write               1    0.1    0.01233
> open               53   10.3    0.00733
> close              53   10.3    0.00080
> lseek             205   40.1    0.00257
> ioctl               1    0.1    0.00002
> fcntl              52   10.1    0.00066
> mmap               51   10.0    0.00244
> munmap             51    9.8    0.00130
> fstat               1    0.1    0.00002
> select              1    0.1   83.75039
> gettimeofday       53   10.1    0.00081
> pstat               1    0.1    0.00004
>
> ouch!

I assume that was with the mmap option on?  It looks like
all it's time was spent waiting on a select - i.e. was innd
doing the "real" work there?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Couple of INN 2.0 Related Questions..
#29766
Author: Steven Gillard
Date: Mon, 13 Jul 1998 00:00
44 lines
2291 bytes
Curt Welch wrote:

> But, for example, I have a local group called
> newsreader.test. It had 3 articles posted in it.  Once, the overview data
> returned was for 3 articles from a totally different group.  And once, when
> I tried to read the article (with a "article NNN" command). it returned the
> bogus article as well.  But later, without restarting the server, the
> correct articles were accesable again (thought the NNTP connection was
> probably restarted).

What platform are you running on?  I'm running a relatively recent
snapshot on HPUX 10.20 (test box only at the moment) and was seeing
similar behaviour until I realised overviewmmap was set on in inn.conf. 
I turned it off and haven't seen the problems since.  

As for the unified overview performance, it is a bit of a worry.  I
observed nnrpd make the following system calls while performing an xover
of 50 articles:

syscall          count  rate    elapsed

read              156   30.5    0.01046
write               1    0.1    0.01233
open               53   10.3    0.00733
close              53   10.3    0.00080
lseek             205   40.1    0.00257
ioctl               1    0.1    0.00002
fcntl              52   10.1    0.00066
mmap               51   10.0    0.00244
munmap             51    9.8    0.00130
fstat               1    0.1    0.00002
select              1    0.1   83.75039
gettimeofday       53   10.1    0.00081
pstat               1    0.1    0.00004

ouch!  

Regards,
Steve.

steven_gillard@hp.com.nojunkmail
...opinions expressed are my own...

Re: Couple of INN 2.0 Related Questions..
#29771
Author: Curt Welch
Date: Tue, 14 Jul 1998 00:00
18 lines
1569 bytes
Steven Gillard <steven_gillard@hp.com.nojunkmail> wrote:
> Nope, mmap was off.  Nnrpd mmap's the cycbuff header every time it
> probes an article regardless of the settings in inn.conf.

I see.

I've turned the overviewmmap: option off and it looks like the corruptions
I was seeing from nnrpd has gone away (but I need more testing to really
confirm that).  nnrpd was core dumping on me from time to time as well and
I haven't seen it bomb now that mmap is off.

overview speed seems about the same.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Couple of INN 2.0 Related Questions..
#29788
Author: Steven Gillard
Date: Tue, 14 Jul 1998 00:00
42 lines
2097 bytes
Curt Welch wrote:
> Steven Gillard wrote:
> > As for the unified overview performance, it is a bit of a worry.  I
> > observed nnrpd make the following system calls while performing an xover
> > of 50 articles:
> >
> > syscall          count  rate    elapsed
> >
> > read              156   30.5    0.01046
> > write               1    0.1    0.01233
> > open               53   10.3    0.00733
> > close              53   10.3    0.00080
> > lseek             205   40.1    0.00257
> > ioctl               1    0.1    0.00002
> > fcntl              52   10.1    0.00066
> > mmap               51   10.0    0.00244
> > munmap             51    9.8    0.00130
> > fstat               1    0.1    0.00002
> > select              1    0.1   83.75039
> > gettimeofday       53   10.1    0.00081
> > pstat               1    0.1    0.00004
> >
> > ouch!
> 
> I assume that was with the mmap option on?  

Nope, mmap was off.  Nnrpd mmap's the cycbuff header every time it
probes an article regardless of the settings in inn.conf.  

> It looks like
> all it's time was spent waiting on a select - i.e. was innd
> doing the "real" work there?

It (nnrpd) was asleep waiting for me to enter a command.

Regards,
Steve.

steven_gillard@hp.com.nojunkmail
...opinions expressed are my own...

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