Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pipemeter(1) [debian man page]

PIPEMETER(1)						      General Commands Manual						      PIPEMETER(1)

NAME
pipemeter - measure speed of data going through a pipe/redirection SYNOPSIS
pipemeter [ -alV ] [ -s size ] [ -b block_size ] [ -m max_block_size ] [ -i interval ] [ -f infile -f infile2 ] infile infile2 ... DESCRIPTION
pipemeter simply takes input on stdin, and redirects it to its stdout. While doing this, it measures how fast the data is moving through it. Alternatively, with the -s parameter, shows a progress bar as data is piped through it. All output generated by pipemeter is written to stderr. While running in progress mode, pipemeter will display the ETA (Estimated Time of Arrival). When exiting, it will change this field to show the elapsed time for the program. In rate-only mode, it will just show elapsed time. Note that as of pipemeter 0.8, Adaptive Block Sizing is used to speed up the movement of data through it. It will increase, or sometimes decrease, the block size in an attempt to find the one that works best for the combination of input and output. This also helps it deal better with, for instance, a temporarily busy disk. You can use -a to turn it off. -s, --size size Sets the size of the input, and turns on the progress bar. -b, --blocksize block_size Sets the size of blocks, in bytes, to move through the program at once. Default is 8192. A suffix of K means Kilobytes(x*1024) means Megabytes(x*1024*1024), and G means Gigabytes(x*1024*1024*1024). -m, --maxblock max_block_size Sets the maxium block size for adaptive block sizing. Default is 8M. -i, --interval interval Specify the number of seconds between updates on the speed and/or progress bar. -f, --file infile infile specifies a file to be read instead of stdin. It will also automatically turn on the progress bar if a size can be deter- mined. Multiple occurances of -f will read the files in the order they are specified on the cmdline, and sizes will be added to eachother. Note that this option remains for backward compatibility, it is far simpler to just specify the input files without options. -F, --list listfile specifies a file to read in the list of input files from. Each line is a path to a file, terminated by a newline. -r, --report report only mode. This causes the program to suppress outputting/calculating while running. It will print out only one line. -a, --autooff turn off adaptive block sizing. Sometimes ABS can use insane amounts of RAM, such as when reading and writing to RAM disks. -V, --version Prints a version number and exits. -l, --log Turns on logging mode. Uses only newlines, no returns. AUTHOR
Written by Clint Byrum <cbyrum@spamaps.org> COPYRIGHT
Copyright (C) 2006 Clint Byrum This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PAR- TICULAR PURPOSE. PIPEMETER(1)

Check Out this Related Man Page

MOUNT_MFS(8)						    BSD System Manager's Manual 					      MOUNT_MFS(8)

NAME
mount_mfs -- mount a memory based file system SYNOPSIS
mount_mfs [-N] [-a maxcontig] [-b block-size] [-d rotdelay] [-e maxbpg] [-f frag-size] [-g groupname] [-i bytes-per-inode] [-m free-space] [-n inodes] [-o options] [-p permissions] [-s size] [-u username] [-V verbose] special node DESCRIPTION
mount_mfs is used to build a file system in virtual memory and then mount it on a specified node. mount_mfs exits and the contents of the file system are lost when the file system is unmounted. If mount_mfs is sent a signal while running, for example during system shutdown, it will attempt to unmount its corresponding file system. special is ignored. Options with numeric arguments may contain an optional (case-insensitive) suffix: b Bytes; causes no modification. (Default) k Kilo; multiply the argument by 1024 m Mega; multiply the argument by 1048576 g Giga; multiply the argument by 1073741824 The following options define the general layout policies: -N Causes the memory file system parameters to be printed out without really mounting the memory file system. -a maxcontig This specifies the maximum number of contiguous blocks that will be laid out before forcing a rotational delay (see the -d option). The default value is 8. See tunefs(8) for more details on how to set this option. -b block-size The block size of the file system, in bytes. It must be a power of two. The smallest allowable size is 4096 bytes. The default size depends upon the size of the file system: file system size block-size < 20 MB 4 KB < 1024 MB 8 KB >= 1024 MB 16 KB -d rotdelay This specifies the expected time (in milliseconds) to service a transfer completion interrupt and initiate a new transfer on the same disk. The default is 0 milliseconds. See tunefs(8) for more details on how to set this option. -e maxbpg This indicates the maximum number of blocks any single file can allocate out of a cylinder group before it is forced to begin allocating blocks from another cylinder group. The default is about one quarter of the total blocks in a cylinder group. See tunefs(8) for more details on how to set this option. -f frag-size The fragment size of the file system in bytes. It must be a power of two ranging in value between block-size/8 and block-size. The optimal block-size:frag-size ratio is 8:1. Other ratios are possible, but are not recommended, and may produce unpredictable results. The default size depends upon the size of the file system: file system size frag-size < 20 MB 0.5 KB < 1024 MB 1 KB >= 1024 MB 2 KB -g groupname This specifies the group name or group id of the root inode of the file system. -i bytes-per-inode This specifies the density of inodes in the file system. If fewer inodes are desired, a larger number should be used; to create more inodes a smaller number should be given. The default is to create an inode for every (4 * frag-size) bytes of data space: file system size bytes-per-inode < 20 MB 2 KB < 1024 MB 4 KB >= 1024 MB 8 KB -m free-space The percentage of space reserved from normal users; the minimum free space threshold. The default value used is 5%. See tunefs(8) for more details on how to set this option. -n inodes This specifies the number of inodes for the filesystem. If both -i and -n are specified then -n takes precedence. -o Options are specified with a -o flag followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. -p permissions This specifies the permissions of the root inode of the file system. -s size The size of the file system in sectors. An 's' suffix will be interpreted as the number of sectors (the default). All other suffixes are interpreted as per other numeric arguments, except that the number is converted into sectors by dividing by the default sector size (which is 512 bytes) after suffix interpretation. -u username This specifies the user name or user id of the root inode of the file system. -V verbose This controls the amount of information written to stdout: 0 No output 1 Overall size and cylinder group details. 2 A progress bar (dots ending at right hand margin). 3 The first few super-block backup sector numbers are displayed before the progress bar. 4 All the super-block backup sector numbers are displayed (no progress bar). The default is 0. If -N is specified mount_mfs stops before outputting the progress bar. NOTES
The owner and group ids of the root node of the new file system are set to the effective uid and gid of the user mounting the file system. EXAMPLES
Mount a 32 MB mfs on /tmp: mount_mfs -s 32m swap /tmp SEE ALSO
disktab(5), fs(5), disklabel(8), diskpart(8), dumpfs(8), fsck_ffs(8), fsirand(8), mount(8), newfs(8), tunefs(8) M. McKusick, W. Joy, S. Leffler, and R. Fabry, "A Fast File System for UNIX,", ACM Transactions on Computer Systems 2, 3, pp 181-197, August 1984, (reprinted in the BSD System Manager's Manual). HISTORY
The mount_mfs command appeared in 4.2BSD. BUGS
The async mount(8) option is currently disabled in this file system because it causes hangs when writing lots of data. The problem is that MFS needs to allocate pages to clean pages, so if it waits until the last minute to clean pages then there may not be any of them available to do the cleaning. BSD
December 8, 2007 BSD
Man Page