Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: Tape block: size 256K faster than 512 bytes??
  2000-02-28  5:00 Tape block: size 256K faster than 512 bytes?? Matt
@ 2000-02-28  5:00 ` Stuart R. Fuller
  2000-02-29  5:00   ` Matt
  2000-03-01  5:00   ` Matt
  2000-03-01  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1 sibling, 2 replies; 8+ messages in thread
From: Stuart R. Fuller @ 2000-02-28  5:00 UTC (permalink / raw)


Matt (matt@mfs.misys.co.uk) wrote:
: riddle me this...
: 
: Why is
: 	cpio -ovC256000 -O/dev/rmt0h
: 	cpio -icvdumC256000 -I/dev/rmt0h
: a damn sight faster than
: 	cpio -ovC512 -O/dev/rmt0h
: 	cpio -icvdumC512 -I/dev/rmt0h
: 
: I grasp that shifting larger blocks is going to be quicker, but the
: performance difference is staggering.  On SCO or Linux altering the
: block size does not make this kind of difference.

What type of tape drive.  Is the same tape drive in use on the SCO or Linux
box?  

Some tape drives thrive on large block sizes.  I've seen some "streaming" tape
drives that "shoe-shine" all day doing a backup with 512 byte blocks, but
fully stream with larger blocks.

        Stu



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Tape block: size 256K faster than 512 bytes??
@ 2000-02-28  5:00 Matt
  2000-02-28  5:00 ` Stuart R. Fuller
  2000-03-01  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 2 replies; 8+ messages in thread
From: Matt @ 2000-02-28  5:00 UTC (permalink / raw)


riddle me this...

Why is
	cpio -ovC256000 -O/dev/rmt0h
	cpio -icvdumC256000 -I/dev/rmt0h
a damn sight faster than
	cpio -ovC512 -O/dev/rmt0h
	cpio -icvdumC512 -I/dev/rmt0h

I grasp that shifting larger blocks is going to be quicker, but the
performance difference is staggering.  On SCO or Linux altering the
block size does not make this kind of difference.

Matt. (missing the point)
-----



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tape block: size 256K faster than 512 bytes??
  2000-02-28  5:00 ` Stuart R. Fuller
@ 2000-02-29  5:00   ` Matt
  2000-02-29  5:00     ` Joerg Bruehe
  2000-03-01  5:00   ` Matt
  1 sibling, 1 reply; 8+ messages in thread
From: Matt @ 2000-02-29  5:00 UTC (permalink / raw)


"Stuart R. Fuller" wrote:
> 
> Matt (matt@mfs.misys.co.uk) wrote:
> : riddle me this...
> :
> : Why is
> :       cpio -ovC256000 -O/dev/rmt0h
> :       cpio -icvdumC256000 -I/dev/rmt0h
> : a damn sight faster than
> :       cpio -ovC512 -O/dev/rmt0h
> :       cpio -icvdumC512 -I/dev/rmt0h
> :
> : I grasp that shifting larger blocks is going to be quicker, but the
> : performance difference is staggering.  On SCO or Linux altering the
> : block size does not make this kind of difference.
> 
> What type of tape drive.  Is the same tape drive in use on the SCO or Linux
> box?

Only DDS-3.  The DU4.0d chugs at 512bytes whereas I haven't perceived
any noticeable difference in speeds with change of block size on SCO or
Linux - though I am checking this more thoroughly now.

> 
> Some tape drives thrive on large block sizes.  I've seen some "streaming" tape
> drives that "shoe-shine" all day doing a backup with 512 byte blocks, but
> fully stream with larger blocks.
> 
>         Stu



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tape block: size 256K faster than 512 bytes??
  2000-02-29  5:00   ` Matt
@ 2000-02-29  5:00     ` Joerg Bruehe
  2000-02-29  5:00       ` 2600MHz
  2000-03-01  5:00       ` Matt
  0 siblings, 2 replies; 8+ messages in thread
From: Joerg Bruehe @ 2000-02-29  5:00 UTC (permalink / raw)


Hi ! 

Matt schrieb:
> 
> "Stuart R. Fuller" wrote:
> >
> > Matt (matt@mfs.misys.co.uk) wrote:
> > : riddle me this...
> > :
> > : Why is
> > :       cpio -ovC256000 -O/dev/rmt0h
> > :       cpio -icvdumC256000 -I/dev/rmt0h
> > : a damn sight faster than
> > :       cpio -ovC512 -O/dev/rmt0h
> > :       cpio -icvdumC512 -I/dev/rmt0h
> > :
> > : I grasp that shifting larger blocks is going to be quicker, but the
> > : performance difference is staggering.  On SCO or Linux altering the
> > : block size does not make this kind of difference.
> >
> > What type of tape drive.  Is the same tape drive in use on the SCO or Linux
> > box?
> 
> Only DDS-3.  The DU4.0d chugs at 512bytes whereas I haven't perceived
> any noticeable difference in speeds with change of block size on SCO or
> Linux - though I am checking this more thoroughly now.

I have never taken measurements, but I expect the performance to 
increase with growing block size on all kinds of tape devices 
and all Unix variants 
until you reach some block size which is "optimum" (or close to). 
Until now, all drives I used showed such a behaviour. 

One reason might be the overhead per block - just remember it is 
a system call to read from the tape with all its cost in CPU, 
context switch, telling the controller, ... 
With small blocks, you will not get the tape drive to "stream", 
and start-stop is a severe performance loss. 

However, 256,000 byte is very large, and I would not go to such 
extremes for fear of meeting a device or OS which will not 
handle it. Compaq/Digital claim Tru64 to safely handle 64 kB 
= 65,536 byte (maybe more), but the 'tapex' test program has a 
limit at 64,xxx byte (= slightly below 64 kB). Hence I have set my 
'dump' block size to 48 kB (large enough for streaming, but small 
enough to allow checking by 'tapex -m -w'). 

Regards, Joerg Bruehe 


-- 
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
     (speaking only for himself)
mailto: joerg@sql.de



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tape block: size 256K faster than 512 bytes??
  2000-02-29  5:00     ` Joerg Bruehe
@ 2000-02-29  5:00       ` 2600MHz
  2000-03-01  5:00       ` Matt
  1 sibling, 0 replies; 8+ messages in thread
From: 2600MHz @ 2000-02-29  5:00 UTC (permalink / raw)



Joerg Bruehe <joerg@sql.de> wrote in message
news:38BBDBD8.48A80FD4@sql.de...
<snip>
> However, 256,000 byte is very large, and I would not go to such
> extremes for fear of meeting a device or OS which will not
> handle it. Compaq/Digital claim Tru64 to safely handle 64 kB
> = 65,536 byte (maybe more), but the 'tapex' test program has a
> limit at 64,xxx byte (= slightly below 64 kB). Hence I have set my
> 'dump' block size to 48 kB (large enough for streaming, but small
> enough to allow checking by 'tapex -m -w').

Strange, I use 1024KB blocks on my Sony GY-2120 drives.  "scu" has no
problems with that blocksize either. I admit that I'm using an esoteric
drive, but it's one of the few that I can get to stream constantly at
12MB/sec, and I have to use very large blocks to do so.

Dave Schmitt






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tape block: size 256K faster than 512 bytes??
  2000-02-29  5:00     ` Joerg Bruehe
  2000-02-29  5:00       ` 2600MHz
@ 2000-03-01  5:00       ` Matt
  1 sibling, 0 replies; 8+ messages in thread
From: Matt @ 2000-03-01  5:00 UTC (permalink / raw)


I inherited this system and also thought 25600 was quite large, and did
some benchmark tests archiving /usr/bin at various block sizes.

Using "time find /usr/bin -print | cpio -ovCxxxx -O/dev/rmt0h",I got the
following:

Blocks 		sys time	time
---------------------------------------
5120 		4.9		160
10240		3.3		120
51200		2.3		105
102400		2.3		110

I am now using 51200 as my block size.


Joerg Bruehe wrote:
> 
> Hi !
> 
> Matt schrieb:
> >
> > "Stuart R. Fuller" wrote:
> > >
> > > Matt (matt@mfs.misys.co.uk) wrote:
> > > : riddle me this...
> > > :
> > > : Why is
> > > :       cpio -ovC256000 -O/dev/rmt0h
> > > :       cpio -icvdumC256000 -I/dev/rmt0h
> > > : a damn sight faster than
> > > :       cpio -ovC512 -O/dev/rmt0h
> > > :       cpio -icvdumC512 -I/dev/rmt0h
> > > :
> > > : I grasp that shifting larger blocks is going to be quicker, but the
> > > : performance difference is staggering.  On SCO or Linux altering the
> > > : block size does not make this kind of difference.
> > >
> > > What type of tape drive.  Is the same tape drive in use on the SCO or Linux
> > > box?
> >
> > Only DDS-3.  The DU4.0d chugs at 512bytes whereas I haven't perceived
> > any noticeable difference in speeds with change of block size on SCO or
> > Linux - though I am checking this more thoroughly now.
> 
> I have never taken measurements, but I expect the performance to
> increase with growing block size on all kinds of tape devices
> and all Unix variants
> until you reach some block size which is "optimum" (or close to).
> Until now, all drives I used showed such a behaviour.
> 
> One reason might be the overhead per block - just remember it is
> a system call to read from the tape with all its cost in CPU,
> context switch, telling the controller, ...
> With small blocks, you will not get the tape drive to "stream",
> and start-stop is a severe performance loss.
> 
> However, 256,000 byte is very large, and I would not go to such
> extremes for fear of meeting a device or OS which will not
> handle it. Compaq/Digital claim Tru64 to safely handle 64 kB
> = 65,536 byte (maybe more), but the 'tapex' test program has a
> limit at 64,xxx byte (= slightly below 64 kB). Hence I have set my
> 'dump' block size to 48 kB (large enough for streaming, but small
> enough to allow checking by 'tapex -m -w').
> 
> Regards, Joerg Bruehe
> 
> --
> Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
>      (speaking only for himself)
> mailto: joerg@sql.de



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tape block: size 256K faster than 512 bytes??
  2000-02-28  5:00 ` Stuart R. Fuller
  2000-02-29  5:00   ` Matt
@ 2000-03-01  5:00   ` Matt
  1 sibling, 0 replies; 8+ messages in thread
From: Matt @ 2000-03-01  5:00 UTC (permalink / raw)



I just did some checks on my linux box with a DDS-2 drive:

	/usr/bin/mt setblk xxxx
	find /usr/bin -print |
	cpio -ovcC xxxx |
	dd of=/dev/st0 conv=block bs=xxxx 

Time: 3 minutes 51 seconds real time
      0 minutes 37 seconds sys time

This was constant for a variety of block sizes applied to the dd, cpio
and the mt command (I know the "mt setblk xxxx" is not pertinent to the
dd command)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tape block: size 256K faster than 512 bytes??
  2000-02-28  5:00 Tape block: size 256K faster than 512 bytes?? Matt
  2000-02-28  5:00 ` Stuart R. Fuller
@ 2000-03-01  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1 sibling, 0 replies; 8+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2000-03-01  5:00 UTC (permalink / raw)



In article <38BA9D45.CE9F53A2@mfs.misys.co.uk>, Matt <matt@mfs.misys.co.uk> writes:

>I grasp that shifting larger blocks is going to be quicker, but the
>performance difference is staggering.  On SCO or Linux altering the
>block size does not make this kind of difference.

All versions of DEC OSF/1, Digital UNIX and Tru64 UNIX, should
support using transfer sizes as large SCSI-2 allows.  I'm fairly
certain that modern versions do.  Based on a little testing I've
done with large transfer sizes, the one that is "too large" is
the one that causes the system to start paging and swapping.

Some HS family array controllers support a limited transfer
size (64 KB) at the controller.  If you think you may have
to restore data on a tape drive connected to such a data,
use a 64 KB transfer size.  Some tapes do prefer fairly large
block sizes, so their utility on such subsystems is limited.
I think this limitation was lifted on the HSZ70 and later
controllers, but I haven't checked closely.

One affect this limitation has, is that recent versions of
tar use an initial large transfer size to "guess" the block
size at which the tape was written.  I think it uses 1 MB.
On tapes connected to these HS subsystems, this causes an
I/O error because the controller rejects the command.  The
solution is to use the explicit block size if it is one the
controller supports.

>
>Matt. (missing the point)
>-----
>

--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-03-01  5:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-28  5:00 Tape block: size 256K faster than 512 bytes?? Matt
2000-02-28  5:00 ` Stuart R. Fuller
2000-02-29  5:00   ` Matt
2000-02-29  5:00     ` Joerg Bruehe
2000-02-29  5:00       ` 2600MHz
2000-03-01  5:00       ` Matt
2000-03-01  5:00   ` Matt
2000-03-01  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox