Configuration Item Description
The configuration file ${MX_SDK_HOME}/config/sdk.conf of Vision 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. Table 1 describes the required configuration items.
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 |
Whether to enable performance statistics. The default value is false. |
|
ps_log_dir |
Directory for storing performance statistic logs, which needs to be specified before using the tool. |
|
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 postprocessing. 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, in MB. If the size of a log file exceeds the value of this parameter, a new log file is generated. The default value is 10, and the value range is [1, 20]. |
|
ps_queue_size_warn_percent |
Alarm threshold (percentage) of the queue length. If the current queue length reaches the alarm threshold, an alarm log is generated. The default value is 80, and the value range is [1, 100]. |
|
ps_interval_time |
Interval for collecting performance statistics (E2E, single-input, model inference, and postprocessing performance). The default value is 60, and the value range is [1, 24 × 3600]. |
|
ps_queue_size_interval_time |
Interval for collecting queue length statistics. The default value is 50, and the value range is [10, 1000]. |
|
ps_queue_size_times |
Count for collecting queue length. The default value is 100, and the value range is [1, 1000]. |
|
malloc_max_data_size |
Upper limit of the memory to be allocated. The default value is 1 GByte, and the maximum value is 4 GByte. |
