Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2023 21:25:38 +0200
From:      "M. Mader" <mma@darktemple.ch>
To:        freebsd-net@freebsd.org
Subject:   Re: openvpn and no buffer space available (13.2-stable)
Message-ID:  <03637CE3-1FA4-4900-AFCE-3D2AE8AE5DD5@darktemple.ch>
In-Reply-To: <ZQyIgukcwuHbAhLr@int21h>
References:  <ZQyIgukcwuHbAhLr@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 21=2E September 2023 20:16:34 MESZ schrieb void <void@f-m=2Efm>:
>Hello @net,
>
>tl;dr : is there anything specific to freebsd that needs to be set
>in order for openvpn to perform well? What buffer space is ping
>complaining about?
>
>context is recent 13=2E2 stable, on amd64, and it's a bhyve guest=2E
>The openvpn client uses UDP, on tun0=2E
>
>The problem is that when the connection becomes heavily
>used, the client end finds that sites that would normally
>immediately load often wont; one has to sit there clicking
>multiple times to get any site to load=2E
>
>ping shows this:
>
>64 bytes from 93=2E184=2E216=2E34: icmp_seq=3D37 ttl=3D53 time=3D147=2E40=
7 ms
>ping: sendto: No buffer space available
>64 bytes from 93=2E184=2E216=2E34: icmp_seq=3D40 ttl=3D53 time=3D174=2E73=
8 ms
>64 bytes from 93=2E184=2E216=2E34: icmp_seq=3D41 ttl=3D53 time=3D119=2E04=
8 ms
>64 bytes from 93=2E184=2E216=2E34: icmp_seq=3D42 ttl=3D53 time=3D169=2E22=
3 ms
>ping: sendto: No buffer space available
>64 bytes from 93=2E184=2E216=2E34: icmp_seq=3D44 ttl=3D53 time=3D183=2E49=
3 ms
>64 bytes from 93=2E184=2E216=2E34: icmp_seq=3D45 ttl=3D53 time=3D162=2E59=
4 ms
>^C
>--- example=2Eorg ping statistics ---
>46 packets transmitted, 36 packets received, 21=2E7% packet loss
>round-trip min/avg/max/stddev =3D 118=2E258/156=2E360/184=2E931/19=2E508 =
ms
>
>I've ran mtu-test on the client, which gives these results
>
>Empirical MTU test completed [Tried,Actual] local->remote=3D[1455,1455] r=
emote->local=3D[1427,1427]
>
>in /etc/sysctl=2Econf, I've changed these values:
>
>net=2Einet=2Eudp=2Erecvspace=3D524288
>kern=2Eipc=2Eshm_use_phys=3D1
>net=2Einet=2Etcp=2Esendspace=3D524288
>net=2Einet=2Etcp=2Erecvspace=3D524288
>net=2Einet=2Etcp=2Erfc1323=3D1
>net=2Einet=2Etcp=2Ealways_keepalive=3D0
>kern=2Eipc=2Esoacceptqueue=3D524288
>
>in /boot/loader=2Econf, these:
>
>kern=2Emaxusers=3D"4096"
>vm=2Evnode_pbufs=3D"10240"
>kern=2Eipc=2Enmbclusters=3D"5000000"
>
>tia,

I run OpenVPN without any such problems=2E My sysctl=2Econf as well as my =
loader=2Econf are pretty much default=2E

I'd try what happens without vm=2Evnode_pbufs=3D"10240"

Regards,
Mathias



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03637CE3-1FA4-4900-AFCE-3D2AE8AE5DD5>