From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,418c1c94298f34ae X-Google-Attributes: gidfee84,public From: Matt Subject: Re: Tape block: size 256K faster than 512 bytes?? Date: 2000/03/01 Message-ID: <38BD0EE1.AE3A9B2B@mfs.misys.co.uk>#1/1 X-Deja-AN: 591730323 X-NNTP-Posting-Host: ppp-1-140.cvx2.telinco.net Content-Transfer-Encoding: 7bit References: <38BA9D45.CE9F53A2@mfs.misys.co.uk> <74de98.b1e.ln@localhost> <38BB8A15.32CF05CE@mfs.misys.co.uk> <38BBDBD8.48A80FD4@sql.de> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@telinco.net X-Trace: news3.cableinet.net 951914136 212.1.128.155 (Wed, 01 Mar 2000 12:35:36 GMT) Organization: Misys Financial Systems MIME-Version: 1.0 NNTP-Posting-Date: Wed, 01 Mar 2000 12:35:36 GMT Newsgroups: comp.unix.osf.osf1 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