Article View: news.software.nntp
Article #8230Re: Sluggish INND response?
From: Matthew Ward
Date: Mon, 03 Jun 1996 00:00
Date: Mon, 03 Jun 1996 00:00
72 lines
3888 bytes
3888 bytes
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. 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:
<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-mailReferences:
<4o4pif$lr1@epimetheus.algonet.se> <4orr7g$j3d@sophocles.algonet.se>Show Full Headers
Complete Article Headers
Message-ID: <31B36CDC.40F0@gte.net> Subject: Re: Sluggish INND response? Date: Mon, 03 Jun 1996 00:00:00 +0000 From: Matthew Ward <mward@gte.net> References: <4o4pif$lr1@epimetheus.algonet.se> <4orr7g$j3d@sophocles.algonet.se> 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: 158302545 To: Erland Sommarskog <sommar@sophocles.algonet.se> 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)