🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8775

Re: Help with I/O on scsi drive

#8775
From: Jerry Aguirre
Date: Tue, 25 Jun 1996 00:00
44 lines
2740 bytes
In article <31CC16E7.60A2@p3.net> ken@p3.net writes:
>I've got a BSD 2.1 system running inn and got a scsi 2 drive and 
>adaptor plugged into the machine.  I also have an internal drive that 
>handles part of the newsfeed.  I've mounted the external scsi-2 to 
>/var/news/spool/alt/binaries to handle just the alt.binaries groups.  
>The problem I'm having is the internal drive runs like there is no 
>tommorrow while the external scsi-2 (with the alt.binaries) only 
>writes a few articles ata a time (like every twenty second 5k is 
>written).  

Although the alt.binaries groups use a significant portion of
the disk space they do not use a proportional amount of I/O.
Very simply Unix is much more efficient writing or reading a few
large files than it is reading or writing lots of little files.

There are binary postings out there that are near 1 megabyte in
size.  But the average non-binary posting is only 3 Kbytes or less.
So for equal disk usage it takes over 300 normal articles to consume
the same disk space as the binary.  It takes a lot longer to create,
access, and expire 300 small articles than it does for 1 big article.

A great deal of the optimization of the file system has to do
with block layout.  This way once a file is accessed it is relatively
low overhead to get the additional data.

Back when I had hierarchies mounted on different drives I noticed
a consistant difference in IO rates even when the space usage was
pretty close.  It is one of the disadvantages of using that scheme.
Keeping the space usage balanced in another.

Going with some kind of meta file system that lets you stripe
or concatenate the disks into a single logical file system is the
current answer.  This solves the poblems of cross posts and disk usage.
If you stripe (1 to 16 cylinders/stripe) then the I/O load is also
ballanced.

You could copy symbolically link groups between the two disk to
ballance the load.  A few of the busy groups could shift load to the
binary disk (start with the control groups).  But you will still have
problems keeping the space usage even.  It shifts by hundreds of
megabytes on a daily basis.

Technical Details
Message-ID: <4qppqd$n3a@olivea.ATC.Olivetti.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: <31CC16E7.60A2@p3.net>

Show Full Headers
Complete Article Headers
Message-ID: <4qppqd$n3a@olivea.ATC.Olivetti.Com>
Subject: Re: Help with I/O on scsi drive
Date: Tue, 25 Jun 1996 00:00:00 +0000
From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre)
References: <31CC16E7.60A2@p3.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: 162150940
Organization: Olivetti ATC; Cupertino, CA; USA
Newsgroups: news.software.nntp