Thread View: news.software.nntp
3 messages
3 total messages
Started by Curt Welch
Thu, 13 Nov 1997 00:00
Re: Stripe versus no Stripe filesystems
Author: Curt Welch
Date: Thu, 13 Nov 1997 00:00
Date: Thu, 13 Nov 1997 00:00
26 lines
1733 bytes
1733 bytes
Mike Wilson <mwilson@flash.net> wrote: > He claims since the drives are connected in a serial you can't have more > than one command running to a drive at a time. I don't know much about scsi at that level, but I know from experience that this just isn't true. I think the way it works on scsi is that you issue read and write commands, but then free the bus for use by other drives. So while one drive is busy getting the data, you can still issue commands to the other drives. One controller and one scsi bus can keep a large number of drives busy at once. It's true that only one drive at a time can use the bus, but the command structure is complex enough to allow all the drives to be kept busy at the same time. To maximize performance, you need to balance your I/O across all the drives. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Stripe versus no Stripe filesystems
Author: Ragnar Lonn
Date: Thu, 13 Nov 1997 00:00
Date: Thu, 13 Nov 1997 00:00
49 lines
2625 bytes
2625 bytes
In article <64fmg3$pna$1@flea.best.net>, dillon@best.net (Matt Dillon) wrote:
>:In article <19971113142747.296$6Y@newsreader.com>,
>:Curt Welch <curt@kcwc.com> wrote:
>:>Mike Wilson <mwilson@flash.net> wrote:
>:>> He claims since the drives are connected in a serial you can't have more
>:>> than one command running to a drive at a time.
>:>
>:>I don't know much about scsi at that level, but I know from experience that
>:>this just isn't true.
>:>
>:>I think the way it works on scsi is that you issue read and write
>:>commands, but then free the bus for use by other drives. So while one
>:>drive is busy getting the data, you can still issue commands to the
>:>other drives. One controller and one scsi bus can keep a large number of
>:>drives busy at once.
>
> Not only can you have commands queued to several different physical
> drives simultaniously, you can have SEVERAL commands queued to EACH
> physical drive simultaniously.
>
Yeah, just look at the output of 'iostat -x 30' on Solaris:
extended disk statistics
disk r/s w/s Kr/s Kw/s wait actv svc_t %w %b
fd0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
sd0 0.0 0.9 0.0 6.7 0.0 0.1 119.5 0 1
sd1 0.3 3.1 2.5 19.9 0.0 0.1 36.7 0 4
sd30 11.5 18.2 105.0 277.6 0.0 0.3 12.1 0 11
And some info from the man page:
wait average number of transactions waiting for ser-
vice (queue length)
actv average number of transactions actively being
serviced (removed from the queue but not yet
completed)
On a busy disk you can see the 'wait' value go up to several
transactions simultaneously waiting to be serviced.
(btw, the sd30 disk in output above is an external RAID unit
running RAID-0, which is why it has pretty good service times
despite quite a lot of read and writes)
/Ragnar, Algonet/TNI
Re: Stripe versus no Stripe filesystems
Author: Matt Dillon
Date: Thu, 13 Nov 1997 00:00
Date: Thu, 13 Nov 1997 00:00
66 lines
3433 bytes
3433 bytes
:In article <19971113142747.296$6Y@newsreader.com>,
:Curt Welch <curt@kcwc.com> wrote:
:>Mike Wilson <mwilson@flash.net> wrote:
:>> He claims since the drives are connected in a serial you can't have more
:>> than one command running to a drive at a time.
:>
:>I don't know much about scsi at that level, but I know from experience that
:>this just isn't true.
:>
:>I think the way it works on scsi is that you issue read and write
:>commands, but then free the bus for use by other drives. So while one
:>drive is busy getting the data, you can still issue commands to the
:>other drives. One controller and one scsi bus can keep a large number of
:>drives busy at once.
Not only can you have commands queued to several different physical
drives simultaniously, you can have SEVERAL commands queued to EACH
physical drive simultaniously.
We use one UW SCSI controller on each of our machines. The only
limitation is the transaction rate. The controller is limited
to around 500 or 600 transactions/sec. A typical drive does not use
more then 100 transactions/sec (this isn't sectors, this is commands.
One transaction may transfer dozens of sectors).
Thus, one controller will support at least four or five drives. Disk
bandwidth is not an issue either... disks tends to be seek limited
and a UW SCSI bus is capable of 40 MBytes/sec... and can actually achieve
that number.
You've probably heard of 'disconnection' with SCSI. This is usually
the default. It means that the controller sends the device a SCSI
command, then 'disconnects', freeing the SCSI bus. When the device
completes the command and wants to return status, it signals the
controller and the controller then 'reconnects' to the device to
read the data and/or status.
While the device is busy chomping on a command, the controller is free
to issue another command to another device or even issue another command
to the same device. Controllers typically have chained DMA able to
support between 16 and 256 queued commands.
The top half dozen disk drive brands support tagged command queueing. I
personally believe that Seagate has the best SCSI firmware of all the
brands, though.
:>It's true that only one drive at a time can use the bus, but the command
:>structure is complex enough to allow all the drives to be kept busy
:>at the same time.
:>
:>To maximize performance, you need to balance your I/O across all the
:>drives.
:>
:>--
:>Curt Welch http://CurtWelch.Com/
:>curt@kcwc.com Webmaster for http://NewsReader.Com/
Exactly.
-Matt
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