-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set sock rx Buf size to 3MB. #5566
Conversation
@@ -34,6 +34,6 @@ net.ipv6.conf.all.keep_addr_on_down=1 | |||
net.ipv6.conf.eth0.keep_addr_on_down=1 | |||
net.ipv4.tcp_l3mdev_accept=1 | |||
net.ipv4.udp_l3mdev_accept=1 | |||
net.core.rmem_max=2097152 | |||
net.core.rmem_max=3145728 | |||
net.core.wmem_max=2097152 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to update the wmem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can increase both values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can increase the send buffer size to 3M. Updated PR with the changes.
in 201911 branch images sometimes see netlink out of memory error log, it would be good to cherry-pick this to 201911
|
@abdosi would you please help to cherry-pick this to 201911? |
* Set sock rx Buf size to 3MB.
* Set sock rx Buf size to 3MB.
- Why I did it
netlink out of memory seen for 8K neighbor updates.
- How I did it
Config IP to 2 interfaces connected to ixia. Ethernet1 (21.0.0.1/16) and Ethernet4 (24.1.1.1/24)
DUT copp rules are as ARP CIR=2000 and IP2ME CIR=6000
Start Continuous Traffic (5G) is started from ixia connected to Ethernet4 with the DIP matching with the 8K ARP Host Range before learning ARP entries. These traffic will be software forwarded from linux kernel.
DUT is configured to learn ARP through ARP Reply packets
echo 1 > /proc/sys/net/ipv4/conf/Ethernet1/arp_accept
Start continuous ARP Reply Packet is sent from IXIA connected to Ethernet1 Port at 2K Packet/Secs with Host IP starting from 20.20.0.2 and Incrementing for 8K.
After step (5), expectation is all 5G traffic must be forwarded from ASIC but not all NEIGH entries are updated to APP_DB and ASIC_DB because of out of memory error.
- How to verify it
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)