🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23547

Re: inn 1.7 rnews too slow on Linux

#23547
From: Douglas McNaught
Date: Sat, 22 Nov 1997 00:00
65 lines
3786 bytes
devin@premier1.net (Devin Ganger) writes:

> The feed in question sends zipped files that contain between 6 to 12
> ..bag files of news.  The processing script invokes rnews for each .bag
> file, which generally contains between 80-120 messages.

> The server in question is a dual-Pentium200 with 128MB of RAM.  A 2GB
> IDE drive holds the root parition, on which the operating system
> (Slackware, with Linux kernel 2.0.30) is held, and an Adaptec fast SCSI
> controller with 2 4G hard drives for the news spool and a 2GB hard drive
> as the /var filesystem.  The 2 4G hard drives were mounted as
> /mnt/newsart1 and /mnt/newsart2 and contained the actual news
> hierarchies (split as necessary to keep each disk approximately equally
> loaded), while /var/spool/news/articles contained symlinks to the
> appropriate directories underneath /mnt/newsart*.

In answer to your [snipped] question below, and to quote a denizen of
this newsgroup (don't remember who), "this is the 90s--stripe those
drives!"

Your version of Linux supports the 'md' driver, which allows striping.
I'm running a partial feed (big 8, no binaries, a few alt groups) onto
2 striped 4GB SCSI drives and keeping up fine.  I wouldn't even
consider trying to run a full feed onto two drives, even if they were
big enough.

Without looking at your system, I'm guessing that your spool is the
bottleneck here, espcially since you say Dnews keeps up OK (INN hits
the spool really hard because of its file-per-article model).  There
are two possible problems with the spool:

1) You may be getting news batches with big "clumps" of articles in
   the same hierarchy.  This will effectively serialize access to your 
   disks, giving you no performance benefit from multiple devices.
   This will be helped by striping. 

2) Your feed (you don't say how big it is) may just be exceeding the
   bandwidth limit of your spool disks.  This won't be helped by
   striping--you would have to buy 4 2GB disks, say, and stripe them
   all together to distribute the load over more spindles. 

> Can anyone tell me what sorts of options I may have turned on when I
> wasn't supposed to in inn/config/config.data, or should turn on in order
> to beat this performance problem?  Dnews is fast, but it just isn't
> flexible enough for my tastes.  If I wanted pre-compiled binaries with
> no source, I would have stuck with Windows NT.

With performance problems, there's no substitute for metering.  On
your system, disk I/O in some form is by far the most likely suspect.
Use 'procinfo' to see what kind of I/O load you're putting on your
drives.  Remember that running INN means that each I/O operation on
the drive probably represents a seek.

If you're interested in more information on the striping stuff, drop
me a line--I'll be happy to share what I know. 

-Doug
-- 
sub g{my$i=index$t,$_[0];($i%5,int$i/5)}sub h{substr$t,5*$_[1]+$_[0],1}sub n{(
$_[0]+4)%5}$t='encryptabdfghjklmoqsuvwxz';$c='fxmdwbcmagnyubnyquohyhny';while(
$c=~s/(.)(.)//){($w,$x)=g$1;($y,$z)=g$2;$w==$y&&($p.=h($w,n$x).h($y,n$z))or$x==
$z&&($p.=h(n$w,$x).h(n$y,$z))or($p.=h($y,$x).h($w,$z))}$p=~y/x/ /;print$p,"\n";

Technical Details
Message-ID: <m2vhxkyknu.fsf@ono.tc.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: <34766eee.0@satellite.premier1.net>

Show Full Headers
Complete Article Headers
Message-ID: <m2vhxkyknu.fsf@ono.tc.net>
Subject: Re: inn 1.7 rnews too slow on Linux
Date: Sat, 22 Nov 1997 00:00:00 +0000
From: Douglas McNaught <doug@tc.net>
References: <34766eee.0@satellite.premier1.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
X-Deja-AN: 291369520
Sender: doug@ono.tc.net
Organization: Premiere Communications, Inc
Newsgroups: news.software.nntp