-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ mansources = [ | |
'common.rst', | ||
'tcp.rst', | ||
'udp.rst', | ||
'zero.rst', | ||
] | ||
|
||
foreach f : mansources | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
tll-channel-zero | ||
================ | ||
|
||
:Manual Section: 7 | ||
:Manual Group: TLL | ||
:Subtitle: Zeroed message generator channel | ||
|
||
Synopsis | ||
-------- | ||
|
||
``zero://;size=<size>;msgid=<integer>`` | ||
|
||
Description | ||
----------- | ||
|
||
Channel implements generator that is always ready to provide message, like ``/dev/zero`` special | ||
device. On each ``tll_channel_process`` message callback is invoked. Signalling file descriptor (if | ||
not disabled with ``fd=no``) is always ready. | ||
|
||
This channel is mostly useful in benchmarks or transport load tests. Each time same message is | ||
passed to callback so runtime overhead is minimal - process call takes only several nanoseconds | ||
(depening on machine) so reading from this channel can give hundreds of millions of messages per | ||
second. | ||
|
||
Init parameters | ||
~~~~~~~~~~~~~~~ | ||
|
||
``size=<size>`` (default ``1kb``) - size of generated message. | ||
|
||
``msgid=<int>`` (default ``0``) - id of generated message. | ||
|
||
``fill=<int8>`` (default ``0``) - fill character used to memset message body. | ||
|
||
``pending=<bool>`` (default ``true``) - disable pending dynamic flag. Useful to test performance of | ||
processing loop in different scenarios. | ||
|
||
Examples | ||
-------- | ||
|
||
Generate stream of messages with id 10 of size 256: | ||
|
||
:: | ||
|
||
zero://;size=256b;msgid=10 | ||
|
||
See also | ||
-------- | ||
|
||
``tll-channel-common(7)`` | ||
|
||
.. | ||
vim: sts=4 sw=4 et tw=100 |