🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Rick Langston Mon, 28 Apr 1997 00:00
performance problem with xover
#17341
Author: Rick Langston
Date: Mon, 28 Apr 1997 00:00
39 lines
1955 bytes

I apologize in advance if this question has been asked recently. 
I'm not a regular reader of the newsgroup (although I probably 
should be). 

I have my own "home-brewed" news gatherer. I implemented it using 
C and including the clientlib.c code provided by Stan Barber 
many years ago. I am using the news gatherer in my personal 
UNIX shell on my ISP. 

Everything had been working fine up until recently. However, 
something has started happening regarding the binary newsgroups. 
I first issue the group command for the newsgroup, and it gives
me the first and last message number. In certain groups, these
numbers may be different by as much as 10,000 or more (although 
the actual number of messages is usually no more than about 300). 

When I issue an xover a-b (where a and b are the first and last 
message numbers provided by the group command), I find that there
is quite a time lag in reading the subjects. It appears that a 
buffer of 2 or 3 subjects is read with a delay before the next 
buffer is read. It can sometimes take several minutes to read the 
subjects for a single newsgroup (note that I'm not issuing any 
article command; I'm just reading subjects). 

This used not to be the case, as little as 2 months ago. 

Any ideas as to what could be causing this? 

Thanks in advance - 

Rick Langston <langston@pagesz.net>

-- 
Rick Langston <langston@pagesz.net>
Home page at http://www.pagesz.net/~langston

Re: performance problem with xover
#17353
Author: Jan-Pieter Cornet
Date: Mon, 28 Apr 1997 00:00
37 lines
2189 bytes
[mailed and posted]

In article <5k2hmv$4d3@nina.pagesz.net>,
Rick Langston <langston@nina.pagesz.net> wrote:
>something has started happening regarding the binary newsgroups. 
>I first issue the group command for the newsgroup, and it gives
>me the first and last message number. In certain groups, these
>numbers may be different by as much as 10,000 or more (although 
>the actual number of messages is usually no more than about 300). 
>
>When I issue an xover a-b (where a and b are the first and last 
>message numbers provided by the group command), I find that there
>is quite a time lag in reading the subjects. It appears that a 
>buffer of 2 or 3 subjects is read with a delay before the next 
>buffer is read. It can sometimes take several minutes to read the 
>subjects for a single newsgroup (note that I'm not issuing any 
>article command; I'm just reading subjects). 

You (or the news admin) should probably run expireover and make sure
it completes successfully.

Also, xover in binary newsgroups is *VERY* inefficient with innd. I've
made patches against innd-1.5.1 that speed up processing of xover
tremendously (I would guess with a factor 100 at least, but YMMV),
look at http://www.xs4all.nl/~johnpc/inn or I believe the patches
are also in ftp://ftp.isc.org/isc/inn/unoff-patches.

Regards,

--
#! ##### Jan-Pieter Cornet ##### <johnpc@xs4all.net> ##### perl
++$_;$!=$_+++$_;($:,$,,$/,$*)=$!=~/.(.)...(.)(.).(.)/;$!=$_+$_;
($@,$\,$~)=$!=~/(.)(.).(.)/; $_="$,$/$:"; $@++; $~="$~$_";($_)=
\$$=~/\((.)/;$|=++$_;$_++;$|++;$~="$~ $@$:";`$~$/$\$*$, $|>&$_`

Re: performance problem with xover
#17367
Author: bill davidsen
Date: Tue, 29 Apr 1997 00:00
21 lines
1452 bytes
In article <5k2hmv$4d3@nina.pagesz.net>,
Rick Langston <langston@nina.pagesz.net> wrote:

| When I issue an xover a-b (where a and b are the first and last 
| message numbers provided by the group command), I find that there
| is quite a time lag in reading the subjects. It appears that a 
| buffer of 2 or 3 subjects is read with a delay before the next 
| buffer is read. It can sometimes take several minutes to read the 
| subjects for a single newsgroup (note that I'm not issuing any 
| article command; I'm just reading subjects). 

One possible cause is that the NOV database is hosed on the server,
and you are building the XOVER data on the fly. This also will
seriously impact server performance!!
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch

Re: performance problem with xover
#17396
Author: bill davidsen
Date: Tue, 29 Apr 1997 00:00
20 lines
1358 bytes

In article <5k38lu$8bf$1@news0.xs4all.nl>,
Jan-Pieter Cornet <johnpc@xs4all.nl> wrote:

| Also, xover in binary newsgroups is *VERY* inefficient with innd. I've
| made patches against innd-1.5.1 that speed up processing of xover
| tremendously (I would guess with a factor 100 at least, but YMMV),
| look at http://www.xs4all.nl/~johnpc/inn or I believe the patches
| are also in ftp://ftp.isc.org/isc/inn/unoff-patches.

I'm going to grab the patches and study them, but if the NOV
database is up-to-date it's non-obvious why the binary groups would
behave worse than the text groups.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch

Re: performance problem with xover
#17400
Author: Jan-Pieter Cornet
Date: Wed, 30 Apr 1997 00:00
57 lines
3452 bytes
In article <5k5nc0$cuc$1@newssvr04-int.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:
>In article <5k38lu$8bf$1@news0.xs4all.nl>,
>Jan-Pieter Cornet <johnpc@xs4all.nl> wrote:
>
>| Also, xover in binary newsgroups is *VERY* inefficient with innd. I've
>| made patches against innd-1.5.1 that speed up processing of xover
>| tremendously (I would guess with a factor 100 at least, but YMMV),
>| look at http://www.xs4all.nl/~johnpc/inn or I believe the patches
>| are also in ftp://ftp.isc.org/isc/inn/unoff-patches.
>
>I'm going to grab the patches and study them, but if the NOV
>database is up-to-date it's non-obvious why the binary groups would
>behave worse than the text groups.

It's not the binaries groups per se, the problem is mainly if you have
groups with LOTS of articles in them, like 10000+. It only makes it
worse if all those articles are crossposted all over the place, your
.overview file can easily become 1Mb in size.

Standard INND does a linear search of that file for the first article,
starting at the beginning, and it does more linear searches if there
are holes in either the xover database or in the real articles, or
if the overview database is out of order because you're running a slave
server.

If you have a lot of readers doing that, all your readers will have to
read those 1Mb files. In our case, this alone was enough to completely
swamp the disk holding the overview database. Performance was terrible
because this disk was so extremely lagged.

With my patches, the files are mmaped, and searched using a binary
search, which causes a LOT less disk reads. Clients reading the same
group can easily share the files, and in general only a small fraction
of the files are searched because users are normally only interested
in the most recent articles. In our case, the over.view disk which
used to be the big performance bottleneck, became one of the least
used disks on the system...

Of course, YMMV. I've only tested this for our particular situation,
but I'd be surprized if it didn't show a speedup on XOVER processing
(but watch the logfile for messages that indicate failure to search
or mmap the .overview file. If innd falls back to OVERgen(),
performance will be horrible. In fact, I patched innd so it
counts the number of times it calls OVERgen compared to the
number of XOVER lines generated in total. If the number of OVERgens
exceeds 0.1%, there's usually something wrong, like overchan not
keeping up or something).

--
#! ##### Jan-Pieter Cornet ##### <johnpc@xs4all.net> ##### perl
++$_;$!=$_+++$_;($:,$,,$/,$*)=$!=~/.(.)...(.)(.).(.)/;$!=$_+$_;
($@,$\,$~)=$!=~/(.)(.).(.)/; $_="$,$/$:"; $@++; $~="$~$_";($_)=
\$$=~/\((.)/;$|=++$_;$_++;$|++;$~="$~ $@$:";`$~$/$\$*$, $|>&$_`

Re: performance problem with xover
#17419
Author: Ragnar Lonn
Date: Wed, 30 Apr 1997 00:00
24 lines
1354 bytes
In article <5k660e$g1k$1@news0.xs4all.nl>, johnpc@xs4all.nl (Jan-Pieter 
Cornet) wrote:
>With my patches, the files are mmaped, and searched using a binary
>search, which causes a LOT less disk reads. Clients reading the same
>group can easily share the files, and in general only a small fraction
>of the files are searched because users are normally only interested
>in the most recent articles. In our case, the over.view disk which
>used to be the big performance bottleneck, became one of the least
>used disks on the system...
>

Would this work equally well on a system where overview and article
files are NFS-mounted?   Will mmap() work equally well over NFS?

Regards,

  /Ragnar, Algonet





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