Task Management
Procedure
- Click
next to System Profiler.Choose General Analysis from the drop-down list. The page for creating a task is displayed.
- Set task parameters.
- Click Import Template next to the Task Name text box to select and import a saved task template.
- This section describes only common task parameters. For details about how to set other task parameters, see the corresponding analysis task sections.
- The L3C access bandwidth and hit rate are not displayed on some OSs.
- Some VMs (such as Huawei Cloud ECS) do not support the vPMU. As a result, the performance analysis task for collecting hardware PMU events will fail on these VMs.
- When creating a task, do not use the following high-risk commands in the application parameter configuration items:
1cat, view, more, less, head, tail, awk, grep, egrep, fgrep, stty, rm, vi, sed, dos2unix, cp, mv, gzip, unzip, gunzip, tar, killall, pkill, chkconfig, mount, rpm, umount, fdisk, su, sudo, chmod, chown, chgrp, useradd, userdel, groupadd, groupdel, kill, shutdown, init, reboot, halt, poweroff, passwd, mkfs, ifconfig, ethtool, route, sh, bash, ksh, csh, crontab, sysctl, perf
Table 1 Parameters for adding a task Parameter
Description
Task Name
Name of the analysis task. A created task is automatically named in the Analysis type_Taskn format, with n starting from 1 in ascending order. You can change the name as required.
The name must meet the following requirements:
- Contain only letters, digits, and underscores (_).
- Contain 1 to 64 characters.
Select Nodes
Select the nodes to be analyzed. A maximum of 10 nodes are supported. You can search for nodes by node IP address or node name to filter nodes by status.
Analysis Object
Object to be analyzed. The options are:
- System: Collects performance data of the server, regardless of the types of applications running in the system. The sampling duration is determined by the parameter specified. This option is recommended for servers running multiple types of services and subprocesses.
- Application: Collects data of a specified application or process for analysis.
After selecting Application, select a mode for the analysis object. The options are:
- Launch application: Starts the application when the sampling begins. The sampling duration is determined by the execution time of the application. This option is recommended for applications with short execution time. The analysis covers the application and its subprocesses.
- Attach to process: Associates the existing process identifiers (PIDs) on the server during data collection. You need to configure the sampling duration parameter (applicable to scenarios where the application runs for a long time). The analysis covers only the PIDs in the parameter, not the sub-processes of the PIDs.
NOTE:The parameters to be configured vary with the analysis type. For details, see the corresponding analysis task sections.
Analysis Type
Type of the analysis task to be performed.
The system analysis objects include:
- General analysis
- Overall analysis
- Process/Thread performance
- Hotspot functions
- System component analysis
- Microarchitecture
- Memory access
- I/O
- Specified analysis
- Resource scheduling
- HPC cluster check
The application analysis objects include:
- General analysis
- Process/Thread performance
- Hotspot functions
- System component analysis
- Microarchitecture
- Memory access
- I/O
- Specified analysis
- Resource scheduling
- Locks and waits
- HPC application
- Roofline
NOTE:- The parameters to be configured vary with the analysis type. For details, see the corresponding analysis task sections.
- Resource scheduling and I/O analysis tasks do not support a version upgrade. As a result, reports of earlier versions may not be displayed in the new version.
Task Execution
The options are Execute now (default) and On a schedule. You need to set this parameter in Advanced Configurations.
If On a schedule is selected, you need to set Sampling Mode, Sampling Time, and Sampling Date.
For Periodical sampling mode, the task runs once a day in the sampling period. You need to set Sampling Time and Sampling Date.
For One-Time sampling mode, the task takes effect only once. You need to set Sampling Date and Time.
NOTE:- A user can create a maximum of 20 scheduled tasks.
- You can click
in the upper right corner of the page, choose Tool Settings > System Profiler, and click the Scheduled Tasks tab to view, edit, or delete (batch deletion supported) the created scheduled tasks. - The Restart button is unavailable for scheduled tasks.
- Click OK. For details about task parameters, see Table 1 and the related analysis task sections.
You can click the icons next to the task name to perform the following operations:
: restarts an analysis task. You can modify task parameter settings and restart an analysis task. This button is available when a task is canceled or fails.
: stops an analysis task. After an analysis task is stopped, the collected information will be deleted.
: deletes an analysis task. After a task is deleted, all data of this task will be deleted. Exercise caution when performing this operation.
: performs an analysis again. The analysis task is renamed and restarted.
: modifies the task or report name. The report naming rule is the same as that of a task.
- The administrator (devadmin) and common users can view, restart, and delete analysis tasks created by themselves. When creating a task, users can click Manage Nodes next to Select Nodes to go to the node management page.
- You can click Save as Template and enter a template name to save the configuration information of the current task as a template.
The created template will be displayed in the task template list. You can click
in the upper right corner and choose Task Templates to view and delete (batch deletion supported) task templates.A maximum of 10 templates can be saved for each analysis task type. All users can only browse, import, and delete task templates created by themselves.
- During data collection or analysis, you can click Analyze to start analysis or Cancel to stop the task.
After an analysis task is created, you can hover the mouse cursor over the task name to view the task details. Analysis tasks can be imported and exported. See Figure 1.
- Click
next to System Profiler. You can view and delete imported tasks, and download and delete exported tasks. If an import or export task fails, you can click Retry to import or export again. - The administrator can export tasks created by all users. Common users can export only tasks created by themselves. To view details, you can click
in the upper right corner, choose Tool Settings > System Profiler > Import/Export Task.
- Click
. A window shown in Figure 2 appears. Select either of the import modes as required.
- If Import Mode is set to Upload file, select the exported compressed file and upload it.
- If Import Mode is set to Specify file path, enter the absolute path of the file on the server. The devkitworker1 user must have the read permission on the specified file as well as the access and write permissions on the directory where the file is located.
- Click
. A window shown in Figure 3 appears.
You can collect data offline and then import the data for analysis.
If the size of data to be exported exceeds 1 GB, the data is compressed into multiple compressed fragment sequence files whose size does not exceed 1 GB.
- View scheduled tasks and task templates.
Click
in the upper right corner. On the displayed page, choose Tool Settings > System Profiler > Scheduled Tasks or Task Templates.Figure 4 Scheduled tasks


