Article View: news.software.nntp
Article #36509Re: Hardware advice
From: Brad Knowles
Date: Tue, 13 Apr 1999 00:00
Date: Tue, 13 Apr 1999 00:00
203 lines
11352 bytes
11352 bytes
In article <m3vhf1q7y5.fsf@sgifford.tir.com>, Scott Gifford
<sgifford@tir.com> wrote:
> The feeder will take a full feed, from several providers and peers.
> The feed includes all of alt, including alt.binaries. The reader
> server will take these from the feeder in article number slaving mode.
Make sure that in doing this, your peers send their articles to a
"news-in" CNAME on your end that you can easily change to be the other
machine, should the main feeder machine die. Make sure that they
configure their machines to accept news from "news-out" on your end, so
again you can change the DNS and continue to feed news with them, without
having to have them make any configuration changes.
Of course, I'm sure you already knew this. ;-)
> Each will be a dual 300MHz UltraSPARC system, running Solaris 2.7.
> We're a Sun shop here, and I'm not even considering other
> architectures or OS's. Most of our current machines are running 2.6
> now, but I've read here and other places that 2.7 is much faster for
> disk-intensive things.
Solaris 2.7 does have a number of improvements, in particular the
Mentat TCP/IP library routines which should significantly improve your
network latency, throughput, and robustness. However, it is still new
enough that I do not consider it ready for prime-time.
In particular, there have been enough changes that packages like
Sybase and Oracle have not yet been ported to Solaris 2.7, and if packages
like this aren't running there and provably stable, then IMO the OS isn't
ready for production use. I have found that the process of porting and
supporting products like this in a production environment typically turns
up enough bugs in the OS that have to be fixed that it is worthwhile to
wait until after they've been ported and found to be reasonably stable
before I make the leap myself.
> For I/O, each will have the standard Fast-Wide SCSI card that comes
> with the system to control its boot drive (which will have the
> software, configuration, logs, and swap on it). Additionally, each
> will have two Ultra2-Wide (or Ultra-Wide, I don't really know what
> Ultra2 is) cards. Both cards will be connected to 5 9GB Seagate
> Cheetah drives. These drives have been benchmarked doing 14Mb/sec, so
> 5 of them will almost, but not quite, saturate the 80Mb/sec SCSI bus.
> Average seek times are 5.2ms.
If you're going to be using traditional spool, you want to stripe as
many fast disks together as you can (assuming that they're connected to
fast controllers, etc...), because you're going to need it. And you want
to set your stripe size to be as large as possible (at least 128-512KB) so
that you can get multiple parallel disk I/Os going on separate file
operations and improve your file I/O concurrency (most files will be just
a few KB in size anyway, and will fit entirely within a single stripe even
with the smallest of stripe sizes).
> I'll parition each drive into 4x2GB partitions, and 1x1GB partition.
> I'll use the 2GB partitions as raw disk partitions for CNFS buffers,
> and stripe the 1GB partitions together to form a filesystem which will
> hold /news/db (history, active, overview, uniover, etc) with Sun's
> Solstice DiskSuite.
However, you don't want to put more than one striped partition on a
disk, otherwise all you wind up doing is slamming the disk heads around
for no good reason.
You're better off with fewer larger partitions (one per disk) for the
data, and separate striped partitions (on separate disks) for the history,
active, uniover, etc.... In fact, I think the claim could validly be made
that history, active, uniover, etc... should each get their own striped
disks.
It's been my experience that when you want to do striping, mirroring,
or RAID for high-performance applications like a sendmail mqueue, user
mailboxes, a Usenet news spool, etc... you want to do that in *hardware*,
not in software.
If you went with hardware RAID-5 or mirroring+striping, I'd recommend
the Symbios equipment over buying A1000 boxes from Sun -- Sun OEMs them
from Symbios, and doesn't OEM the largest, fastest, or best equipment that
Symbios sells, and what they do OEM, they sell at a higher price than
Symbios charges.
Besides, when it comes to software RAID-5, mirroring, striping,
etc..., DiskSuite is pretty well known as a rather sub-par performer.
There are software RAID-5/mirroring/striping implementations for other
OSes (and presumably within Veritas VxFS) that can get much closer to the
theoretical performance limits than DiskSuite will ever see. I suspect
that this is at least partly intentional, otherwise Sun would have a hard
time convincing many sites to buy their expensive external
RAID/mirroring/striping solutions that they make a *boatload* of profit
on.
Finally, in this kind of environment you *really* want to be able to
run a "soft updates" filesystem (or at least Veritas VxFS or other
journalling filesystem), because the speed improvements can be quite
dramatic (I believe that Kirk McKusick and Eric Allman have said about a
factor of five to ten performance improvement for "soft updates" as a news
spool or sendmail mqueue, although performance improvements with JFS will
be much smaller).
Unfortunately, "soft updates" is not available for Sun, and isn't
likely to be available any time soon. Today, if you want that, you have
to be on FreeBSD or one of the other *BSD OSes (including BSD/OS).
If you're using CNFS, then it is not quite so important to have as
many fast disks as you can get connected to fast controllers, because the
way articles are written to spool is much more efficient. With CNFS,
"soft updates" becomes much less important.
However, the current INN 2.2 code with CNFS has so many various
problems that there are some pretty big changes going on under the hood
for 2.3, and I would personally be inclined to avoid CNFS altogether.
If you can't avoid CNFS, then I would be inclined to use multiple <
2GB CNFS buffer files in a filesystem that takes up the entire 9GB for
each disk, and not actually do any striping at all for the data.
> (I'm a bit nervous about this; we've always used RAID5 for our news
> disks before, so we could easily tolerate the occasional death of a
> drive. We'll lose this redundancy, but I think that we'll gain enough
> performance to make up for it. If anything fails in one machine, the
> other will just have to assume its functions until it is repaired.
> Has anyone moved from a RAID5 setup to striped or raw CNFS buffers?
> Was it significantly faster? And will it be signicantly faster with
> my buffers on the raw partitions, instead of in large files?)
If you're using CNFS, then you should easily get away with RAID-5 for
the data. This would give you the reliability you're looking for.
> Overall, this gives us 80GB of storage for articles, plus enough for
> the corresponding history/overview information. This is about 4x
> larger than what we have now, which is expiring things much too
> quickly. Is this enough? Much more than is necessary?
Depends on whether or not you're taking full binaries. A full Usenet
feed these days is running 30-35GB/day, with peaks to 40GB/day (see
<http://newsfeed-east.supernews.com/feed-size/>). At those rates, you'd
have only two days expiration for alt.binaries.* and virtually no separate
space left over for !alt.binaries.*.
If you had just a single 9GB disk for !alt.binaries.*, that should
last you around 9 days (!alt.binaries.* is running around 1GB/day), and
then you could devote the rest to alt.binaries.* (perhaps minus the really
monstrous traffic newsgroups like alt*mp3*, alt*cd.image*,
alt*multimedia*, etc...).
For some statistical breakdowns for two specific days in relatively
recent history, hit DejaNews and look up the articles with Message-IDs
<76thds$5ve$1@wave.cam.uk.internal> and
<76tlmj$8a6$1@wave.cam.uk.internal>.
> Finally, each server will have a 100Mb/s, full-duplex connection to a
> switch (which goes to the Internet or to our readers), as well as a
> dedicated 100Mb/s, full-duplex connection to each other. This should
> let them do a better job of keeping tabs on each other, as well as
> speed up transfers between them, and keep our switch from getting
> floored.
The stats at <http://newsfeed-east.supernews.com/feed-size/>
demonstrate that even a full feed (around 35GB/day for the last seven
days) is only about 3.25Mbps throughput, which could theoretically be
sustained even on a shared 10Base-T network (which would just about reach
it's maximum useful throughput at those rates, before it starts getting
too many collisions and retransmits), and would only slightly exceed the
total capacity of a pair of T-1s that had been tied together.
Any switch that can't keep up with rates like that isn't worth using
as a toilet seat, much less as a vital piece of equipment that you would
put on your network.
I'd be inclined to put both of the 100Base-TX networks through the
switch (on separate subnets, of course), and use one to communicate with
the outside world, and the other to communicate with your users. If you
want a private network between the two servers, that could either be a
third 100Base-TX network, or even a simple 10Base-T network.
> Thanks for any suggestions. If you'd like, respond by email and I'll
> summarize back, although I rather enjoy the debate that these sorts of
> questions tend to stir up. :)
Myself, I think these machines are over-powered and will cost a *hell*
of a lot more than I could put together with FreeBSD and Diablo, with the
largest part of the budget being reserved for buying the fastest possible
disk drives and expensive hardware RAID/mirroring/striping disk
controllers, the price of which just can't be reduced beyond a certain
point no matter where you buy them or who you buy them from.
However, if you're a Sun-only shop, your choices are relatively
limited, and you do want to have some spare CPU left over for doing things
like running c-nocem, cleanfeed, etc....
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
Are you looking for a news feed from a site in the Freenix Top 130?
If so, contact me via private e-mail for details.
Technical Details
Message-ID:
<brad-1304991149350001@brad.techos.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-mailReferences:
<m3vhf1q7y5.fsf@sgifford.tir.com>Show Full Headers
Complete Article Headers
Message-ID: <brad-1304991149350001@brad.techos.skynet.be> Subject: Re: Hardware advice Date: Tue, 13 Apr 1999 00:00:00 +0000 From: brad@shub-internet.org (Brad Knowles) References: <m3vhf1q7y5.fsf@sgifford.tir.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 X-Deja-AN: 465825092 X-Complaints-To: abuse@skynet.be X-Trace: news1.skynet.be 923997006 31506 195.238.1.121 (13 Apr 1999 09:50:06 GMT) Organization: Shub-Internet X-URL: http://www.shub-internet.org/ NNTP-Posting-Date: 13 Apr 1999 09:50:06 GMT Newsgroups: news.software.nntp