Package: cstream
Version: 2.7.6-1
Severity: normal
Package description says:
- Built-in data creation and sink, no more redirection of /dev/null
and /dev/zero.
Which implies that 'cstream' can create a '/dev/zero' style stream of zeroes.
The docs don't confirm or deny that, the only mention of 'zero' repeats
the package description:
% for f in `dlocate -L cstream` ; do test -f $f && zgrep -B 1 -inH zero $f
; done
/usr/share/doc/cstream/README:21- Built-in data creation and sink, no
more redirection of /dev/null
/usr/share/doc/cstream/README:22: and /dev/zero. These special
devices speed varies greatly amoung
By default 'cstream' created data is not just zeroes:
% cstream -i - | hexdump -C | head -n 1
00000000 4e 57 4c 52 42 42 4d 51 42 48 43 44 41 52 5a 4f
|NWLRBBMQBHCDARZO|
One can always use '/dev/zero' itself for input, but compare the
speed of '/dev/zero' to data created by 'cstream':
# 'cstream' creation
% cstream -i - -o - -v 1 -n 4g
4294967296 B 4.0 GB 0.01 s 330050691918 B/s 307.38 GB/s
# '/dev/zero'
% cstream -i /dev/zero -o - -v 1 -n 4g
4294967296 B 4.0 GB 0.68 s 6301468785 B/s 5.87 GB/s
On my system, a 60x speed difference.
Can 'cstream' emulate '/dev/zero'? If not, maybe it should. Failing
that, the docs might be corrected to not imply a '/dev/zero' style
stream of zeroes.
Hope this helps...
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages cstream depends on:
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
cstream recommends no packages.
cstream suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]