🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #42188

Re: Reduce memory footprint of INN expire process?

#42188
From: Charles Ball
Date: Wed, 15 Dec 1999 00:00
50 lines
2696 bytes
I am trying to speed up expires using inn 2.3 (12/01); I've run makedbz
both with and without tagged hash.  The makedbz process takes hours and
thrashes the system with I/O requests.  A process trace shows thousands of
lines like:

pread(8, "8F XA7 Y 0 y", 6, 14968380)           = 6
 ....
pread(8, " .DC13F0 rA3", 6, 14968416)           = 6


My limited reading of makedbz.c is that QIOread is only picking up 6 bytes
of history at a time.  I tried increasing QIO_BUFFER (to 81960), but as I
anticipated this had no effect on makedbz.  I'm still plugging away at this,
but does anyone who already understands this code have an idea of how to fix
makedbz to get decently sized reads?

Russ Allbery <rra@stanford.edu> wrote:

: Brad Knowles <brad@shub-internet.org> writes:
:> davidsen@tmr.com (bill davidsen) wrote:

:>> The best way to address this is to compile with tagged hash enabled,
:>> then stop news, install the new version, makehistory and makedbz all
:>> over again. This will trade a bit of performance for less memory use.

"a bit of performance" is hard to measure.  It really isn't clear how
to decide which to use absent an understanding of these two index systems.

:> Does this change the format of the history file?  If so, I've got a
:> problem -- there are two newsreader servers that NFS mount the spool
:> from this machine, and they use a reader-history file that is built on
:> the news spool server (from the main history file).

: My understanding is that it only affects the names and contents of the
: index files, and that the history file is identical either way.  But I've
: never used tagged hash, so take this with a grain of salt.

: (How much memory did this system have, again?  And how big is your history
: file?)

The history file is 800Mb, memory is 1.2Gb; I "borrowed" 512Mb of the latter to
speed things up during initial setup.



Charles Ball
Information Technology
Boston University

Technical Details
Message-ID: <8393b3$10b$1@news1.bu.edu>
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
References: <brad-2511991706200001@brad.techos.skynet.be> <383d63a3.635328@news.smartt.com> <823lc5$hbp$1@newssvr02.news.prodigy.com> <brad-F091DB.22413301121999@news.skynet.be> <yl4se2l3gd.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <8393b3$10b$1@news1.bu.edu>
Subject: Re: Reduce memory footprint of INN expire process?
Date: Wed, 15 Dec 1999 00:00:00 +0000
From: cball@bu.edu (Charles Ball)
References: <brad-2511991706200001@brad.techos.skynet.be> <383d63a3.635328@news.smartt.com> <823lc5$hbp$1@newssvr02.news.prodigy.com> <brad-F091DB.22413301121999@news.skynet.be> <yl4se2l3gd.fsf@windlord.stanford.edu>
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: 561140935
Organization: Boston University
Newsgroups: news.software.nntp