Mitigations/tunables for reducing netlink loss?

Alexander aldem-bird.201704 at nk7.net
Tue Sep 21 16:25:56 CEST 2021


On 2021-09-21 09:53, Maria Matejka wrote:

> Here somebody suggests increasing net.core.rmem_default before starting 
> BIRD.
> 
> https://bird.network.cz/pipermail/bird-users/2017-September/011541.html

Why not add an option with socket buffer size and force for netlink 
socket when specified? Like:

   setsockopt(fd, SOL_SOCKET, SO_RCVBUFFORCE, &buffer_size, 
sizeof(buffer_size));

SO_RCVBUFFORCE (available in kernels since 2.6.14) ignores limits in 
net.core.rmem_max
so there is no need to mangle with settings, especially default settings 
(rmem_default)
as it will affect *all* applications.

Those who are lucky enough to run recent kernels without bugs could 
simply start bird
with custom buffer size.

/Al


More information about the Bird-users mailing list