|
NAMEbuffer - very fast reblocking programSYNTAXbuffer [-S size] [-b blocks] [-s size] [-m size] [-p percentage] [-u microseconds] [-B] [-t] [-Z] [-i filename] [-o filename]OPTIONS
Sizes are a number with an optional trailing character. A 'b' multiplies the size by 512, a 'k' by 1024 and an 'm' by a meg. DESCRIPTIONBuffer reads from standard input reblocking to the given blocksize and writes each block to standard output.Internally buffer is a pair of processes communicating via a large circular queue held in shared memory. The reader process only has to block when the queue is full and the writer process when the queue is empty. Buffer is designed to try and keep the writer side continuously busy so that it can stream when writing to tape drives. When used to write tapes with an intervening network buffer can result in a considerable increase in throughput. The default settings for buffer are normally good enough. If you are a heavy tape user then it is worth your while trying out various different combinations of options. In particular running a buffer at both ends of the pipe can provide a substantial increase (see last example below). EXAMPLES$ buffer < /etc/termcap > /dev/rst8$ tar cf - . | rsh somehost 'buffer > /dev/rst8' $ dump fu - | rsh somehost 'buffer -s 16k > /dev/nrst8'
BUGSInternally, for printing purposes, buffer counts in terms of the number of kilobytes output. If the blocksize you use is not a whole number of kilobytes then the numbers printed will be inaccurate.THANKSThanks to Kevin Twidle <kpt@doc.ic.ac.uk> for a lot of early suggestions and patches to make it work with non-tar/dump tapes to exabyte drives.Thanks to Andi Karrer <karrer@bernina.ethz.ch>, Rumi Zahir <rumi@iis.ethz.ch> and Christoph Wicki <wicki@iis.ethz.ch> for patches to make buffer work when trying to write single tape files of greater than 2 gigabytes. COPYRIGHTCopyright (C) 1990, 1991 by Lee McLoughlin.SEE ALSOdd(1), tar(1), rsh(1)
Visit the GSP FreeBSD Man Page Interface. |