raiden00pl opened a new pull request, #22213:
URL: https://github.com/apache/nuttx/pull/22213

     ## Summary
     
     net_iob_concat() packed the whole read-ahead chain for each received
     packet.  After a read the first buffer has an offset, so all queued data
     was moved again and the cost per packet grew with the queue.  Pack only
     from the last buffer of iob1.
     
     ## Impact
     
     Receive with CONFIG_NET_RECV_PACK=y (default).  No API change.
     
     ## Testing
     
     nucleo-f767zi:netnsh + CONFIG_NETUTILS_IPERF=y, CONFIG_NETINIT_DHCPC=y,
     CONFIG_NET_ETH_PKTSIZE=1514, CONFIG_IOB_NBUFFERS=200.
     Board `iperf -s -u -i 1 -t 14`, host `iperf -u -c <board> -b 50M -t 10`.
     
     master:
            
            0.00-   1.01 sec    1637580 Bytes   12.97 Mbits/sec
            1.01-   2.02 sec     949620 Bytes    7.52 Mbits/sec
            2.02-   3.03 sec     948150 Bytes    7.51 Mbits/sec
            3.03-   4.04 sec     948150 Bytes    7.51 Mbits/sec
            4.04-   5.05 sec     948150 Bytes    7.51 Mbits/sec
            5.05-   6.06 sec    1458240 Bytes   11.55 Mbits/sec
            6.06-   7.07 sec    2238810 Bytes   17.73 Mbits/sec
            7.07-   8.08 sec    2240280 Bytes   17.74 Mbits/sec
            8.08-   9.09 sec     158760 Bytes    1.26 Mbits/sec
            9.09-  10.10 sec    2296140 Bytes   18.19 Mbits/sec
     
     with this commit:
            
            0.00-   1.01 sec    3860220 Bytes   30.58 Mbits/sec
            1.01-   2.02 sec    3901380 Bytes   30.90 Mbits/sec
            2.02-   3.03 sec    3895500 Bytes   30.86 Mbits/sec
            3.03-   4.04 sec    3873450 Bytes   30.68 Mbits/sec
            4.04-   5.05 sec    3857280 Bytes   30.55 Mbits/sec
            5.05-   6.06 sec    3857280 Bytes   30.55 Mbits/sec
            6.06-   7.07 sec    3857280 Bytes   30.55 Mbits/sec
            7.07-   8.08 sec    3867570 Bytes   30.63 Mbits/sec
            8.08-   9.09 sec    3839640 Bytes   30.41 Mbits/sec
            9.09-  10.10 sec    3482430 Bytes   27.58 Mbits/sec


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to