Under high load I observed that Netlink buffer constantly fills up for daemons querying Conntrack Table that has a lot of entries in it:
netlink_notifier|WARN|netlink receive buffer overflowed This patch mitigates the problem by increasing socket receive buffer size. Ideally we should try to calculate buffer size required, but it would be more sophisticated solution than simply increasing buffer size. Signed-off-by: Ansis Atteka <[email protected]> VMware-BZ: #2724821 --- lib/netlink-socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 47077e947..534bb5061 100644 --- a/lib/netlink-socket.c +++ b/lib/netlink-socket.c @@ -177,7 +177,7 @@ nl_sock_create(int protocol, struct nl_sock **sockp) sock->protocol = protocol; sock->next_seq = 1; - rcvbuf = 1024 * 1024; + rcvbuf = 1024 * 1024 * 4; #ifdef _WIN32 sock->rcvbuf = rcvbuf; retval = get_sock_pid_from_kernel(sock); -- 2.25.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
