Skip to content

Commit 39395f3

Browse files
dgsudharsanxumia
authored andcommitted
[netlink] Increse netlink buffer size from 3MB to 16MB (sonic-net#13965)
#### Why I did it Following the PR sonic-net/sonic-swss-common#739 increasing netlink buffer size in linux kernel As error is seen in fdbsyncd with netlink reports "out of memory on reading a netlink socket" It is seen when kernel is sending 10k remote mac to fdbsyncd. #### How I did it Increase the buffer size of the netlink buffer from 3MB to 16MB #### How to verify it Verified with 10k remote mac, and restarting the fdbsyncd process. So that kernel send the bridge fdb dump to the fdbsyncd. Verified that the netlink buffer error is not reported in the sys log.
1 parent 8587af0 commit 39395f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/image_config/sysctl/sysctl-net.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ net.ipv6.conf.all.keep_addr_on_down=1
3434
net.ipv6.conf.eth0.keep_addr_on_down=1
3535
net.ipv4.tcp_l3mdev_accept=1
3636
net.ipv4.udp_l3mdev_accept=1
37-
net.core.rmem_max=3145728
38-
net.core.wmem_max=3145728
37+
net.core.rmem_max=16777216
38+
net.core.wmem_max=16777216
3939
net.core.somaxconn=512
4040
net.ipv4.fib_multipath_use_neigh=1

0 commit comments

Comments
 (0)