`
itian
  • 浏览: 6118 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

How to improve the performance networking (TCP & UDP) on Linux 2.4+

阅读更多
Type: sysctl -p | grep mem
This will display your current buffer settings. Save These! You may want to roll-back these changes

Type: sysctl -w net.core.rmem_max=8388608
This sets the max OS receive buffer size for all types of connections.

Type: sysctl -w net.core.wmem_max=8388608
This sets the max OS send buffer size for all types of connections.

Type: sysctl -w net.core.rmem_default=65536
This sets the default OS receive buffer size for all types of connections.

Type: sysctl -w net.core.wmem_default=65536
This sets the default OS send buffer size for all types of connections.

iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -P PREROUTING ACCEPT
iptables -t mangle -P INPUT ACCEPT
iptables -t mangle -P FORWARD ACCEPT
iptables -t mangle -P OUTPUT ACCEPT
iptables -t mangle -P POSTROUTING ACCEPT
iptables -t mangle -F
iptables -t mangle -X
iptables -t filter -P INPUT ACCEPT
iptables -t filter -P FORWARD ACCEPT
iptables -t filter -P OUTPUT ACCEPT
iptables -t filter -F
iptables -t filter -X

sysctl -w net.core.rmem_max=40960000
sysctl -w net.core.wmem_max=40960000
sysctl -w net.core.rmem_default=65536
sysctl -w net.core.wmem_default=65536
sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608'
sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608'
sysctl -w net.ipv4.tcp_mem='8388608 8388608 8388608'
sysctl -w net.ipv4.route.flush=1

ulimit -n 10240
ulimit -a
sysctl -a |grep net.core
分享到:
评论

相关推荐

    A Map of the Networking Code in Linux Kernel 2.4

    传输层是网络通信的另一关键层面,报告详细介绍了TCP和UDP两种传输层协议在Linux内核2.4版本中的实现。TCP(传输控制协议)是一种面向连接的、可靠的传输层协议,其在网络数据传输中提供了错误检测、重传机制和流量...

    Prentice.Hall.Performance.Tuning.for.Linux.Servers

    You'll discover how to Install and configure Linux for maximum performance from the outset Evaluate and choose the right hardware architecture for your Linux environment Understand Linux kernels 2.4 ...

    TransportLayer_TCP_UDP

    - Performance issues can arise due to the nature of TCP and UDP. For instance, TCP’s guaranteed delivery mechanism can introduce latency, which may affect real-time applications like VoIP. On the ...

    linux howto中文合集

    LinuxDoc+Emacs+Ispell-HOWTO-html<br>Linux+DOS+Win95<br>Linux+FreeBSD-html<br>Linux+NT-Loader-html<br>META-FAQ-html<br>Modules<br>mul.c<br>Multiboot-with-LILO-html<br>Networking-Overview-...

    The.Linux.Networking.Architecture

    The Linux® Networking Architecture: Design and Implementation of Network Protocols in the Linux Kernel By Klaus Wehrle, Frank Pählke, Hartmut Ritter, Daniel Müller, Marc Bechler Publisher :...

    The_Linux_Networking_Architecture

    Design and Implementation of Network Protocols in the Linux Kernel Part I: The Linux Kernel 1 Chapter 1. Motivation 3 Section 1.1. The Linux Operating System 4 Section 1.2. What is Linux? 5 ...

    The Linux TCP IP Stack Networking for Embedded Systems.rar

    《Linux TCP/IP Stack Networking for Embedded Systems》是针对嵌入式系统设计的一份深入解析Linux网络协议栈的重要资源。这份资料详细介绍了Linux操作系统中用于处理网络通信的核心组件——TCP/IP协议栈,涵盖了从...

    The Linux TCP IP Stack Networking for Embedded Systems

    ### 关于《Linux TCP/IP协议栈:嵌入式系统的网络技术》 #### 一、概述 本书《Linux TCP/IP协议栈:嵌入式系统的网络技术》由Thomas F. Herbert撰写,于2004年由Charles River Media出版社出版,共计600页。该书...

    Linux Howto 中文文档

    META-FAQ (7KB) 一份有用资讯来源的列表 Networking-HOWTO (20KB) 针对 Linux 作业系统的网路能力提出一个概观的说明 News-HOWTO (20KB) 如何设定、维护在 Linux 系统下的 USENET News 伺服器 ...

    CompTIA Linux+ Exam LX0-103 and Exam LX0-104, 3rd Edition

    of the objectives on both exam LX0-103 and exam LX0-104, this study guide provides clear, concise information on all aspects of Linux administration, with a focus on the latest version of the exam....

    The Linux Networking Architecture

    This book deals with the architecture ... In addition, existing protocols, such as the TCP transport protocol, were modified to improve their behavior and adapt them to the new situation in the Internet.

    The Linux Networking Architecture.chm

    The Linux Networking Architecture.chm

    The Linux Networking Architecture.rar

    这个压缩包包含的"The Linux Networking Architecture.chm"文件,很显然是该主题的详细指南,涵盖了Linux操作系统中网络设计和实现的核心概念。 Linux网络架构是Linux内核的一个重要组成部分,它负责处理系统的网络...

    Mastering+Python+Networking-Packt+Publishing(2017).pdf

    the basics of the OSI model, the TCP and UDP operations, IP headers, and more such. This chapter will do a very quick revision on the relevant networking topics. In the same view, we will also do a ...

    Linux How To

    "Linux How To"通常是指一系列针对Linux操作系统的教程或指南,旨在帮助用户更好地理解和使用这个平台。这里列出的压缩包文件包含了多个主题的HOWTO文档,都是关于Linux特定领域的详细指南。 1. **PPP-HOWTO-...

    linux2.4内核配置选项

    ### Linux 2.4 内核配置选项详解 #### 一、引言 本文将详细介绍 Linux 2.4 内核配置过程中所涉及的关键选项及其功能。Linux 2.4 是一个重要的里程碑版本,在服务器领域有着广泛的应用。通过合理配置内核选项,可以...

    Networking Essentials: A CompTIA Network+ N10-006 Textbook, 4th Edition

    Thoroughly updated to reflect the CompTIA Network+ N10-006 exam, Networking Essentials, Fourth Edition is a practical, up-to-date, and hands-on guide to the basics of networking. Written from the ...

Global site tag (gtag.js) - Google Analytics