FreeBSD problems and preliminary ways to solve
Robert N. M. Watson
rwatson at FreeBSD.org
Fri Aug 19 09:36:33 UTC 2011
On 19 Aug 2011, at 10:05, Slawa Olhovchenkov wrote:
>> Is the issue here that FreeBSD is dropping more packes, or just that FreeBSD
>> is reporting that it drops packets? Historically, we've returned ENOBUFS from
>> datagram sockets when the interface queue is overflowed, but some other
>> systems (most noticeably Linux) simply return success when they drop a packet
>> on an outgoing interface queue. You can debate which is the better model, but
>> one impact is that sometimes people report errors on FreeBSD that they don't
>> see on Linux -- when actually, the same failure is present, we just allow the
>> application to learn about it.
>
> Historically, Linux on datagram (UDP) socket allow use select, FreeBSD
> -- don't allow. FreeBSD always report 'UDP socket ready to transmit'.
> And after try to send packet -- 'oops, ENOBUFS'.
And if you have two consumers sending UDP on Linux, they both get unreported 50% packet loss, to my understanding?
Robert
More information about the freebsd-arch
mailing list