Article View: news.software.nntp
Article #12657Re: History DB Performance
From: Jared Mauch
Date: Mon, 25 Nov 1996 00:00
Date: Mon, 25 Nov 1996 00:00
66 lines
2871 bytes
2871 bytes
[Posted and mailed] In article <yy3zq0bo31w.fsf@velo.pp.vix.com>, James Brister <brister@vix.com> writes: > "Raul Zighelboim" <mango@communique.net> writes: > >> When you mention the patch, were you considering inn1.4 or 1nn1.5 ? > > Both. > >> According to your stats, I am having a problem with history lookups: >> >> # head -1 /var/news/etc/history.dir | perl -ane 'print 2 **$F[7], "\n";' >> 134217728 >> # ls -l history >> -rw-rw-r-- 1 news news 134485807 Nov 21 09:23 history > > That's good enough. I'd be worried if history was a lot larger than the > number the perl script gave. Dave Lawrence (if he reads this) can give a > much better dissertation on the parameters of dbz and how they affect > performance. > >> while running 1.5b2. I seem to have poor performance receiving articles... > > What makes you think that? Here at CICnet, we just moved (for testing) one of our production servers to inn1.5b2 due to long history file lookups and whatnot. I find myself newfsing the disks, and redoing the history and whatnot about once to twice a month, then we get excellent performance for about 15 days or so. I just applied a patch sent to me from Dave Barr earlier today and we will see if that helps. It seems that news just is having a few problems scaling since the days when I used to run a uucp cnews feed. :-) Those were the good old days. I don't know enough about inn sources to hack on it to help any, but I would be interested in seeing some compile options to keep the entire history file in memory on servers that are capable of doing that. It would make sense that if you have the memory, why go out to disk. You could always say lets let the OS take care of caching the data, but there are many great things that can come about from having innd keep it in memory, then fork a process every 30-60 seconds to resync the file on disk incase something bad happens. One thing that I may be looking into doing is parsing each incoming news stream with seperate threads (where available).. That would also seem to make multiprocessor news systems perform a lot better than uniprocessor ones. Comments? - Jared - Jared
Technical Details
Message-ID:
<57d8ev$f9e@news.cic.net>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:
<56turt$5vb$1@newsfeed.dreamscape.com>Show Full Headers
Complete Article Headers
Message-ID: <57d8ev$f9e@news.cic.net> Subject: Re: History DB Performance Date: Mon, 25 Nov 1996 00:00:00 +0000 From: jared@nic.hq.cic.net (Jared Mauch) References: <56turt$5vb$1@newsfeed.dreamscape.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: 200715397 To: James Brister <brister@vix.com> Content-type: text/plain; charset=us-ascii Organization: CICNet, Inc. Mime-version: 1.0 Newsgroups: news.software.nntp