🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11297

Changes to INN FAQ Part part7/9: part7

#11297
From: Heiko W.Rupp
Date: Tue, 01 Oct 1996 00:00
54 lines
3550 bytes
--- part7	1996/09/17 12:07:42	2.11
+++ part7	1996/10/01 08:12:26
@@ -1004,13 +1004,37 @@
 
 Subject: (7.45) INN is only slowly responding
 
-If you telnet to the NNTP port and responses from INN need more than
-one second, then first look if cpu usage is high. If not then you
-might have the problem that the history is too large. Remember that
-history.pag is kept in memory, so you need at least that amount of free 
-memory when running innd - else paging the history file will slow your
-system down. To decrease the size edit expire.ctl and start an expire
-run or run histtrim or "makehistory -r". See also: #7.6, #7.7 and #7.41
+(From: Erland Sommarskog <sommar@sophocles.algonet.se>)
+Q: We started a new news server just a month ago. SS-20, lots of memory,
+   23 GB of news spool. The first week it ran fast as a jaguar, but now
+   it crawls like a snail. It takes forever to connect, we can't keep
+   up with our feeds which have to flush our queues, it takes to forever
+   to connect. When we monitor the box it spends an awful lot of time
+   in kernel mode, and seems to be doing a tremendous amount of disk
+   access. Where did we go wrong? If it matters, we're not running
+   expire, but dexpire and histtrim.
+
+A: The problem is with the history database. This database consists of
+   three files: history, history.pag and history.dir. The dir files
+   contains a hash table. For optimal performance, the hash file must
+   not be too small, or you will get many collisions. The initial size
+   of the history database is based on Usenet traffic as it was a
+   couple of years ago, and no one was considering a 23 GB spool. Now,
+   for people who is running expire this is not a problem, because when
+   you run expire, the history file is rebuilt, and the size for the
+   new database is taken from the old one. But if you are running
+   dexpire and histtrim, this never happens, and innd will spend most
+   of its time reading overflow buckets.
+     What to do then? Rebuild the history database. And the simlpest
+   way to do it, is to run expire. A simple approach is to run expire 
+   every now and then, with an expire.ctl that safe won't expire very 
+   many articles. (But add a short expiration time on some junk group,
+   so that expire get something to work with.) 
+   A better approach is to discontinue use of histtrim, and run expire 
+   daily basis. Dexpires produces an output which you easily can trans-
+   form into an expire.ctl. I discourage use of histtrim, since it
+   may delete articles from history and yet are on the system.
+See also: #7.6, #7.7 and #7.41
 
 ------------------------------
 
-- 
Heiko W.Rupp        Gerwigstr.5        D-76131  Karlsruhe    +49 721 9661524
"USENET is like Tetris for people who still remember how to read"
                                                   --Joshua Heller

Technical Details
Message-ID: <diff.faq.p7_844175182@pilhuhn.de>
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

Show Full Headers
Complete Article Headers
Message-ID: <diff.faq.p7_844175182@pilhuhn.de>
Subject: Changes to INN FAQ Part part7/9: part7
Date: Tue, 01 Oct 1996 00:00:00 +0000
From: hwr@pilhuhn.de (Heiko W.Rupp)
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: 186514080
Supersedes: <diff.faq.p7_843566783@pilhuhn.de>
Followup-to: news.software.nntp
Organization: The Home Of The Pilhuhn
Newsgroups: news.software.nntp,news.software.b