<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Check the performance of the pfe0 interface in S32G</title>
    <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1983454#M11505</link>
    <description>&lt;P&gt;Hi Chenyin,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;After checking, the issue is not easily reproducible.&lt;/P&gt;&lt;P&gt;I’ve tried the following commands that are most likely to raise the situation.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;#!/bin/bash
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device1/scan_elements/in_voltage4_en
echo 4096 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/length
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/enable

echo 1 &amp;gt; /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage4_en
echo 4096 &amp;gt; /sys/bus/iio/devices/iio:device0/buffer/length
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device0/buffer/enable


echo 0 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/enable
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/enable

echo 0 &amp;gt; /sys/bus/iio/devices/iio:device0/buffer/enable
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device0/buffer/enable

iperf3 -c 192.168.1.20 -t 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jeff Huang&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 04:00:41 GMT</pubDate>
    <dc:creator>Jeff-CF-Huang</dc:creator>
    <dc:date>2024-10-29T04:00:41Z</dc:date>
    <item>
      <title>Check the performance of the pfe0 interface</title>
      <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1979048#M11369</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;The bitrate of the pfe0 interface should be around 900 Mbit/sec, but it was approximately 650 Mbit/sec.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffCFHuang_0-1729587368855.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/306101iDF1DE77DA3A8D341/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffCFHuang_0-1729587368855.png" alt="JeffCFHuang_0-1729587368855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I identify the bottleneck when transferring data through the pfe0 interface?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 09:00:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1979048#M11369</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2024-10-22T09:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Check the performance of the pfe0 interface</title>
      <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1980055#M11397</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for you post.&lt;/P&gt;
&lt;P&gt;May I know if you are working with S32G2 or G3? which version BSP you are using for the performance benchmark? Would you please share&amp;nbsp; more information?&lt;/P&gt;
&lt;P&gt;I just tested the TCP performance on RDB2 with BSP42, it could achieve the line rate of 1G port.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 09:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1980055#M11397</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2024-10-23T09:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Check the performance of the pfe0 interface</title>
      <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1980076#M11401</link>
      <description>&lt;P&gt;We are working with the S32G399 and BSP40, and using iperf3 as the client.&lt;BR /&gt;If we don't enable the ADC, the rate can reach approximately 950 Mbit/sec.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffCFHuang_0-1729676409869.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/306379iAD44BCC6447EA21A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffCFHuang_0-1729676409869.png" alt="JeffCFHuang_0-1729676409869.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The below command is how to enable adc.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;echo 1 &amp;gt; /sys/bus/iio/devices/iio:device1/scan_elements/in_voltage4_en
echo 4096 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/length
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/enable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 09:44:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1980076#M11401</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2024-10-23T09:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Check the performance of the pfe0 interface</title>
      <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1982620#M11476</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry that I did not reproduce the issue from my side, the logs are attached for your reference.&lt;/P&gt;
&lt;P&gt;May I know if there are additional setings for trigger such issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 03:32:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1982620#M11476</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2024-10-28T03:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Check the performance of the pfe0 interface</title>
      <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1983454#M11505</link>
      <description>&lt;P&gt;Hi Chenyin,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;After checking, the issue is not easily reproducible.&lt;/P&gt;&lt;P&gt;I’ve tried the following commands that are most likely to raise the situation.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;#!/bin/bash
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device1/scan_elements/in_voltage4_en
echo 4096 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/length
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/enable

echo 1 &amp;gt; /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage4_en
echo 4096 &amp;gt; /sys/bus/iio/devices/iio:device0/buffer/length
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device0/buffer/enable


echo 0 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/enable
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device1/buffer/enable

echo 0 &amp;gt; /sys/bus/iio/devices/iio:device0/buffer/enable
echo 1 &amp;gt; /sys/bus/iio/devices/iio:device0/buffer/enable

iperf3 -c 192.168.1.20 -t 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jeff Huang&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 04:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1983454#M11505</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2024-10-29T04:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Check the performance of the pfe0 interface</title>
      <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1984392#M11527</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for you reply.&lt;/P&gt;
&lt;P&gt;I have reproduced the issue with your script while running for several times, there may be 700-800 Mbps for 5-20 seconds during a 100 seconds test.&lt;/P&gt;
&lt;P&gt;I looked into the issue, in my opinion, it may caused by heavy load of irq handling during the test, A53 is not very powerful,&amp;nbsp; while doing iperf benchmark,&amp;nbsp;&amp;nbsp; there would be huge number of irqs to one core. Once enabling the ADC, there also be many irqs, if when the irqs are handled on one core, the benchmark results may be impact, but since the irqbalance is enabled by default, after several seconds, the irqs may be balanced to other cores, the load of cores that impact the TCP performance would be decreased so that the rest of testing results may keep reaching the line rate.&lt;/P&gt;
&lt;P&gt;If it is worried that the network throughput would be impacted, I suggest binding the corresponding irqs(PFE0) to a dedicated core, to avoid other impact of the system load.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 04:16:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1984392#M11527</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2024-10-30T04:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Check the performance of the pfe0 interface</title>
      <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1984631#M11532</link>
      <description>&lt;P&gt;Hi Chenyin,&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;Could you explain how to bind hardware resources to a specific core or group of cores?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jeff Huang&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 09:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1984631#M11532</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2024-10-30T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Check the performance of the pfe0 interface</title>
      <link>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1985159#M11539</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;From my experiece, firstly check the interrupts uses in your test, in this specific test, they are PFE0 and DMA, find the correponding irq number, and check if the affinity is supported under /proc/irq/XXX/smp_affinity. you may reference the following link for further reading:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.redhat.com/en/documentation/red_hat_enterprise_linux_for_real_time/7/html/tuning_guide/interrupt_and_process_binding#Interrupt_and_process_binding" target="_blank"&gt;https://docs.redhat.com/en/documentation/red_hat_enterprise_linux_for_real_time/7/html/tuning_guide/interrupt_and_process_binding#Interrupt_and_process_binding&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From my test, if not doing any tuning, the iperf test would reach 1G line rate after 5-20 seconds, due the irqbalance's help. If there are multiple tasks in the system, then maybe keep using irqbalance is still a good choice, since irq binding may impact other tasks running in the system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 02:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Check-the-performance-of-the-pfe0-interface/m-p/1985159#M11539</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2024-10-31T02:13:07Z</dc:date>
    </item>
  </channel>
</rss>

