Vrolijk / OSDD

Sharing ideas about using data diodes
Apache License 2.0
29 stars 10 forks source link

Linux network buffers example #1

Closed Vrolijk closed 2 years ago

Vrolijk commented 2 years ago

Just a reminder and link

adjust memory to 1.677MB – endless memory :-)

net.core.rmem_max=1677721600 net.core.rmem_default=167772160 net.core.wmem_max=1677721600 net.core.wmem_default=167772160 net.core.optmem_max= 2048000

set minimum size, initial size, and maximum size in bytes

net.ipv4.tcp_rmem= 1024000 8738000 1677721600 net.ipv4.tcp_wmem= 1024000 8738000 1677721600 net.ipv4.tcp_mem= 1024000 8738000 1677721600 net.ipv4.udp_mem= 1024000 8738000 1677721600

The server is now allocating about 500MB to network buffer and everything is running very well.

Source: https://www.cyberciti.biz/faq/linux-tcp-tuning/