[systemd-devel] [PATCH] rtnl: kernel receive buffer overrun error

Tom Gundersen teg at jklm.no
Thu Nov 27 09:56:14 PST 2014


Hi Alin,



On Thu, Nov 27, 2014 at 3:22 PM, Rauta, Alin <alin.rauta at intel.com> wrote:
> We got the following error when running systemd on a device  with many
> ports:
>
>
>
> "rtnl: kernel receive buffer overrun
> Event source 'rtnl-receive-message' returned error, disabling: No buffer
> space available"
>
> I think the kernel socket receive buffer queue should be increased. The
> default value is taken from:
> "/proc/sys/net/core/rmem_default", but we can overwrite it using SO_RCVBUF
> socket option.
>
> This is already done in networkd for other sockets.
> For example, the bus socket (sd-bus/bus-socket.c) has a receive queue of
> 8MB.
> In our case, the default is 208KB.
>
> Increasing the buffer receive queue for manager socket to 512KB should be
> enough to get rid of the above error.

To be on the safe side, I bumped the limit to 8M. Thanks for the patch! Applied.

Cheers,

Tom

PS
In the future, if you could send git-formatted patches rather than a
diff, it is simpler for me to apply them. Preferably using
git-send-email to make inline review easier.


More information about the systemd-devel mailing list