Skip to content

[netlink]Increse netlink buffer size from 3MB to 16MB#13965

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
dgsudharsan:netlink_buf_inc
Feb 27, 2023
Merged

[netlink]Increse netlink buffer size from 3MB to 16MB#13965
qiluo-msft merged 1 commit intosonic-net:masterfrom
dgsudharsan:netlink_buf_inc

Conversation

@dgsudharsan
Copy link
Copy Markdown
Collaborator

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.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@prsunny
Copy link
Copy Markdown
Contributor

prsunny commented Feb 23, 2023

lgtm, tagging @qiluo-msft

@kishorekunal01
Copy link
Copy Markdown
Contributor

Looks good

@dgsudharsan
Copy link
Copy Markdown
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@qiluo-msft can you please help to merge?

@qiluo-msft qiluo-msft merged commit 8883259 into sonic-net:master Feb 27, 2023
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Feb 28, 2023
#### 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.
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202205: #14027

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Mar 7, 2023
#### 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.
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202211: #14141

mssonicbld pushed a commit that referenced this pull request Mar 7, 2023
#### 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.
@dgsudharsan dgsudharsan deleted the netlink_buf_inc branch March 9, 2023 01:57
xumia pushed a commit to xumia/sonic-buildimage-1 that referenced this pull request Mar 10, 2023
#### 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants