🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39868

Re: news spool area exported from NFS

#39868
From: Chris Adams
Date: Wed, 15 Sep 1999 00:00
108 lines
6480 bytes
Once upon a time, Brad Knowles <brad@shub-internet.org> said:
>In article <gVtD3.10204$N77.783503@typ11.nn.bcandid.com>,
>cmadams@fly.hiwaay.net (Chris Adams) wrote:
>> I am setting up Linux and Diablo on a server that used to be an NT news
>> server.  It has a lot of hardware (two dual channel external RAID boxes
>> with AMI MegaRAID controllers).
>
>    This card is not listed at
><http://www.freebsd.org/handbook/install.html#INSTALL-HW>, but I
>understand that there have been DPT SmartRAID V drivers that have been
>contributed to FreeBSD a couple of months ago and it's not on this list
>either, so there may well also be AMI MegaRAID drivers and we just don't
>know it.  Or, the AMI MegaRAID might just be a rebranded controller from
>someone else, which might already have support under FreeBSD.

The MegaRAID is an AMI design.  The cards I have have three channels, a
Symbios chip for SCSI busses, and an Intel i960 to control it all and
interface to the system.  Dell and AMI wrote a drive for Linux not too
long ago, so maybe they haven't been convinced to release it under a
BSD license as well (yet!).  I prefer the GPL, but I think that things
like hardware drivers should be available for both Linux and *BSD (I
like Linux, but I want to see both succeed over Windows and the other
Unixes).

>>                                  I am setting it up with each RAID box
>> as a single RAID0 array (8 drives x 8.5G = 69G)
>
>    You might want to redo this math slightly, otherwise you could be in
>for a rude shock.
>
>        I get 8 * 8.5 = 68GB raw
>        Lose 20% due to RAID-5 overhead = 54.4GB left
>        Lose 10% due to filesystem overhead = 48.96GB left
>        Lose 10% so that you never optimize for space = 44.064GB left

RAID 0 = striping = 0% loss due to RAID overhead.  The actual size of the
array is just over 71 billion bytes.  RAID 5 doesn't have 20% overhead,
it has 1 drive overhead.  So with 8 drives, that's 12.5% overhead.  After
partitioning it and making filesystems, there are 70 billion bytes, with
5% reserved for root (and filesystem headroom), which leaves 66.8 billion
bytes available to be used.  Now, I do have to partition that for spool,
history, overview, etc. (is it _really_ recommended that overview and
spool be on separate partitions, and if so, why?), so that cuts into it.

I've calculated it this way, but one thing I need to find out from
someone running Diablo (especially if you are only doing non-binaries)
is the approximate bytes-to-inode ratio.  Joe Greco said that once he
cut down on the number of inodes to a reasonable level, the system ran
fsck (in case of crash) a _lot_ faster.  I've tried running fsck on a
30G news spool (INN article per file spool), and it took a long time.

>    RAID-5 properly implemented should never cause the array to go down if
>a drive fails.  In fact, with good hardware RAID controllers, you should
>be able to set up hot spare drives, etc... to help ensure that even if a
>drive does die the system will take care of rebuilding itself and getting
>back to full redundancy ASAP.

The RAID boxes I have don't have room for spares (they each have 8 drives
in them and all 8 are in use in the array).

>    In this case, you might instead want to stripe your news across the
>two RAID-5 arrays, or you might want to have two separate filesystems, or
>perhaps just concatenate them and not stripe (although striping would get
>you the biggest performance win).

I'm thinking about doing RAID 5 at the hardware level on each RAID
chassis (hardware RAID on the AMI card) and then striping the two disks
with software RAID under Linux.

The thing I'm worried about is that I've always heard RAID 5 is bad for
performance, especially for news, because for each write to the RAID,
two reads and then two writes are necessary.  The AMI cards I have have
32 MB of write-back cache on them, so they should be able to keep up,
but I'd be interested to hear from anyone that has actually _tried_ to
use RAID 5 with news (especially with Diablo).

>    We've had some issues with Diablo under Linux, but it's entirely
>possible that this was caused by a poor installation or by issues related
>to the fact that the machine was underpowered for what we were asking it
>to do, and not specifically related to actual conflicts between Diablo and
>Linux.

I've actually been running INN (1.7.2) on a Linux box for a couple of
years now.  If you are careful with your hardware (pick well supported
hardware and be careful with respect to ESD), I've found Linux runs
well for most everything I've tried.

>    Everything else aside, FreeBSD has an excellent network stack, while
>poor network performance is something that Linus acknowledges and
>theoretically plans to fix in kernel 2.4, whenever that might ship and
>become stable.

Umm, I don't think that Linus acknowledges "poor" network performance.
There are some specific things (most of the network stack has a single
lock in 2.2, so it doesn't scale well with multiple CPUs and multiple
NICs) that are being worked on for 2.4 (which is in feature freeze and
should be out by the end of the year).

For most things, I feel that Linux and FreeBSD are more or less equal.
FreeBSD is better at some things, Linux is better at some things, but
the difference is rarely very big.  They are both very high performing
systems.
-- 
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Information Services
I don't speak for anybody but myself - that's enough trouble.

Technical Details
Message-ID: <9wDD3.11362$N77.871011@typ11.nn.bcandid.com>
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: <7rhmg7$gmh$1@coco.singnet.com.sg> <37de5ead$0$91175@news.execpc.com> <gVtD3.10204$N77.783503@typ11.nn.bcandid.com> <brad-1509990239020001@dialup814.brussels2.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <9wDD3.11362$N77.871011@typ11.nn.bcandid.com>
Subject: Re: news spool area exported from NFS
Date: Wed, 15 Sep 1999 00:00:00 +0000
From: cmadams@fly.hiwaay.net (Chris Adams)
References: <7rhmg7$gmh$1@coco.singnet.com.sg> <37de5ead$0$91175@news.execpc.com> <gVtD3.10204$N77.783503@typ11.nn.bcandid.com> <brad-1509990239020001@dialup814.brussels2.skynet.be>
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: 525238428
X-Trace: typ11.nn.bcandid.com 937362565 208.147.154.56 (Tue, 14 Sep 1999 22:29:25 EDT)
Organization: HiWAAY Information Services
NNTP-Posting-Date: Tue, 14 Sep 1999 22:29:25 EDT
Newsgroups: news.software.nntp