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: Joerg Bruehe Subject: Re: Tape block: size 256K faster than 512 bytes?? Date: 2000/02/29 Message-ID: <38BBDBD8.48A80FD4@sql.de>#1/1 X-Deja-AN: 591389115 Content-Transfer-Encoding: 7bit References: <38BA9D45.CE9F53A2@mfs.misys.co.uk> <74de98.b1e.ln@localhost> <38BB8A15.32CF05CE@mfs.misys.co.uk> X-Accept-Language: de,en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@news.sql.de X-Trace: news.sql.de 951835508 25687 194.64.230.129 (29 Feb 2000 14:45:08 GMT) Organization: SQL Datenbanksysteme GmbH, Berlin, Germany Mime-Version: 1.0 NNTP-Posting-Date: 29 Feb 2000 14:45:08 GMT Newsgroups: comp.unix.osf.osf1 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