hi,

on linux we are losing packets too.

should get 77515 udp and got  77500  (datagram_received)

2016-06-10 07:58:31,115 [INFO] [573] 
 __________________________________________
2016-06-10 07:58:31,116 [INFO] [574]
2016-06-10 07:58:31,116 [INFO] [575]  Total udp from fns: 77500 , queue 
size: 0
2016-06-10 07:58:31,121 [INFO] [469]  Got 77500 json report from 
elasticsearch


statistics on ethernet:

[root@localhost ~]# ethtool -S em2
NIC statistics:
     rx_bytes: 66615299
     rx_error_bytes: 0
     tx_bytes: 54350283
     tx_error_bytes: 0
     rx_ucast_packets: 203121
     rx_mcast_packets: 0
     rx_bcast_packets: 25
     tx_ucast_packets: 125729
     tx_mcast_packets: 28
     tx_bcast_packets: 1
     tx_mac_errors: 0
     tx_carrier_errors: 0
     rx_crc_errors: 0
     rx_align_errors: 0
     tx_single_collisions: 0
     tx_multi_collisions: 0
     tx_deferred: 0
     tx_excess_collisions: 0
     tx_late_collisions: 0
     tx_total_collisions: 0
     rx_fragments: 0
     rx_jabbers: 0
     rx_undersize_packets: 0
     rx_oversize_packets: 0
     rx_64_byte_packets: 676
     rx_65_to_127_byte_packets: 62807
     rx_128_to_255_byte_packets: 24
     rx_256_to_511_byte_packets: 93093
     rx_512_to_1023_byte_packets: 46522
     rx_1024_to_1522_byte_packets: 24
     rx_1523_to_9022_byte_packets: 0
     tx_64_byte_packets: 152
     tx_65_to_127_byte_packets: 732
     tx_128_to_255_byte_packets: 321
     tx_256_to_511_byte_packets: 62227
     tx_512_to_1023_byte_packets: 62165
     tx_1024_to_1522_byte_packets: 161
     tx_1523_to_9022_byte_packets: 0
     rx_xon_frames: 0
     rx_xoff_frames: 0
     tx_xon_frames: 0
     tx_xoff_frames: 0
     rx_mac_ctrl_frames: 0
     rx_filtered_packets: 943
     rx_ftq_discards: 0
     rx_discards: 0
     rx_fw_discards: 0


+++
cpu/mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
 2627 root      20   0   80364  56304   3368 S  4.0  1.7   2:20.95 python


and packet size are allways ,len  411 or 506 bytes:

08:10:58.770917 IP 10.52.33.139.59999 > 10.52.39.144.58634: UDP, length 411
08:10:58.776343 IP 10.52.33.139.59999 > 10.52.39.144.58634: UDP, length 506

this buffer:
 rx_256_to_511_byte_packets: 93093


++++

and it is clear that kernel will start dropping if application not able to 
receive , after start recording to text file (putty session) , then tcpdump 
will start losing packets.

[root@localhost ~]# tcpdump -i em2 -f "port 59999 and len > 100"

2384 packets captured
3004 packets received by filter
612 packets dropped by kernel
[root@localhost ~]#


regards!
Valdemar

Reply via email to