RTI PerfTest Command-Line Parameter Enquiry

3 posts / 0 new
Last post
Offline
Last seen: 8 months 3 weeks ago
Joined: 02/15/2019
Posts: 44
RTI PerfTest Command-Line Parameter Enquiry

Hello!

Just a quick question regarding the following command-line parameter for publishing applications on RTI Perftest:

 

"-writeInstance <instance>:

Set the instance number to be sent.

Default: Round-Robin schedule

Range: 0 and instances"

 

As far as I understand (and as the RTI glossary states):

"An instance is a unique element within a Topic, described by unique values of key fields."

 

What exactly is meant by the instance number? What exactly does this parameter do?

 

Thank you for taking the time to read through this and help me out!

 

Thanks,

Kaleem

jmorales's picture
Offline
Last seen: 1 month 3 days ago
Joined: 08/28/2013
Posts: 61

Hi,

When using RTI Perftest, you have the option to use `-keyed`, this will switch they type to a keyed type that looks like this:

@final
struct TestDataKeyed_t {
@key
octet key[KEY_SIZE];

long entity_id;
unsigned long seq_num;
long timestamp_sec;
unsigned long timestamp_usec;
long latency_ping;
sequence<octet, max_bounded_seq_size=""> bin_data;
#ifdef RTI_CUSTOM_TYPE
@key
RTI_CUSTOM_TYPE custom_type;
long custom_type_size;
#endif
};

The content of that octet array will act as the different keys. By default the number of instances is 1 (all zeroes for the octet array), but if you set the number of instances to >1, that octet array will increase its number for every sample sent. That is cyclic and it works in a round-robin fashion.

In order to force that even when more than 1 instances are in the system you want to send a specific one, then you can use the `-writeInstance X`

 

Regards,

Javi

Offline
Last seen: 8 months 3 weeks ago
Joined: 02/15/2019
Posts: 44

Hi Javi,

Thank you for the super fast response. So the number that you specify in this parameter is the key value of a keyed instance?

Thanks,

Kaleem