🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Ken Mark Sat, 22 Jun 1996 00:00
Help with I/O on scsi drive
#8706
Author: Ken Mark
Date: Sat, 22 Jun 1996 00:00
21 lines
1564 bytes
[ Note: This question was sent to inn-questions@pilhuhn.de and is posted]
[       here, so that someone will see and answer it. Please email your ]
[       answer to the original author in addition to posting it.        ]

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).  

Does anyone experience this too and have a solution?

Thanks in advance for your help.

Ken

Re: Help with I/O on scsi drive
#8775
Author: 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.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads