From owner-freebsd-scsi Sat Dec 28 15:52:37 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA02864 for freebsd-scsi-outgoing; Sat, 28 Dec 1996 15:52:37 -0800 (PST) Received: from iafnl.es.iaf.nl (uucp@iafnl.es.iaf.nl [195.108.17.20]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id PAA02846 for ; Sat, 28 Dec 1996 15:52:32 -0800 (PST) Received: by iafnl.es.iaf.nl with UUCP id AA18535 (5.67b/IDA-1.5 for freebsd-scsi@FreeBSD.org); Sun, 29 Dec 1996 00:38:59 +0100 Received: (from wilko@localhost) by yedi.iaf.nl (8.7.5/8.6.12) id SAA10725; Sat, 28 Dec 1996 18:49:02 +0100 (MET) From: Wilko Bulte Message-Id: <199612281749.SAA10725@yedi.iaf.nl> Subject: Re: Q: ideal block size for exb 8505 To: joerg_wunsch@uriah.heep.sax.de Date: Sat, 28 Dec 1996 18:49:02 +0100 (MET) Cc: freebsd-scsi@FreeBSD.org, ping@red.stepnet.com In-Reply-To: <199612281549.QAA12728@uriah.heep.sax.de> from "J Wunsch" at Dec 28, 96 04:49:51 pm X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As J Wunsch wrote... > As Ping Mai wrote: > > > I am using dump to backup to a exb 8505xl. can anyone > > recommand an ideal block size to get max through > > put? i understand that one can also set the block size > > using mt. how's this diff from blocksize given to > > dump? i am confused. > > You can only set a fixed blocksize with mt(1). Most drives limit the > ability to accept a fixed blocksize to 512 bytes, some also allow for > 1024 bytes. Most (and all modern) drives don't work with a fixed > block size, but with a variable one (expressed as 0). This basically > means they write the amount you pass to the driver in a single > write(2) call into a single tape block. Reading these blocks requires > a read(2) of at least the same (or a larger) size, and will return > exactly the amount of bytes that have been written into that block > (i.e., will yield a `short read' when attempting to read more bytes > than have been there in the tape block -- that's how restore(8) > examines the tape block size). > > Something like 32 KB is a good value. Larger values reduce the > overhead, but the impact is probably getting neglicible above > something like 10 KB. Some programs default to 512 bytes only which Keep in mind that drives that use hardware compression really appreciate a big blocksize. For example DLTs really like 32kB, 10kB is too small (for compressible data) to keep 'm really working at max efficiency. But again: highly data and device dependent. Wilko _ ____________________________________________________________________ | / o / / _ Bulte email: wilko@yedi.iaf.nl - Arnhem, The Netherlands |/|/ / / /( (_) Do, or do not. There is no 'try' - Yoda --------------------------------------------------------------------------