Sending Profiling Items to the Host
Function
Sends profiling items to the host by using ADC and start profiling.
Syntax
adc --host <host_ip>:<port> --profile "<params>"
Parameter
Parameter |
Description |
Mandatory or Not |
Default Value |
---|---|---|---|
--host |
|
Yes |
The default value of port is 22118. |
--profile |
Specifies profiling items in params. |
Yes |
- |
Prerequisites
Install the .run package correctly. For details about how to install and deploy the .run package, see Software Installation Guide (RUN).
Example
- Log in to the host server as the user who starts the ada process.
- Run the ADC command.
The following command is an example. You need to modify it as required. In this example, job_id is 7323463a-eb03-11e9-9e46-286ed4893b2e, result_dir is /mnt/result_dir/xx.xx.xx.xx/7323463a-eb03-11e9-9e46-286ed4893b2e (replace xx.xx.xx.xx with the actual IP address), the profiling roce and NIC data profiling are enabled, and the sampling interval is 2s.
- Replace xx.xx.xx.xx after --host with the actual IP address of the host server.
- Replace the path after result_dir with the actual directory on the host server. After running the command, you can view the profiling result in the directory specified by result_dir.
adc --host xx.xx.xx.xx:22118 --profile "{\"job_id\": \"7323463a-eb03-11e9-9e46-286ed4893b2e\", \"result_dir\": \"/mnt/result_dir/xx.xx.xx.xx/7323463a-eb03-11e9-9e46-286ed4893b2e\", \"profiling_mode\": \"system-wide\", \"profiling_period\": 2, \"peripheral_profiling\": \",roce,nic\", \"roceInterval\": 20,\"nicInterval\": 20, \"cleanup_device_results\": \"on\", \"stream_enabled\": \"on\", \"analysis_type\": \"ai\", \"cleanup_host_results\": \"on\", \"analysis_target\": \"Launch Application\", \"devices\": \"0\", \"is_cancel\": 0, \"ai_core_profiling_mode\": \"\"}"
For details about the profiling items, see Profiling Tool Instructions (CLI).