hrt_ucp_monitor is a tool that monitors the hardware IP usage, and the supported IPs include BPU, DSP, GDC, STITCH, PYM, ISP, CODEC(VPU and JPU). When submitting tasks, UCP can specify the Backend for task deployment, which corresponds to the hardware supported by UCP.
| Parameter | Type | Description |
|---|---|---|
-b, --batch | null | Specified to run in non-interactive batch mode, which is the default mode for interactive mode. |
-d, --delay | int | Specify the update interval in milliseconds, with a default value of 1000 milliseconds and an effective range of [100, 10000]. |
-f, --freq | int | Specify the sampling frequency,defaluting to 1000 samples per second, only effective for BPU and DSP, valid range [10, 1000]. |
-n, --number | int | Specify the usage refresh rate, valid range is [1, INT32_MAX]. |
-t, --time | int | Specify the tool running time in seconds, valid range is [1, INT32_MAX]. |
-e, --enable | string | Specify the hardware IP to be monitored, valid values are bpu, dsp, gdc, stitch, pym, isp, jpu, vpu, case insensitive. Multiple parameters are separated by semicolons. |
Running hrt_ucp_monitor -h or hrt_ucp_monitor --help to obtain tool usage details, as shown in the following:
During the operation of hrt_ucp_monitor, you can early exit by pressing the Q key or exectuing CTRL+C.
when running hrt_ucp_monitor without specifying parameters, it will use default parameters to run. By default, all hardware IPs are monitored,
the interactive mode is used, BPU and DSP samples are taken every 500 times per second, and the hardware IP utilization is refreshed every 1000ms.
In the batch mode, it is not supported to receive user keystrokes. Instead, each time hrt_ucp_monitor refreshed the data, it will output a new line and is suitable for redirecting data to a file.
Refresh time for hardware IP usage, unit milliseconds, current supported setting range is [100, 10000]. If the setting time is not within the valid ranges, it will fail and print error prompt information.
The refesh time is set to 3 seconds, indicating that the data will be refreshed every 3 seconds.
Applicable only to BPU and DSP, used to control the status sampling frequency of hardware IP. Currently supported range is [10, 1000], indicating a minimum sampling of 10 times and a maximum of 1000 samples per second. Due to different statistical methods for utilization, other hardware IPs such as GDC, STITCH do not require setting a sampling frequency. When setting a refresh time, utilization data for the specified period will be obtained.
Set the sampleling period for the busy state of BPU and DSP to 100 samples per second.
Specify the maximum refresh numbers for the hareware IP usage, and when the refresh numbers reaches the maximum numbers, the hrt_ucp_monitor will automatically exit.
You can also press CTRL+C to exit early.
For specifying the tool running time in seconds, hrt_ucp_monitor will calculate the maximum refresh numbers based on the refresh time.
When the refresh numbers reaches the maximum refresh numbers, hrt_ucp_monitor will automatically exit.
You can also early exit by presing CTRL+C just like the number paramerte.
The time and number parameters can not be set simultaneously, an error message will be prompted.
The default refresh time of the tool is 1 second, and after running for 10 seconds, it will exit.
You can set the hardware IP to be monitored, which will only monitor the data you care about and reduce the CPU usage of the tool.
The tool will only output BPU usage data.
Display more detailed log information such as tool parameters during the operation of hrt_ucp_monitor.
