Part Number: AM4372
Other Parts Discussed in Thread: AM3358
Hi Sitara support Team,
Regarding UDP communication of "20KB data TX/RX",
it runs simultaneously on LAN 2ch, and there is the packet loss occurs immediately.
When it runs on LAN 1ch, there is no the packet loss.
Here is the log of ethtool, it shows that “Rx Start of Frame Overruns” was counted up.
root@am437x-evm:/mnt/sd2/home/avaldata# /mnt/sd1/ethtool -S eth1
NIC statistics:
Good Rx Frames: 138811
Broadcast Rx Frames: 259
Multicast Rx Frames: 233
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 207682493
Good Tx Frames: 138401
Broadcast Tx Frames: 112
Multicast Tx Frames: 26
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 207515027
Rx + Tx 64 Octet Frames: 135
Rx + Tx 65-127 Octet Frames: 222
Rx + Tx 128-255 Octet Frames: 66
Rx + Tx 256-511 Octet Frames: 233
Rx + Tx 512-1023 Octet Frames: 196
Rx + Tx 1024-Up Octet Frames: 276360
Net Octets: 415197520
Rx Start of Frame Overruns: 3
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan 0: head_enqueue: 1
Rx DMA chan 0: tail_enqueue: 138830
Rx DMA chan 0: pad_enqueue: 0
Rx DMA chan 0: misqueued: 0
Rx DMA chan 0: desc_alloc_fail: 0
Rx DMA chan 0: pad_alloc_fail: 0
Rx DMA chan 0: runt_receive_buf: 0
Rx DMA chan 0: runt_transmit_bu: 0
Rx DMA chan 0: empty_dequeue: 0
Rx DMA chan 0: busy_dequeue: 10134
Rx DMA chan 0: good_dequeue: 138575
Rx DMA chan 0: requeue: 0
Rx DMA chan 0: teardown_dequeue: 0
Tx DMA chan 0: head_enqueue: 13932
Tx DMA chan 0: tail_enqueue: 124469
Tx DMA chan 0: pad_enqueue: 0
Tx DMA chan 0: misqueued: 65287
Tx DMA chan 0: desc_alloc_fail: 0
Tx DMA chan 0: pad_alloc_fail: 0
Tx DMA chan 0: runt_receive_buf: 0
Tx DMA chan 0: runt_transmit_bu: 64
Tx DMA chan 0: empty_dequeue: 13932
Tx DMA chan 0: busy_dequeue: 117301
Tx DMA chan 0: good_dequeue: 138401
Tx DMA chan 0: requeue: 46439
Tx DMA chan 0: teardown_dequeue: 0
After it has increased the buffer referring to the below site,
it does not improve.
http://wiki.tiprocessors.com/index.php/Reducing_UDP_receive_packet_loss_on_AM3x/4x/5x_Class_devices
cat /proc/sys/net/core/rmem_max
180224
cat /proc/sys/net/core/rmem_default
180224
sysctl -w net.core.netdev_max_backlog=20000
sysctl -w net.ipv4.udp_mem='17565 87380 50331648'
sysctl -w net.core.rmem_max=50331648
sysctl -w net.core.rmem_default=50331648
sysctl -w net.ipv4.route.flush=1
cat /proc/sys/net/core/rmem_max
50331648
cat /proc/sys/net/core/rmem_default
50331648
cat /proc/net/snmp
Ip: Forwarding DefaultTTL InReceives InHdrErrors InAddrErrors ForwDatagrams InUnknownProtos InDiscards InDelivers OutRequests OutDiscards OutNoRoutes ReasmTimeout ReasmReqds ReasmOKs ReasmFails FragOKs FragFails FragCreates
Ip: 2 64 101640 0 2 0 0 0 7415 7347 0 0 1 101470 7247 1 7249 0 101486
Icmp: InMsgs InErrors InCsumErrors InDestUnreachs InTimeExcds InParmProbs InSrcQuenchs InRedirects InEchos InEchoReps InTimestamps InTimestampReps InAddrMasks InAddrMaskReps OutMsgs OutErrors OutDestUnreachs OutTimeExcds OutParmProbs OutSrcQuenchs OutRedirects OutEchos OutEchoReps OutTimestamps OutTimestampReps OutAddrMasks OutAddrMaskReps
Icmp: 3 0 0 1 0 0 0 0 0 2 0 0 0 0 3 0 0 1 0 0 0 2 0 0 0 0 0
IcmpMsg: InType0 InType3 OutType8 OutType11
IcmpMsg: 2 1 2 1
Tcp: RtoAlgorithm RtoMin RtoMax MaxConn ActiveOpens PassiveOpens AttemptFails EstabResets CurrEstab InSegs OutSegs RetransSegs InErrs OutRsts InCsumErrors
Tcp: 1 200 120000 -1 0 1 0 0 1 99 93 0 0 0 0
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti
Udp: 7247 0 0 7251 0 0 0 66
UdpLite: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti
UdpLite: 0 0 0 0 0 0 0 0
ethtool -S eth0
NIC statistics:
Good Rx Frames: 101673
Broadcast Rx Frames: 77
Multicast Rx Frames: 17
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 152377162
Good Tx Frames: 101631
Broadcast Tx Frames: 23
Multicast Tx Frames: 22
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 152398931
Rx + Tx 64 Octet Frames: 100
Rx + Tx 65-127 Octet Frames: 118
Rx + Tx 128-255 Octet Frames: 85
Rx + Tx 256-511 Octet Frames: 41
Rx + Tx 512-1023 Octet Frames: 2
Rx + Tx 1024-Up Octet Frames: 202958
Net Octets: 304776093
Rx Start of Frame Overruns: 2
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan 0: head_enqueue: 1
Rx DMA chan 0: tail_enqueue: 103701
Rx DMA chan 0: pad_enqueue: 0
Rx DMA chan 0: misqueued: 0
Rx DMA chan 0: desc_alloc_fail: 0
Rx DMA chan 0: pad_alloc_fail: 0
Rx DMA chan 0: runt_receive_buf: 0
Rx DMA chan 0: runt_transmit_bu: 0
Rx DMA chan 0: empty_dequeue: 0
Rx DMA chan 0: busy_dequeue: 7378
Rx DMA chan 0: good_dequeue: 101654
Rx DMA chan 0: requeue: 0
Rx DMA chan 0: teardown_dequeue: 0
Tx DMA chan 0: head_enqueue: 12966
Tx DMA chan 0: tail_enqueue: 88665
Tx DMA chan 0: pad_enqueue: 0
Tx DMA chan 0: misqueued: 59333
Tx DMA chan 0: desc_alloc_fail: 0
Tx DMA chan 0: pad_alloc_fail: 0
Tx DMA chan 0: runt_receive_buf: 0
Tx DMA chan 0: runt_transmit_bu: 16
Tx DMA chan 0: empty_dequeue: 12966
Tx DMA chan 0: busy_dequeue: 82284
Tx DMA chan 0: good_dequeue: 101631
Tx DMA chan 0: requeue: 17455
Tx DMA chan 0: teardown_dequeue: 0
ethtool -S eth1
NIC statistics:
Good Rx Frames: 101675
Broadcast Rx Frames: 79
Multicast Rx Frames: 17
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 152377854
Good Tx Frames: 101633
Broadcast Tx Frames: 25
Multicast Tx Frames: 22
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 152399623
Rx + Tx 64 Octet Frames: 100
Rx + Tx 65-127 Octet Frames: 118
Rx + Tx 128-255 Octet Frames: 85
Rx + Tx 256-511 Octet Frames: 45
Rx + Tx 512-1023 Octet Frames: 2
Rx + Tx 1024-Up Octet Frames: 202958
Net Octets: 304777477
Rx Start of Frame Overruns: 2
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan 0: head_enqueue: 1
Rx DMA chan 0: tail_enqueue: 103703
Rx DMA chan 0: pad_enqueue: 0
Rx DMA chan 0: misqueued: 0
Rx DMA chan 0: desc_alloc_fail: 0
Rx DMA chan 0: pad_alloc_fail: 0
Rx DMA chan 0: runt_receive_buf: 0
Rx DMA chan 0: runt_transmit_bu: 0
Rx DMA chan 0: empty_dequeue: 0
Rx DMA chan 0: busy_dequeue: 7380
Rx DMA chan 0: good_dequeue: 101656
Rx DMA chan 0: requeue: 0
Rx DMA chan 0: teardown_dequeue: 0
Tx DMA chan 0: head_enqueue: 12968
Tx DMA chan 0: tail_enqueue: 88665
Tx DMA chan 0: pad_enqueue: 0
Tx DMA chan 0: misqueued: 59333
Tx DMA chan 0: desc_alloc_fail: 0
Tx DMA chan 0: pad_alloc_fail: 0
Tx DMA chan 0: runt_receive_buf: 0
Tx DMA chan 0: runt_transmit_bu: 16
Tx DMA chan 0: empty_dequeue: 12968
Tx DMA chan 0: busy_dequeue: 82284
Tx DMA chan 0: good_dequeue: 101633
Tx DMA chan 0: requeue: 17455
Tx DMA chan 0: teardown_dequeue: 0
cat /proc/sys/net/core/rmem_max
180224
cat /proc/sys/net/core/rmem_default
180224
sysctl -w net.core.netdev_max_backlog=20000
sysctl -w net.ipv4.udp_mem='17565 87380 50331648'
sysctl -w net.core.rmem_max=50331648
sysctl -w net.core.rmem_default=50331648
sysctl -w net.ipv4.route.flush=1
cat /proc/sys/net/core/rmem_max
50331648
cat /proc/sys/net/core/rmem_default
50331648
cat /proc/net/snmp
Ip: Forwarding DefaultTTL InReceives InHdrErrors InAddrErrors ForwDatagrams InUnknownProtos InDiscards InDelivers OutRequests OutDiscards OutNoRoutes ReasmTimeout ReasmReqds ReasmOKs ReasmFails FragOKs FragFails FragCreates
Ip: 2 64 6071342 0 36 0 0 0 434116 433804 0 0 0 6070820 433630 0 433632 0 6070848
Icmp: InMsgs InErrors InCsumErrors InDestUnreachs InTimeExcds InParmProbs InSrcQuenchs InRedirects InEchos InEchoReps InTimestamps InTimestampReps InAddrMasks InAddrMaskReps OutMsgs OutErrors OutDestUnreachs OutTimeExcds OutParmProbs OutSrcQuenchs OutRedirects OutEchos OutEchoReps OutTimestamps OutTimestampReps OutAddrMasks OutAddrMaskReps
Icmp: 3 0 0 1 0 0 0 0 0 2 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0
IcmpMsg: InType0 InType3 OutType8
IcmpMsg: 2 1 2
Tcp: RtoAlgorithm RtoMin RtoMax MaxConn ActiveOpens PassiveOpens AttemptFails EstabResets CurrEstab InSegs OutSegs RetransSegs InErrs OutRsts InCsumErrors
Tcp: 1 200 120000 -1 0 1 0 0 1 296 168 0 0 0 0
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti
Udp: 433630 0 0 433634 0 0 0 187
UdpLite: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti
UdpLite: 0 0 0 0 0 0 0 0
ethtool -S eth0
NIC statistics:
Good Rx Frames: 5162432
Broadcast Rx Frames: 213
Multicast Rx Frames: 35
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 3455344626
Good Tx Frames: 5162172
Broadcast Tx Frames: 79
Multicast Tx Frames: 26
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 3455316695
Rx + Tx 64 Octet Frames: 266
Rx + Tx 65-127 Octet Frames: 294
Rx + Tx 128-255 Octet Frames: 60
Rx + Tx 256-511 Octet Frames: 159
Rx + Tx 512-1023 Octet Frames: 0
Rx + Tx 1024-Up Octet Frames: 10323825
Net Octets: 2615694025
Rx Start of Frame Overruns: 0
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan 0: head_enqueue: 1
Rx DMA chan 0: tail_enqueue: 5164444
Rx DMA chan 0: pad_enqueue: 0
Rx DMA chan 0: misqueued: 0
Rx DMA chan 0: desc_alloc_fail: 0
Rx DMA chan 0: pad_alloc_fail: 0
Rx DMA chan 0: runt_receive_buf: 0
Rx DMA chan 0: runt_transmit_bu: 0
Rx DMA chan 0: empty_dequeue: 0
Rx DMA chan 0: busy_dequeue: 369008
Rx DMA chan 0: good_dequeue: 5162397
Rx DMA chan 0: requeue: 0
Rx DMA chan 0: teardown_dequeue: 0
Tx DMA chan 0: head_enqueue: 719707
Tx DMA chan 0: tail_enqueue: 4442465
Tx DMA chan 0: pad_enqueue: 0
Tx DMA chan 0: misqueued: 3192404
Tx DMA chan 0: desc_alloc_fail: 0
Tx DMA chan 0: pad_alloc_fail: 0
Tx DMA chan 0: runt_receive_buf: 0
Tx DMA chan 0: runt_transmit_bu: 112
Tx DMA chan 0: empty_dequeue: 719707
Tx DMA chan 0: busy_dequeue: 4053684
Tx DMA chan 0: good_dequeue: 5162172
Tx DMA chan 0: requeue: 807055
Tx DMA chan 0: teardown_dequeue: 0
ethtool -S eth1
NIC statistics:
Good Rx Frames: 6331870
Broadcast Rx Frames: 229
Multicast Rx Frames: 41
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 916043319
Good Tx Frames: 6331595
Broadcast Tx Frames: 95
Multicast Tx Frames: 26
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 916038844
Rx + Tx 64 Octet Frames: 355
Rx + Tx 65-127 Octet Frames: 363
Rx + Tx 128-255 Octet Frames: 70
Rx + Tx 256-511 Octet Frames: 191
Rx + Tx 512-1023 Octet Frames: 1
Rx + Tx 1024-Up Octet Frames: 12662485
Net Octets: 1832082163
Rx Start of Frame Overruns: 0
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan 0: head_enqueue: 1
Rx DMA chan 0: tail_enqueue: 6333876
Rx DMA chan 0: pad_enqueue: 0
Rx DMA chan 0: misqueued: 0
Rx DMA chan 0: desc_alloc_fail: 0
Rx DMA chan 0: pad_alloc_fail: 0
Rx DMA chan 0: runt_receive_buf: 0
Rx DMA chan 0: runt_transmit_bu: 0
Rx DMA chan 0: empty_dequeue: 0
Rx DMA chan 0: busy_dequeue: 452619
Rx DMA chan 0: good_dequeue: 6331829
Rx DMA chan 0: requeue: 0
Rx DMA chan 0: teardown_dequeue: 0
Tx DMA chan 0: head_enqueue: 860423
Tx DMA chan 0: tail_enqueue: 5471172
Tx DMA chan 0: pad_enqueue: 0
Tx DMA chan 0: misqueued: 3955236
Tx DMA chan 0: desc_alloc_fail: 0
Tx DMA chan 0: pad_alloc_fail: 0
Tx DMA chan 0: runt_receive_buf: 0
Tx DMA chan 0: runt_transmit_bu: 126
Tx DMA chan 0: empty_dequeue: 860423
Tx DMA chan 0: busy_dequeue: 5022846
Tx DMA chan 0: good_dequeue: 6331595
Tx DMA chan 0: requeue: 978993
Tx DMA chan 0: teardown_dequeue: 0
Does it need to tuning the buffer size on the kernel?
I would appreciate any advise to this issue.
Best regards,
kanae
