🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #22645

Re: Speedup of our readerbox

#22645
From: Matt Dillon
Date: Sat, 25 Oct 1997 00:00
85 lines
4185 bytes
:In article <62sdnf$1h7e$1@news.inet.tele.dk>,
:Jesper Skriver  <jesper@skriver.dk> wrote:
:>Hi
:>
:>I'm trying to figure a way to speedup our readerbox,
:>which uses it's time like this
:>
:>         Code region     Time         Pct  Invoked Min   Avg   Max
:>         article cancel  00:04:14.850  0.6%   2895 0.009 0.088 0.959     
:>         article control 01:12:07.150  9.4% 109242 0.025 0.040 0.093
:>         article link    00:00:20.584  0.0%  68409 0.000 0.000 0.009
:>         article write   04:19:06.082 33.8% 242646 0.042 0.064 0.120
:>         history grep    00:01:19.361  0.2%  13554 0.000 0.006 0.047     
:>         history lookup  04:40:49.505 36.6% 569982 0.018 0.030 0.046    
:>         history sync    00:00:01.966  0.0%   4917 0.000 0.000 0.003
:>         history write   00:04:56.868  0.6% 365426 0.000 0.001 0.002
:>         idle            00:03:00.436  0.4%  78252 0.000 0.002 0.137
:>         site send       00:08:51.348  1.2% 872413 0.000 0.001 0.005      
:>
:>It's a RS/6K model G40 with 4 * 112 MHz PowerPC 604 CPU's, 512 MB 
:>memory, 32 SSA 4 GB drives, 2 F/W SCSI 4 GB drives, 4 F/W 2 GB drives.
:>
:>It has a striped spool across 28 * 4 Gb SSA drives, overview is
:>on a striped filesystem across 4 * 4 Gb SSA drives, history is
:>on a striped filesystem across 4 * 2 Gb F/W SCSI drives (atlas-II).

    28 * 4 = 112 GB spool.  Now that is a *big* news spool!

    The history lookup time is almost certainly related to the size of
    the history file verses the amount of memory you have for disk
    caching.  with a spool that big, reducing the remember time
    in expire.ctl (coupled with the correct -c option to innd) will
    probably not have a huge effect due to article retention times.

    The article write time is almost certainly related to the initial
    open() blocking on disk accesses.  This is a combination of a
    caching issue and the fact that, due to the size of the spool,
    each group directory contains a huge number of articles.  Even
    with a hashing filesystem, there is a serious caching issue there.

:>It runs 1.7 with the patches from http://www.insync.net/~aos/inn.html
:>
:>I see 4 ways to improve performance.
:>1) Trying the 64bit history patch
:>2) Running Jeremy's cleanfeed filter on our feeder box, so it will
:>   offer fewer articles to the reader box.
:>3) Stop feeding cancels to the reader box, and run nocem on spool
:>   instead.
:>4) Improve the speed of the spool.

    Your spool is already striped across 28 drives, you are 
    probably not going to be able to improve its speed much more.

    I think your best bet is to add another 512MB of ram and
    then tune the buffer and namei caches for the machine.  A
    machine like that has got to be pretty expensive, what's
    another 512MB of ram ?

    You should also review the reasons behind having such a large
    spool.  Reducing the size of the spool will have a direct
    effect on both bottlenecks (history lookup, article write).

    You can also try reducing the remember time (& -c option to
    innd, both go together).

    And you can also try your above ideas.

    Most people have 16-32 GB spools.  Many news transit nodes
    (in the top 1000) have even smaller spools... 1-16 GB, and
    you will have a hard time competing with that so I wouldn't
    bother.

					-Matt

:>Any comments or good ideas?
:>
:>/Jesper
:>
:>--
:>Jesper Skriver (JS249-RIPE), Network manager      
:>Tele Danmark Internet (TDI1-RIPE)


Technical Details
Message-ID: <62udui$di8$1@flea.best.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-mail
References: <62sdnf$1h7e$1@news.inet.tele.dk>

Show Full Headers
Complete Article Headers
Message-ID: <62udui$di8$1@flea.best.net>
Subject: Re: Speedup of our readerbox
Date: Sat, 25 Oct 1997 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <62sdnf$1h7e$1@news.inet.tele.dk>
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: 285009779
X-Trace: 877837076 25405 dillon 206.184.139.132
Organization: Best Internet Communications, Inc. - 650 964 BEST
Newsgroups: news.software.nntp