|Database thread settings. |
|The maximum wait time during a shutdown. |
|The database thread will wake up at this rate to clean up the database. |
|The clean-up period used during database shut-down. |
|The initial number of total records. |
|The maximum level of the skiplist. |
|The maximum number of weak references. |
|The initial number of weak references. |
RTI uses an internal in-memory "database" to store information about entities created locally as well as remote entities found during the discovery process. This database uses a background thread to garbage-collect records related to deleted entities. When the DDSDomainParticipant that maintains this database is deleted, it shuts down this thread.
The Database QoS policy is used to configure how RTI Data Distribution Service manages its database, including how often it cleans up, the priority of the database thread, and limits on resources that may be allocated by the database.
You may be interested in modifying the DDS_DatabaseQosPolicy::shutdown_timeout and DDS_DatabaseQosPolicy::shutdown_cleanup_period parameters to decrease the time it takes to delete a DDSDomainParticipant when your application is shutting down.
The DDS_DomainParticipantResourceLimitsQosPolicy controls the memory allocation for elements stored in the database.
This QoS policy is an extension to the DDS standard.
|struct DDS_ThreadSettings_t DDS_DatabaseQosPolicy::thread
Database thread settings.
There is only one database thread: the clean-up thread.
[default] priority low.
The actual value depends on your architecture:
For Windows: -3
For Solaris: OS default priority
For Linux: OS default priority
For LynxOS: 10
For INTEGRITY: 60
For VxWorks: 120
For all others: OS default priority.
[default] The actual value depends on your architecture:
For Windows: OS default stack size
For Solaris: OS default stack size
For Linux: OS default stack size
For LynxOS: 16*1024
For INTEGRITY: 20*1024
For VxWorks: 16*1024
For all others: OS default stack size.
[default] mask DDS_THREAD_SETTINGS_STDIO
|struct DDS_Duration_t DDS_DatabaseQosPolicy::shutdown_timeout
The maximum wait time during a shutdown.
The domain participant will exit after the timeout, even if the database has not been fully cleaned up.
[default] 15 seconds
|struct DDS_Duration_t DDS_DatabaseQosPolicy::cleanup_period
The database thread will wake up at this rate to clean up the database.
[default] 61 seconds
[range] [0,1 year]
|struct DDS_Duration_t DDS_DatabaseQosPolicy::shutdown_cleanup_period
The clean-up period used during database shut-down.
[default] 1 second
[range] [0,1 year]
The initial number of total records.
[range] [1,10 million]
The maximum level of the skiplist.
The skiplist is used to keep records in the database. Usually, the search time is log2(N), where N is the total number of records in one skiplist. However, once N exceeds 2^n, where n is the maximum skiplist level, the search time will become more and more linear. Therefore, the maximum level should be set such that 2^n is larger than the maximum(N among all skiplists). Usually, the maximum N is the maximum number of remote and local writers or readers.
The maximum number of weak references.
A weak reference is an internal data structure that refers to a record within RTI Data Distribution Service' internal database. This field configures the maximum number of such references that RTI Data Distribution Service may create.
The actual number of weak references is permitted to grow from an initial value (indicated by DDS_DatabaseQosPolicy::initial_weak_references) to this maximum. To prevent RTI Data Distribution Service from allocating any weak references after the system has reached a steady state, set the initial and maximum values equal to one another. To indicate that the number of weak references should continue to grow as needed indefinitely, set this field to DDS_LENGTH_UNLIMITED. Be aware that although a single weak reference occupies very little memory, allocating a very large number of them can have a significant impact on your overall memory usage.
Tuning this value precisely is difficult without intimate knowledge of the structure of RTI Data Distribution Service' database; doing so is an advanced feature not required by most applications. The default value has been chosen to be sufficient for reasonably large systems. If you believe you may need to modify this value, please consult with RTI support personnel for assistance.
[range] [1, 100 million] or DDS_LENGTH_UNLIMITED, >= initial_weak_references
The initial number of weak references.
See DDS_DatabaseQosPolicy::max_weak_references for more information about what a weak reference is.
If the QoS set contains an initial_weak_references value that is too small to ever grow to DDS_DatabaseQosPolicy::max_weak_references using RTI Data Distribution Service' internal algorithm, this value will be adjusted upwards as necessary. Subsequent accesses of this value will reveal the actual initial value used.
Changing the value of this field is an advanced feature; it is recommended that you consult with RTI support personnel before doing so.
[default] 2049, which is the minimum initial value imposed by REDA when the maximum is unlimited. If a lower value is specified, it will simply be increased to 2049 automatically.
[range] [1, 100 million], <= max_weak_references