Cross-Node P2P Bandwidth Test
Function
The cross-node P2P bandwidth test is primarily used to evaluate the following:
- Atlas 650/Atlas 650E/Atlas 850/Atlas 850E: cross-node P2P transmission rates and total elapsed time in UBoE networking scenarios
- Atlas 950 SuperPoD: cross-chassis P2P transmission rates and total elapsed time in UB CLOS networking scenarios
- Atlas 950 SuperPoD Flex: cross-node P2P transmission rates and total elapsed time in UBG networking scenarios
Test Procedure
The bandwidth can be tested using MPI. If MPI is not installed in the environment, install and configure it in advance by referring to Installing and Configuring MPI in CANN HCCL Performance Tester, and configure the environment variables by referring to Compilation in CANN HCCL Performance Tester. Only Open MPI 4.1.5 is supported. Do not use parameters, configurations, and environment variables that are not mentioned in the description and examples. For details about other Open MPI execution parameters, environment variables, and configuration files, see Open MPI documentation.
Ensure that the entered IP address is valid.
Parameters
You can run either of the following commands to list the parameters of the bandwidth test command:
ascend-dmi --bw -h
ascend-dmi --bw --help
Table 1 lists only test-specific parameters. For details about other common parameters, see Common Parameters.
Parameter |
Description |
Restrictions |
Mandatory |
|---|---|---|---|
[-bw, --bw, --bandwidth] |
Measures the chip bandwidth. -bw is supported, but --bw or --bandwidth is recommended. |
- |
Yes |
[-t, --type] |
Specifies the data flows to be tested. |
Currently, only the P2P mode is supported. |
Yes |
[-sp, --sp, --super-pod] |
Specifies a cross-node test. The value 2 indicates that the cross-node P2P test is performed in MPI mode. |
If the value is 2, this parameter must be specified together with [-dd, --dd, --device-dst] and [-ds, --ds, --device-src]. |
Yes |
[-ds, --ds, --device-src] |
Specifies the ID of the source device for a P2P test. This parameter must be specified together with [-dd, --dd, --device-dst]. |
After [-ds, --ds, --device-src] and [-dd, --dd, --device-dst] are specified, [-d, --device] cannot be specified. |
Yes |
[-dd, --dd, --device-dst] |
Specifies the ID of the destination device for a P2P test. This parameter must be specified together with [-ds, --ds, --device-src]. |
After [-ds, --ds, --device-src] and [-dd, --dd, --device-dst] are specified, [-d, --device] cannot be specified. |
Yes |
[-s, --size] |
Specifies the size of the data to be transmitted and the display mode of the test result.
|
|
No |
[-et, --et, --execute-times] |
Specifies the number of iterations, that is, the number of copy times in the memory. |
|
No |
[--di, --direction] |
Specifies the direction of a P2P bandwidth test. The following values are supported:
If the parameter value is not specified, all is used by default. |
This parameter is supported only by the |
No |
[-dur, --dur, --duration] |
Specifies the traffic generation duration. The value ranges from 5 to 120, in seconds. |
|
No |
[-lt, --lt, --link-type] |
Specifies the data transmission operation type for a P2P test. The following values are supported:
The value range varies with the server model.
|
This parameter is not supported by the Atlas 650, Atlas 650E, Atlas 850, Atlas 850E, Atlas 950 SuperPoD, and Atlas 950 SuperPoD Flex. |
Yes |
Example
The following uses the Atlas 950 SuperPoD Flex as an example to describe how to perform a P2P test from the source node device 1 to the peer node device 0 with the link type set to ubc.
mpirun -mca btl_tcp_if_include xx.xx.xx.x2/22 -mca btl_tcp_port_min_v4 32768 -mca btl_tcp_port_min_v6 32768 -host xx.xx.xx.x2:1,xx.xx.xx.x3:1 -n 2 ascend-dmi --bw -t p2p --sp 2 --lt ubc --dd 0 --ds 1 -q
- Parameter description:
- -mca btl_tcp_if_include specifies the MPI communication standard and communication port.
- -mca btl_tcp_port_min_v4 specifies the minimum TCP port number used by the MPI IPv4 standard.
- -mca btl_tcp_port_min_v6 specifies the minimum TCP port number used by the MPI IPv6 standard.
- No authentication mechanism is available for the ports used by MPI. To prevent malicious connection attacks, perform security hardening by referring to Avoiding MPI All-Zero Listening.
Unidirectional Peer to Peer Test Pod: rank 0 device id: 1 to Pod: rank 1 device id: 0 ---------------------------------------------------------------- Size(Bytes) Execute Times Bandwidth(GB/s) Elapsed Time(us) ---------------------------------------------------------------- 536870912 5 374.144783 1504.63 ---------------------------------------------------------------- Bidirectional Peer to Peer Test Pod: rank 0 device id: 1 and Pod: rank 1 device id: 0 ---------------------------------------------------------------- Size(Bytes) Execute Times Bandwidth(GB/s) Elapsed Time(us) ---------------------------------------------------------------- 536870912 5 750.094500 1501.01 ----------------------------------------------------------------
Parameter |
Description |
|---|---|
Unidirectional Peer to Peer Test |
Unidirectional P2P |
Bidirectional Peer to Peer Test |
Bidirectional P2P |
Size(Bytes) |
Size of data to be transmitted, in bytes |
Execute Times |
Number of iterations |
Bandwidth(GB/s) |
Chip bandwidth, in GB/s. |
Elapsed Time(us) |
Execution duration |