This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM6548: Ethernet performance

Part Number: AM6548


Tool/software: Linux

Hi,

Let me confrim how you measure ether net performace.

According yo following URL, TI use iperf 2.0.5 to confirm performance of network by using AM654x GP EVM.

http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Release_Specific_Performance_Guide.html

Now, I performed following commad on AM654x GP EVM.

However, I obsreved following error meassage

"cannot execute binary file: Exec format error"

Could you please tell us how you measure network performance by using iperf ?

Here are my configuration list.

1. Use Ubuntu 16.04 LTS for HOST

2. Use "ti-processor-sdk-linux-am65xx-evm-05.02.00.10.bin"

And also, I could not use following command as well. If you have solution to solve about below, please let me know.

* "apt-get" command

* "make" command.

Best regards, 

  • Hi Machida,

    Seems that PSDK 5.02 comes with ipref3 instead of iperf2, check below pointers:

    software-dl.ti.com/.../Release_Specific_Migration_Guide.html

    "iperf2 is now replaced by iperf3"


    software-dl.ti.com/.../software_manifest.htm

    All Target Device Content

    This table describes any software being delivered that is expected to run on the target device.

    iperf3 - 3.2-r0.0 - BSD - iperf3_3.2-r0.0_aarch64.ipk



    Regards,
    Pavel
  • Hi Pavel-san,

    Thank you for your reply.

    I tried to install iperf3 from Git.(I installed iperf3 to Ubuntu Host PC and copy execution file to tar.xz file) However, I observed same result(I could not observe correct behavior).

    After that, I tried to install iperf3 from A654x EVM. However "apt-get" command is not implemented at kernel.

    Here are sbin file. As below show, we could not find "apt-get".

    Could you please confirm whether you can perfrom ./iperf3 command on AM654x GP EVM ?

    Best Regards,

    Machida

  • Machida,

    I tested on my AM65x EVM and I am able to perform iperf3 command with the default rootfs. I am using the default PSDK 5.01, no changes.

    root@am65xx-evm:~# iperf3 -s

    -----------------------------------------------------------

    Server listening on 5201

    -----------------------------------------------------------

    root@am65xx-evm:~# iperf3 --version
    iperf 3.2 (cJSON 1.5.2)
    Linux am65xx-evm 4.14.67-gd315a9bb00 #1 SMP PREEMPT Tue Dec 4 14:21:40 EET 2018 aarch64
    Optional features available: CPU affinity setting, IPv6 flow label, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing

     

    I see that version 2 of the iperf tool is also available:

    root@am65xx-evm:~# iperf -s -u
    ------------------------------------------------------------
    Server listening on UDP port 5001
    Receiving 1470 byte datagrams
    UDP buffer size:  224 KByte (default)
    ------------------------------------------------------------

    root@am65xx-evm:~# iperf --version
    iperf version 2.0.5 (08 Jul 2010) pthreads


    The ipref and iperf3 tools are available at:

    ti-processor-sdk-linux-am65xx-evm-05.01.00.11/filesystem/tisdk-rootfs-image-am65xx-evm/usr/bin

    root@am65xx-evm:/usr/bin# ls iperf
    iperf   iperf3

     

    Regards,
    Pavel

     

  • Hello Pavel-san,

    Thank you for your reply.

     >I am using the default PSDK 5.01

    What do you mean "default" ?

    Do you mean that it refers to the SDK included in AM654x GP EVM ?

    Now, latest version of SDK is 5.02. So I'm not sure why you did not try to confirm by using PSDK 5.02.

    BR,

     

  • Ryuuichi machida said:

     >I am using the default PSDK 5.01

    What do you mean "default" ?

    I mean without any changes from my side.

    Ryuuichi machida said:
    Do you mean that it refers to the SDK included in AM654x GP EVM ?

    I do not understand this question. Please clarify.

    Ryuuichi machida said:
    Now, latest version of SDK is 5.02. So I'm not sure why you did not try to confirm by using PSDK 5.02.

    I have PSDK 5.01 on my SD card. And I think it will be the same for PSDK 5.02. If you observe something else with PSDK 5.02, let me know, I will check on my side.

    Regards,
    Pavel

  • Hello Pavel-san,

    Thank you for your reply.

    Understood. I will try again. And, if I get any question, I will let you know again.

    I am out of office in this week. So I will try next week.

     BR,

  • Hello Pavel-san,

    I would like you confirm following version which you confirmed.

    * 05.01.00.11

    However, I could not find previos version from following URL.

    software-dl.ti.com/.../index_FDS.html

    (In general, we can go back to previous version from sdk page.)

    So, could you please tell us URL of Linux SDK 05.01.00.11 ?

    Best Regards, 

  • Machida,

    Please check below link:

    software-dl.ti.com/.../index_FDS.html

    Regards,
    Pavel
  • Hello Pavel-san,

    Thank you for your reply.

    I installed and check binary file of 05.01.00.11 version.

    Then, actually 05.01 have iperf in usr/bin folder as shown below.

    However, when I re-checked at 05.02.00.10 version.

    Actually, there is no binary file about iperf in usr/bin folder.

    I will check network performance by using 05.01.00.11 SDK. However, I will re-post if i can not perform network performance.

    BR,

  • Machida,

    I can see iperf and iper3 in PSDK 5.02 rootfs at below location:

    ti-processor-sdk-linux-am65xx-evm-05.02.00.10/filesystem/tisdk-rootfs-image-am65xx-evm/usr/bin/iperf
    ti-processor-sdk-linux-am65xx-evm-05.02.00.10/filesystem/tisdk-rootfs-image-am65xx-evm/usr/bin/iperf3

    Check also CPSW kernel user guide for more info regarding iper tool usage:

    http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_Kernel_Drivers.html#cpsw

    Realtime Linux Kernel Network performance

    Regards,
    Pavel

  • Hello Pavel-san,

    Actually, I also confirmed iperf command on SDK version 05.02.00.10.

    However, binary size is different between downloaded at 2018/12/26 and 2019/1/16.

    So, I guess that minar change was performed.

    Anyway, I could check ethernet performance by using SDK version 05.02.00.10.

    Then, following result is observed when I performed iperf command.

    For Eth0(This means ethernet port) :

     For Eth1 and 2(These mean PRU port as ethernet)

    According to "ethtool" command, all of above three port are defined as Giga bit port.

    However, it seems that bandwidth is too narrow. Is it limitation of current SDK setting or there is possiblity that we can confirm around giga bit bandwidth on this SDK ?

    Thanks in advance,

  • Machida,

    I see your CPSW (Eth0) module has 729Mb/s for TCP window size of 22.9 KB, which is aligned with the Linux SDK performance numbers:

    software-dl.ti.com/.../Release_Specific_Performance_Guide.html

    With iperf, 600-700 Mb performance is observed on EVM. With iperf3, up to 933 Mb (unofficial tests).

    Regarding PRU_ICSSG tests, the speed should be similar to CPSW. But I can not advice why you observe such a slow speed on your EVM. I would suggest you to open new thread regarding PRU_ICSSG bandwidth/performance.

    Regards,
    Pavel
  • Hello Pavel-san,

    Thank you for your reply.

    OK, please close this thread.

    BR,