🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Heiko W.Rupp Tue, 01 Oct 1996 00:00
Changes to INN FAQ Part part7/9: part7
#11297
Author: 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

Re: Changes to INN FAQ Part part7/9: part7
#11442
Author: Alan Brown
Date: Sun, 06 Oct 1996 00:00
27 lines
1510 bytes
In article <diff.faq.p7_844175182@pilhuhn.de>,
Heiko W.Rupp <hwr@pilhuhn.de> wrote:

>+(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

Histrim is a Cnews program, not an INN one.

Granted, the same problem exists with INN, but the fastest way to fix the 
database is already covered from another angle in the makehistory Man pages:

ctlinnd pause wibble
makehistory -r -s 'wc -l < history' -f history
mv history.n.pag hitory.pag
mv history.n.dir history.dir
chown news.news history*
ctlinnd reload history wibble
ctlind go wibble

AB
-- 
One net to rule them all, one net to find them, one net to bring them all,
using Unix to bind them.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads