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.

Table 1 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.

  • The size ranges from 1 byte to 512 MB.
  • The default value is 536870912 bytes.
  • After -s is specified, a number must follow; otherwise, the format is incorrect.
  • When --duration is specified, the step mode is not supported. If the size is not specified, the default size of the data to be transmitted is 512 MB.

No

[-et, --et, --execute-times]

Specifies the number of iterations, that is, the number of copy times in the memory.

  • The value range is [1, 100000000]. If this parameter is not specified, the default value 40 is used.
  • The values of the -et parameter specified on the two nodes where the cross-node P2P bandwidth test is performed must be the same.
  • This parameter is not supported when --duration is specified.

No

[--di, --direction]

Specifies the direction of a P2P bandwidth test. The following values are supported:

  • all: both unidirectional and bidirectional tests
  • uni: unidirectional test only
  • bid: bidirectional test only

If the parameter value is not specified, all is used by default.

This parameter is supported only by the Ascend 950PR&950DT products when type is set to p2p.

No

[-dur, --dur, --duration]

Specifies the traffic generation duration. The value ranges from 5 to 120, in seconds.

  • This parameter is supported only by the Ascend 950PR&950DT products when type is set to p2p.
  • This parameter can be used only when the value of --direction is uni or bid.
  • This parameter must be used together with --device-src and --device-dst.

No

[-lt, --lt, --link-type]

Specifies the data transmission operation type for a P2P test. The following values are supported:

  • ubc_clos: CLOS link
  • ubc: CLOS link
  • uboe: UBoE link
  • ubg: UBG link

The value range varies with the server model.

  • Atlas 950 SuperPoD: ubc_clos, ubc
  • Atlas 650/Atlas 650E/Atlas 850/Atlas 850E: ubc_clos, ubc, and uboe
  • Atlas 950 SuperPoD Flex: ubc_clos, ubc, and ubg

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
----------------------------------------------------------------
The following table describes the parameters in the command output.
Table 2 Parameters in the command output

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