Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Joerg Bruehe <joerg@sql.de>
Subject: Re: Tape block: size 256K faster than 512 bytes??
Date: 2000/02/29	[thread overview]
Message-ID: <38BBDBD8.48A80FD4@sql.de> (raw)
In-Reply-To: 38BB8A15.32CF05CE@mfs.misys.co.uk

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



  reply	other threads:[~2000-02-29  5:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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.
read-only archive

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