Skip to content

Throughput example receive many out of order samples #421

@allenwang-git

Description

@allenwang-git

When I clone the cyclonedds and cyclonedds-cxx from their current master branches, and run cyclonedds-cxx throughput example with the commands cyclonedds-cxx/build/bin/cxxThroughputPublisher 8192 0 1 0 "Throughput example" , cyclonedds-cxx/build/bin/cxxThroughputSubscriber 0 0 "Throughput example", I got such out put form subscriber side:

=== [Subscriber] Cycles: 0 | PollingDelay: 0 ms | Partition: Throughput example
=== [Subscriber] Using a waitset approach.

=== [Subscriber] Waiting for a writer ...
=== [Subscriber] Waiting for samples...
=== [Subscriber] Received 608 samples totalling 637534208 bytes in 1 seconds | Rates: 607.7 samples/s, 5098 Mbit/s, with 596 samples received out of order.
=== [Subscriber] Received 611 samples totalling 640679936 bytes in 1.001 seconds | Rates: 610.2 samples/s, 5119 Mbit/s, with 1194 samples received out of order.
=== [Subscriber] Received 609 samples totalling 638582784 bytes in 1.001 seconds | Rates: 608.4 samples/s, 5104 Mbit/s, with 1791 samples received out of order.
=== [Subscriber] Received 608 samples totalling 637534208 bytes in 1.001 seconds | Rates: 607.4 samples/s, 5095 Mbit/s, with 2390 samples received out of order.
=== [Subscriber] Received 609 samples totalling 638582784 bytes in 1 seconds | Rates: 608.7 samples/s, 5107 Mbit/s, with 2993 samples received out of order.
=== [Subscriber] Received 613 samples totalling 642777088 bytes in 1.002 seconds | Rates: 611.7 samples/s, 5131 Mbit/s, with 3595 samples received out of order.
=== [Subscriber] Received 607 samples totalling 636485632 bytes in 1.002 seconds | Rates: 605.8 samples/s, 5082 Mbit/s, with 4195 samples received out of order.
=== [Subscriber] Received 620 samples totalling 650117120 bytes in 1.001 seconds | Rates: 619.4 samples/s, 5196 Mbit/s, with 4802 samples received out of order.

As u can see, many out of order samples are received. I didnt modify any line of source code or this example, could anyone tell me the reason why the output looks not good. when i run the Throughput example in CycloneDDS repo, the output is normal, without any out of order samples. @Pro @k0ekk0ek @ichernev @chrisguindon @kydos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions