Rate This Document
Findability
Accuracy
Completeness
Readability

Link Latency Detection Functions

The tool provides the Kunpeng network detection and analysis functions, collects latency data of network protocol stacks, and analyzes network performance bottlenecks. Before deploying the K-NET network acceleration kit, you can use the functions to collect and analyze data.

The K-NET network acceleration kit provides a unified software framework to leverage the advantages of both hardware and software and realizes full performance potential of NIC hardware. For details, see Data Acceleration Kit K-NET Communication Protocol Acceleration User Guide.

Prerequisites

The tool supports three types of installation packages for the link latency detection function. The usage of the full tool package is the same as that of the RPM package, while the usage of the standalone function package is different.

  • Standalone tool package (tracelib-collector-xxx.tar.gz):

    Obtain the link latency detection function package (tracelib-collector-xxx.tar.gz) from Obtaining the Tool Packages. For details about how to use the function, see Collecting Data in Dynamic Library Mode.

  • Overall tool package (DevKit-CLI-x.x.x-Linux-Kunpeng.tar.gz) or RPM package (devkit-advisor-x.x.x-1.aarch64.rpm):
    • You have installed the Affinity Analyzer tool. For details, see Installing the Tool.
    • If you have installed the tool using a compressed package, decompress the package and switch to the tool directory. Then run the command in ./ mode, for example, ./devkit advisor knet -h. If you have installed the tool using an RPM package, run devkit advisor knet -h. This section uses an RPM package as an example.

Command Function

Collects data during runtime, analyzes and displays function call sequence diagrams, and analyzes function compatibility.

Syntax

1
devkit advisor knet [POSITIONAL ARGUMENTS] [OPTIONS]

Example

View the Link Latency Detection functions:

1
devkit advisor knet -h

Command output:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
usage:

positional arguments:
  {seq-diag,compat}     Modes of KNet
   seq-diag             Analyze and Display the Sequence Diagram
   compat               Analyze and Display the Compatibility
   attach               Attach the collector(librecord.so) to a running process

options:
   -l {0,1,2,3}, --log-level {0,1,2,3}
                        Specifies the log level of the current task. The default value is INFO.
   --set-timeout TIMEOUT
                        Specifies the timeout period of a task. By default, the timeout period is not set.
Table 1 Function description

Function

Description

seq-diag

Analyzes and displays the sequence diagram.

compat

Analyzes and displays compatibility information.

attach

Collects data in Attach mode during runtime.