Article View: news.software.nntp
Article #8187Re: Sluggish INND response?
From: Erland Sommarskog
Date: Sun, 02 Jun 1996 00:00
Date: Sun, 02 Jun 1996 00:00
59 lines
3507 bytes
3507 bytes
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 >out of 6 disks on two dedicated SCSI-buses, and a hardware disk cache >module - running Solaris 2.5 but its response to NNTP/NNRP connections >is very slow. INND seems to consume a lot of CPU time, and the system spends >a lot of time waiting for I/O, according to 'top'. We have between 20 and 50 >NNRP readers and four feeds of which two are streaming their data to us. >Is it the streaming that causes the server to become so slow when responding >to connections? It also seems it is slow when accepting articles and is >responding to IHAVE commands. An IHAVE-response can take between 10 and >20 seconds... > >I did a truss (trace) on innd and found out it did close to 1000 lseek() >and 1000 read() system calls per second. It hardly seemed to do anything >else in fact. Is this normal? 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. The important thing is: an incorrectly sized DBZ file can sink your news system. -- Erland Sommarskog, Stockholm, sommar@algonet.se De klant heeft altijd recht - Nederl�ndskt ordspr�k.
Technical Details
Message-ID:
<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-mailReferences:
<4o4pif$lr1@epimetheus.algonet.se>Show Full Headers
Complete Article Headers
Message-ID: <4orr7g$j3d@sophocles.algonet.se> Subject: Re: Sluggish INND response? Date: Sun, 02 Jun 1996 00:00:00 +0000 From: sommar@sophocles.algonet.se (Erland Sommarskog) References: <4o4pif$lr1@epimetheus.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: 158032535 Cc: prl hwr@pilhuhn.de Organization: BF Beckasinen 13 u.p.a. Newsgroups: news.software.nntp Nntp-posting-user: b6433f7f5532dec0093c87732e2a5b740