Article View: news.software.nntp
Article #8262Re: Sluggish INND response?
From: Matthew Ward
Date: Tue, 04 Jun 1996 00:00
Date: Tue, 04 Jun 1996 00:00
100 lines
4990 bytes
4990 bytes
Matthew Ward wrote:
>
> Erland Sommarskog wrote:
> >
> > Ragnar Lonn (prl@algonet.se) writes:
> > >We have a problem with the newsserver at our site. It is a powerful machine
> > >- a Sparc 20/712 (2 CPU) with 320MB RAM, a striped news spool disk array made
> [snip]
> > >responding to IHAVE commands. An IHAVE-response can take between 10 and
> > >20 seconds...
> > >
> [snip]
> >
> > We managed to solve this problem, and maybe the morals are worth putting
> > in the FAQ, why I'm cc:ing a copy to Heiko.
> >
> > No, it had nothing to do with streaming. The problem was that the server
> > had just recently been set up. We don't run expire here, but prefer
> > dexpire which tries to keep a constant amount of disk space free.
> > But with a 20GB spool, it takes a few weeks before you fill it up,
> > so why run anything in the meantime?
> >
> > So. we thought, but that was our mistake. The history database consists
> > of three files, the plain text files and the dbz files history.dir and
> > history.pag. What size they need to have depends on the text file
> > in question. INN makes an initial guess, but it goes far off the
> > mark for a 20 GB, so you end up with a hash table which is overflowed
> > over and over again, leading to excessive retrieval times. The fix
> > was simple:rebuild the history.pag and history.dir files with the
> > size of the current history file as input.
> >
> > So the moral is: even if you plan to run dexpire and just let the
> > spool fill up, you must make sure that the pag- and dir-files are
> > rebuilt regularly. Particularly when the database is constantly
> > growing, you should run a rebuild each night.
> >
> > Also, be aware of that dexpire does not move history, but you are
> > supposed to do that with the histtrim program which comes with
> > dexpire. You can run it once a week if you like, but you get an
> > unnecessarily large history file then.
> >
> > As for for which means to keep these files in trim, there are several
> > ways: histtrim, "makehistory -r", expire. There are people in this
> > group who are more competent than me on this point, so I'll stop here.
>
> OK. I'm eagerly looking for further responses along this line with
> regard to makehistory. Once (loooooong ago, when I had only a few
> newsgroups) I used to run a makehistory every week, just because.
>
> When I moved to a multi-volume spool to deal with a full newsfeed,
> I learned that makehistory doesn't deal well with the spool spread
> across multiple partitions, what with cross-posting across mount
> points etc, etc. (I think ... that was so long ago).
>
> Anyway ... can anyone recommend a decent "rebuild history from
> scratch" script that will deal with my news being spread all
> over three separate logical volumes?
>
> >
> > The important thing is: an incorrectly sized DBZ file can sink your
> > news system.
OK. I'm going to come right out and ask:
Does anyone know why the following would not work? My objective is
to have a correctly sized dbz file, assuming my history file is
intact and correct. Another BIG objective is to MINIMIZE down time,
so I am betting that running a chopped-up version of the makehistory
suggested in news-recovery(8) would work:
ctlinnd throttle "Rebuilding history DBZ File"
cd ~news
if makehistory -r -s `wc -l <history` -f history.n; then
mv history.n.dir history.dir
mv history.n.pag history.pag
fi
ctlinnd go "Rebuilding history DBZ File"
My spool is spread around as follows:
scsi, internal /users ~news, history, etc
fast-wide scsi1 /usr1 /var/spool/news, except items below
fast-wide scsi1 /usr2 /var/spool/news/alt/binaries
fast-wide scsi2 /spool4 /var/spool/news/control & junk
fast-wide scsi2 /spool5 /var/spool/news/in.coming & out.going
>
> Glub, glub!
>
AD(thanks)VANCE,
--
A lot of people in this country are | I'm certainly not. And I'm sick
sick and tired of being told that | and tired of being told that I am.
ordinary, decent people are fed up in |
this country with being sick and tired. | /\/\ a tt == Matthew.Ward@gte.net
Technical Details
Message-ID:
<31B4593A.2A14@gte.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:
<4o4pif$lr1@epimetheus.algonet.se> <4orr7g$j3d@sophocles.algonet.se> <31B36CDC.40F0@gte.net>Show Full Headers
Complete Article Headers
Message-ID: <31B4593A.2A14@gte.net> Subject: Re: Sluggish INND response? Date: Tue, 04 Jun 1996 00:00:00 +0000 From: Matthew Ward <mward@gte.net> References: <4o4pif$lr1@epimetheus.algonet.se> <4orr7g$j3d@sophocles.algonet.se> <31B36CDC.40F0@gte.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-mail X-Deja-AN: 158426768 Cc: mward@gte.net Content-type: text/plain; charset=us-ascii Organization: Organization?! We don't need no STINKING ORGANIZATION! Mime-version: 1.0 Newsgroups: news.software.nntp X-mailer: Mozilla 2.01 (X11; U; SunOS 5.5 sun4m)