🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #4002

Re: Assorting INN components across multiple disks

#4002
From: Phil Blanchfield
Date: Thu, 07 Dec 1995 00:00
89 lines
5127 bytes
In article <4a5h8q$v7@olympus.nwnet.net>, Anthony D'Atri <aad@nwnet.net> wrote:
>
>I'm in the process of setting up a BSDI machine to be used for newsreading
>via NNTP.  I've got a pair of 7200 rpm disks for the spool, and I'd like to
>solicit opinions on the layout of the other components -- the OS, NEWSLIB,
>the NOV tree, and swap.  I'd originally planned the following:
>
>sd0 (1G)        sd1 (1G)        sd2 (1G)        sd3 (4G)        sd4 (4G)
>
>/               /home(NEWSLIB)                 /usr/spool/news /usr/spool/news2
>128m swap                       128m swap
>/usr                            /overview
>/var

I have a similar setup here on a SPARC 10/41 (96MB ram) SUNOS 4.1.4 system
dedicated to news service (INN 1.4unoff2). I have 5 drives altogether:

Filesystem  DIsk-type (rpm)	Mounted on

/dev/sd0a   hawk (5400)         /
/dev/sd0h   hawk (5400)         /usr/share/local	(newslib)
/dev/sd1a   hawk (5400)         /usr
/dev/sd1h   hawk (5400)         /var			(NOV & logs)
/dev/sd2a   barracuda (7200)    /var/spool/news		(main spool)
/dev/sd3a   barracuda (7200)    /var/spool/news.1	(alt spool)
/dev/sd4a   hawk (5400)         /var/spool/news.2	(alt.binaries spool)
swap        swap                /tmp

Drives sd0 and sd1 are 1GB drives and each have 3 partitions (a,b,h).
Swap is interleaved on sd0b and sd1b for a total of 168MB. The other
drives are all 2GB single partition drives.

The system receives about 120,000-140,000 articles per day and sends
about the same number. During the day there are 30-40 nnrpd's running,
inn and innxmit are always shipping articles in & out.

With this setup the loading on the drives is reasonably balanced:

# iostat -D sd0 sd1 sd2 sd3 sd4
          sd0           sd1           sd2           sd3           sd4 
 rps wps util  rps wps util  rps wps util  rps wps util  rps wps util 
   1   2  4.9    6   5 16.9    5   8 15.9    4   5 13.6    1   1  4.9

It would be better though if I could get sd0 to take some of the load
from sd1. Previously I had NOV on sd0 with NEWSLIB but that appeared to
be worse but I don't remember the iostat numbers (maybe I'll try this again).

>Now I see that the 1G disks I have available are 5400 rpm Seagate hawks.
>I also have a pair of 2G Barracudas that I could conceivably toss in,
>but I've been wondering how I might assort things -- I don't think I
>need >1G for any of the above partionings, but if I put 2G disks in for,
>say, sd0 and sd2, I'd get faster swap and overview access, but also probably
>waste a good bit of space.  It's tempting to go with a four-disk configuration
>where I'd use a 2G disk for the OS, and put either NEWSLIB or the NOV data
>on there as well.  I might also see the idea of moving the second swap area
>to the NEWSLIB disk and making that a 2G, again with lots of wasted space.
>Or, I could put both NEWSLIB and the NOV data on one 7200rpm 2G disk with or
>without some swap space.

I think that as long as you have enough ram to prevent swap outs the speed
of the swap partitions (5400 vs 7200) doesn't matter that much. If you
think that you will be swapping a lot then it would be better to put a
swap partition on all drives and slide another SCSI controller in too if
you have it.

>Basically, I'm after some ideas on the tradeoffs for each component -- does
>the increased write/read speed of a 7200rpm disk make much difference for
>paging, NEWSLIB, or NOV data?  Would putting multiple of them onto a single
>spindle end up biting me because of seeks between the two partitions (assuming
>that they'd be seperate in the cases of the filesystems)?  I get the feeling
>that the NOV data is going to be more seek intensive than NEWSLIB since it
>would seem to involved far more open()/close() operations, where NEWSLIB
>accesses would be less frequent given blocking, operation sizes, and caching.

Yes, I think NOV beats harder on the disk than NEWSLIB. I had to choose
between putting NOV with NEWSLIB or NEWSLOG. I thought that NEWSLIB would
be busier than NEWSLOG because inn, innxmit, and the nnrpd's would
all be randomly reading/writing from/to NEWSLIB but syslog and inn would
only be appending to files in NEWSLOG. 

I Hope this helps.

Cheers.
-- 
Phil Blanchfield
The Communications Research Centre 3701 Carling Avenue, Ottawa Ontario CANADA
Internet: Phil.Blanchfield@CRC.DOC.CA Tel: (613) 998-2761 Fax: (613) 998-9648

Technical Details
Message-ID: <4a7a0h$7d@crc-news.doc.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
References: <4a5h8q$v7@olympus.nwnet.net>

Show Full Headers
Complete Article Headers
Message-ID: <4a7a0h$7d@crc-news.doc.ca>
Subject: Re: Assorting INN components across multiple disks
Date: Thu, 07 Dec 1995 00:00:00 +0000
From: phil@m31.dgbt.doc.ca (Phil Blanchfield)
References: <4a5h8q$v7@olympus.nwnet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
X-Deja-AN: 121185209
Distribution: inet
Organization: The Communications Research Centre
Newsgroups: news.admin.misc,news.software.b,news.software.nntp