From: Matt <matt@mfs.misys.co.uk>
Subject: Re: Tape block: size 256K faster than 512 bytes??
Date: 2000/03/01 [thread overview]
Message-ID: <38BD0EE1.AE3A9B2B@mfs.misys.co.uk> (raw)
In-Reply-To: 38BBDBD8.48A80FD4@sql.de
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
next prev parent reply other threads:[~2000-03-01 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
2000-02-29 5:00 ` 2600MHz
2000-03-01 5:00 ` Matt [this message]
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