mbuffer(1) console utility mbuffer(1) NAME mbuffer - measuring buffer SYNTAX mbuffer [options] DESCRIPTION mbuffer buffers I/O operations and displays the throughput rate. It is multi-threaded, supports network connections, multiple output targets, and many more options than the standard buffer command. OPTIONS -b Use num blocks for buffer (default is determined on startup). -s Use blocks of size bytes for buffer (default is determined on startup). -m Use a total of size bytes for buffer (default 2% of available memory) - size can be set with a trailing character (b and B for Byte, k for kByte, M for MByte, G for Gigabyte, and with % for a percentage of total physical memory). -L Lock buffer in memory - this option is not available for file- based buffers and requires mbuffer to be set-UID root (use with care). -d Use block-size of device for output (needed for some devices, slows output down). -D Assume an output volume of size bytes (default infinite) after which a volume change will be initiated. Small values are useful for the timely testing of multi-volume runs; accurate values if your device doesn't properly signal end of media. Size can be set with a trailing character (b and B for Byte, k for kByte, M for MByte, or G for Gigabyte). -P Start writing after the buffer has been filled to num% (default 0 - start at once). -p Start reading after the buffer has dropped below fill-ratio of num% (default 100 - start at once). -i Use filename as input instead of the standard input (needs to be given for multi volume support). If filename is -, input is read from standard input. -o Use filename as output instead of the standard output (needs to be given for multi volume support, will enable use of sendfile if available). If filename is -, output is written to standard output. The option -o can be passed multiple times to specify multiple outputs. --append Open next output file given via option -o in append mode. --truncate Truncate next output file given via option -o when opening it. -I Use network port port as input instead of the standard input. If given a hostname and a port in the form hostname:port, only the given host is allowed to connect. -O Write output to hostname:port instead of the standard output (will enable use of sendfile if available). This option can be used multiple times to send data to multiple machines. -n num volumes in input device (requires use of option -i for input device specification, pass 0 as argument if mbuffer should prompt for every new volume). -t Use a memory-mapped temporary file as buffer (use with huge buffers). -T As -t but use file as buffer. -l Log messages to file instead of standard error output. -u Pause num microseconds after each write - might increase performance on some drives with very low performance (< 1 MB/sec). -r Set the maximum read rate to rate. rate can be given in either Bytes, kBytes, MBytes, or GBytes per second. To do so, use an appropriate suffix (i.e. k,M,G). This option is useful if you have a tape that is capable of transferring data faster than the host can handle it. In this case you can use this option to limit the transfer rate and keep the tape running. Be aware that this is both good for your tape drive, and enhances overall performance, by avoiding tape screwing. -R Same as above only for setting the transfer limit for the writer. -f Overwrite output file if it exists already. -a