Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2021 16:26:10 +0300
From:      Victor Gamov <vit@otcnet.ru>
To:        Eugene Grosbein <eugen@grosbein.net>, freebsd-net@freebsd.org
Subject:   Re: 'dropped due to full socket buffers' by SNMP
Message-ID:  <b8bb0e4a-4b2f-1ed7-fb1c-c0f2ea3fc6ba@otcnet.ru>
In-Reply-To: <8c80810d-b244-4bbc-d14c-0ca37348b5a5@grosbein.net>
References:  <388da9a7-7b89-89b2-54eb-17d0e818c924@otcnet.ru> <4e41c1d2-19bc-0345-0b03-526e4cb785c7@otcnet.ru> <b279e676-c789-2978-98a0-b8a4b164a111@grosbein.net> <a69d872a-f21e-de66-7677-58beccb0f023@otcnet.ru> <6c780827-e764-8053-356b-a921e0892c15@grosbein.net> <fef04bda-6aa0-4a80-8999-867b9f37d766@otcnet.ru> <7e51a6be-aea1-51c6-c0bd-10d00c19d5d3@grosbein.net> <888c8e91-c8f2-ad4b-9fcf-64c09432f2d5@otcnet.ru> <427b5ef6-9558-22ad-6088-c852bf234d13@otcnet.ru> <706bf341-01dd-f9f9-a5a8-afb8c34d5572@grosbein.net> <226279d6-7579-9441-9854-f238057abeb6@otcnet.ru> <b4415a8c-773c-a99f-0eb5-1198ed0399b6@grosbein.net> <fb5069f6-764a-f264-33cd-0798d1f25346@otcnet.ru> <8c80810d-b244-4bbc-d14c-0ca37348b5a5@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On 22.01.2021 16:09, Eugene Grosbein wrote:
> 22.01.2021 19:28, Victor Gamov wrote:
> 
>> On 22.01.2021 13:21, Eugene Grosbein wrote:
>>> 22.01.2021 17:02, Victor Gamov wrote:
>>>
>>>> No link overload: this host attached to network via 10G ix0, many
>>>> VLANs on this ix0 and some sender on every VLAN sends multicast
>>>> traffic to this host.  Total input traffic about 1Gbit/s
>>>
>>> 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


I have no visible problems with growing "dropped due to full socket 
buffers" but I think it's not well when this counter increasing.

-- 
CU,
Victor Gamov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b8bb0e4a-4b2f-1ed7-fb1c-c0f2ea3fc6ba>