Article View: news.software.nntp
Article #17400Re: performance problem with xover
From: Jan-Pieter Cornet
Date: Wed, 30 Apr 1997 00:00
Date: Wed, 30 Apr 1997 00:00
57 lines
3452 bytes
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 ++$_;$!=$_+++$_;($:,$,,$/,$*)=$!=~/.(.)...(.)(.).(.)/;$!=$_+$_; ($@,$\,$~)=$!=~/(.)(.).(.)/; $_="$,$/$:"; $@++; $~="$~$_";($_)= \$$=~/\((.)/;$|=++$_;$_++;$|++;$~="$~ $@$:";`$~$/$\$*$, $|>&$_`
Technical Details
Message-ID:
<5k660e$g1k$1@news0.xs4all.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<5k2hmv$4d3@nina.pagesz.net> <5k38lu$8bf$1@news0.xs4all.nl> <5k5nc0$cuc$1@newssvr04-int.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <5k660e$g1k$1@news0.xs4all.nl> Subject: Re: performance problem with xover Date: Wed, 30 Apr 1997 00:00:00 +0000 From: johnpc@xs4all.nl (Jan-Pieter Cornet) References: <5k2hmv$4d3@nina.pagesz.net> <5k38lu$8bf$1@news0.xs4all.nl> <5k5nc0$cuc$1@newssvr04-int.news.prodigy.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 238282841 Organization: XS4ALL X-XS4ALL-Date: Wed, 30 Apr 1997 03:07:26 MET DST Newsgroups: news.software.nntp