Search This Blog

Tuesday, May 2, 2023

Debian network performance tweak

Increase network read and write buffer on debian/Ubuntu server:

Add 2 lines at the end of /etc/sysctl.conf:
# Socket Receive Buffer
net.core.rmem_max = 4194304
# Socket Send Buffer
net.core.wmem_max = 16777216
load the changes:
sudo sysctl -p

4194304 = 4 MB
16777216 = 16 MB

No comments:

Post a Comment