Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: What exactly does "blocking" mean ? Message-ID: <1991Apr08.132621.11698@virtech.uucp> Date: 8 Apr 91 13:26:21 GMT References: <1991Apr8.015859.5656@brolga.cc.uq.oz.au> Organization: Virtual Technologies Inc. Lines: 23 exnirad@brolga.cc.uq.oz.au (Nirad Sharma) writes: >What exactly is the meaning of "blocking" with reference to dd, tar, cpio >etc ? Does it have something to do with checksumming ? What are the advantages >of larger blocks as opposed to smaller blocks ? Blocking deals with the size of buffer the programs will use for io. This is important for two reasons. 1. performance. Generally a bigger block size will have better performance. However, this varies from device to device and the only way to know is by experimentation. 2. hardware. Some hardware (especially 9-track tape drives) write data to the device with the same blocking factor that is used by the program. On these devices, the correct way to read the data is with a block size that is at least as big as that used to write the tape. The blocking in the commands you listed has nothing to do with checksumming since none of those utilities perform checksumming (or CRCing). -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc. uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170