22.01.2021 20:26, Victor Gamov wrote:

>>>> What FreeBSD version do you use currently? Do you use IPv6 for UDP or
>>>> IPv4 only?
>>>
>>>
>>> FreeBSD 12.2-STABLE r366543 GENERIC  amd64
>>>
>>> UDP-4 only
>>
>> In case of IPv4 UDP the counter "dropped due to full socket buffers"
>> is increased for incoming packets only. Therefore, the problem is in a code
>> processing incoming stream(s): either it locks for long time on something,
>> or it just has no enough raw CPU horsepower to deal with incoming stream.
>>
>> Look at "top -SHPI" CPU counters, if your CPU cores are loaded evenly;
> 
> it's CPU E3-1270 v6 @ 3.80GHz with WCPU about 60% idle + 9% 
> kernel{if_io_tqg_X) + 5% intr{swi1: netisr X).  And many processes about 1% 
> WCPU for multicast receive/resend (one for every multicast)
> 
> Also "netstat -na -p udp" shows me zero or very small Recv-Q
> 
>> if some of cores became overloaded sometimes. You should also draw per-cpu 
>> load graphs.
>> (f.e. sysctl kern.cp_times)
> 
> I have SNMP stats and it show me about 40% load

There is no standard MIBs to show per-core load. You get only an average via 
standard SNMP MIBs
and average can be misleading and hide 100% load of some cores.

If you really have no overloaded cores, then this should be locking problem 
that prevents processing code
to do its job timely.



_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to