Configuration Item Description
The configuration file ${MX_SDK_HOME}/config/sdk.conf of the MindX SDK is added for plugin performance statistics. As shown in Figure 1, if a configuration item contains [dynamic config], it is configurable. If the value of a configuration item is smaller than the minimum value, the minimum value is used. If the value of a configuration item is greater than the maximum value, the maximum value is used. For details about the configuration items, see Configuration Item Description.
The value of ps_queue_size_interval_time x ps_queue_size_times must be less than the total inference time. If no .queue log is generated, modify these two parameters for debugging.
|
Configuration Item |
Description |
|---|---|
|
enable_ps |
Performance statistics switch. |
|
ps_log_dir |
Directory for storing performance statistic log files. |
|
ps_log_filename |
Name of a performance statistic log file. The file name extension .e2e specifies end-to-end log files. The file name extension .plugin specifies the log files of a single plugin, model inference, and post-processing. The file name extension .tpr specifies throughput log files. The file name extension .queue specifies queue length log files. |
|
ps_max_log_size |
Maximum size of a performance statistic log file. If the size of a performance statistic log file exceeds the value of this parameter, a new performance statistic log file is generated. |
|
ps_queue_size_warn_percent |
Alarm threshold (percentage) of the queue length. When the queue length reaches the alarm threshold, an alarm log is generated. |
|
ps_interval_time |
Interval for collecting performance statistic, which is the interval for collecting end-to-end, single plugin, model inference, and post-processing performance statistics. |
|
ps_queue_size_interval_time |
Interval for collecting queue length statistics. |
|
ps_queue_size_times |
Number of queue length statistics collection times. |
|
malloc_max_data_size |
Maximum value of the allocated memory. The default value is 1 GB. |
