Article View: news.software.nntp
Article #21358Re: NNRPD resource consumption
From: Joe Greco
Date: Mon, 08 Sep 1997 00:00
Date: Mon, 08 Sep 1997 00:00
63 lines
3269 bytes
3269 bytes
In news.software.nntp article <5uq11i$j3e@shell.monmouth.com>, kwl@shell.monmouth.com (Ken Leland) wrote: :In article <5upqc7$6tf$1@jake.probe.net>, :Tim Russell <russell@probe.net> wrote: :> :>kwl@shell.monmouth.com (Ken Leland) writes: :> :>>I initially thought I had dedicated (T1) customer(s) doing a job on me, :>>but it wasn't the case. These nnrpd cpu eaters are normal 33.6 dialups, :>>and they are usually in XOVER. :> :> On looking through the NNRPD code recently to see just what the hell :>was going on, I noticed the following: :> :> 1) Joe User is a news freak. He checks like every 10 minutes for :> new articles. : :Lets add to this hypothesis that Joe likes to download the finer articles :in the alt.binaries.pictures.erotica.* newsgroups. :(my news logs indicate this would indeed be an an average Joe). : :And presumably he does not want to miss the latest ones in the group of :his choosing, as he waits breathlessly for the next one to arrive. : :It turns out that because articles in these groups are often (usually) :*heavily* crossposted a .overview file for many of these can easily be :4Megs long on only 3 days worth of articles. : :> :> 2) Joe fires up an XOVER on a group that has, say, 37,000 articles :> in it. The XOVER request, however, is only for, say, the last :> four articles, which are new to him. :> :> 3) NNRPD satisfies this request by opening the .overview file, which :> is, say, 8M in size, and proceeding to read through the entire :> file until it gets to the record number it needs, then it spits :> out records. : :Ouch, I can hear my overview disk screaming right now. What you could _try_ is using my overviews patch that does an MMAP of the .overview file (http://www.nntp.sol.net/patches/nov.mmap.patch) You should compile with -DNOV_MMAP. You can try compiling with -DNOV_UNORDERED too. This has the DOWNside of reading the entire .overview file when you execute a GROUP command. However, once read, the file is mmap'd and a list of pointers is generated, so that further accesses are fast. In particular, this technique does NOT suffer horribly like the normal NOV implementation, if you should choose to do something strange like scan backwards through your NOV data. In general, things seem better here with this patch. Oh - one side note. The apparent size of your nnrpd processes will grow, due to the mmap'ing. That should not be a real problem though. ... JG
Technical Details
Message-ID:
<5v12u9$qhd$1@earth.execpc.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-mailReferences:
<5unqlf$jfa@shell.monmouth.com> <5upijp$2oi@shell.monmouth.com> <5upqc7$6tf$1@jake.probe.net> <5uq11i$j3e@shell.monmouth.com>Show Full Headers
Complete Article Headers
Message-ID: <5v12u9$qhd$1@earth.execpc.com> Subject: Re: NNRPD resource consumption Date: Mon, 08 Sep 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <5unqlf$jfa@shell.monmouth.com> <5upijp$2oi@shell.monmouth.com> <5upqc7$6tf$1@jake.probe.net> <5uq11i$j3e@shell.monmouth.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: 270724570 Sender: jgreco@earth.execpc.com Distribution: inet Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp