Skip to content

EFA loopback fi_pingpong dosent work

0

Server Command /opt/amazon/efa/bin/fi_pingpong -p efa

Client /opt/amazon/efa/bin/fi_pingpong -p efa 127.0.0.1 Does not works and hangs

asked a year ago235 views

1 Answer
0

When testing EFA with fi_pingpong, using the loopback address (127.0.0.1) will not work because EFA is designed for network communication between separate instances, not for loopback communication on the same instance.

To properly test EFA connectivity, you need to use two separate EC2 instances that are:

  1. Both EFA-enabled
  2. In the same subnet
  3. In the same availability zone (EFA doesn't work across different availability zones)
  4. Configured with appropriate security groups that allow all traffic within the security group

The correct way to test EFA is:

  • On the first instance (server): /opt/amazon/efa/bin/fi_pingpong -p efa
  • On the second instance (client): /opt/amazon/efa/bin/fi_pingpong -p efa [IP-of-first-instance]

Where [IP-of-first-instance] is the private IP address of the first instance (not the loopback address).

For example, if your first instance has IP 10.3.140.69, you would run: /opt/amazon/efa/bin/fi_pingpong -p efa 10.3.140.69 on the second instance.

When properly configured, you should see output showing data transfer rates between the instances.
Sources
(Optional) Test EFA - AWS PCS
Elastic Fabric Adapter - AWS ParallelCluster

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.