Linux开源工具stream,类Linux的dd工具 cstream

cstream是一个类似于Linux dd的工具,专注于处理数据流。它提供了多种选项,如设置块大小、并发性、吞吐量限制以及输入输出文件类型。cstream支持通过标准输入输出操作,并可以用于监控性能,输出统计信息。此外,它还可以处理网络连接,并在不同场景下调整行为。
摘要由CSDN通过智能技术生成

cstream 是一个类似 Linux 下的 dd 工具,用来处理数据流的工具。

cstream by Martin Cracauer - version 3.0.0

-V = print version number to stdout and exit with 0

-v = verbose [default: off]

0 = nothing

1 = report bytes transferred and throughput

2 = also throughput after first read/write

3 = also seperate throughput for read and write (unimplemented)

3 = verbose stats on every read/write

-b = blocksize [default: 8192]

-B = buffer (at most) bytes [default: one block]

-c = Concurrency, writing done by a seperate process

0 = no concurrency, one one process

1 = read side buffers

2 = write side buffers

3 = both sides buffer, -B amount of data will be transferred at once

-n = overall size of data [default: unlimited]

-t = throughput in bytes/sec [default: unlimited]

if positive, bandwith is average over whole session.

if negative, every write is delayed to not excceed.

-i = name of input file, - = generate stream yourself

to use stdin, use -i ''

-o = name of output file, - = just sink data

to use stdout, -o ''

-I = Type of input file

-O = Type of ouput file

'f' = fifo (create it)

'a' = set audio modes on file (i.e. CD quality)

'N' = don't use TCP even if filename has ':'

't' = tee - in addition to outfile, copy stream to fd 3

'D' = O_DIRECT

'S' = O_SYNC

[Multiple chars allowed]

-p = Write pid as ascii integer to file

-l include line count in statistics

-w = Set write block size (-c 5 only)

-S Don't output statistic on SIGINFO

-T = Report throughput every seconds

SIGINFO causes statistics to be written to stderr

SIGUSR1 causes statistics to be written to stderr

SIGUSR2 causes loop end after next buffer transfer

if -i has not been used, specifies input file

-6 Use IPV6: -1 = don't, 1 = allow both, 2 = force v6

On some platforms server mode 1 forces ipv6, as

they don't open both v4 and v6 ports from one bind call.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值