易截截图软件、单文件、免安装、纯绿色、仅160KB

Tuning TCP for Linux 2.4 and 2.6

Tuning TCP for Linux 2.4 and 2.6
NB: Recent versions of Linux (version 2.6.17 and later) have full autotuning with 4 MB maximum buffer sizes. Except in some rare cases, manual tuning is unlikely to substantially improve the performance of these kernels over most network paths, and is not generally recommended
Since autotuning and large default buffer sizes were released progressively over a succession of different kernel versions, it is best to inspect and only adjust the tuning as needed. When you upgrade kernels, you may want to consider removing any local tuning.
All system parameters can be read or set by accessing special files in the /proc file system. E.g.:
1
cat /proc/sys/net/ipv4/tcp_moderate_rcvbuf
If the parameter tcp_moderate_rcvbuf is present and has value 1 then autotuning is in effect. With autotuning, the receiver buffer size (and TCP window size) is dynamically updated (autotuned) for each connection. (Sender side autotuning has been present and unconditionally enabled for many years now).
The per connection memory space defaults are set with two 3 element arrays:
1
2
/proc/sys/net/ipv4/tcp_rmem - memory reserved for TCP rcv buffers
/proc/sys/net/ipv4/tcp_wmem - memory reserved for TCP snd buffers
These are arrays of three values: minimum, initial and maximum buffer size. They are used to set the bounds on autotuning and balance memory usage while under memory stress. Note that these are controls on the actual memory usage (not just TCP window size) and include memory used by the socket data structures as well as memory wasted by short packets in large buffers. The maximum values have to be larger than the BDP of the path by some suitable overhead.
With autotuning, the middle value just determines the initial buffer size. It is best to set it to some optimal value for typical small flows. With autotuning, excessively large initial buffer waste memory and can even hurt performance.
If autotuning is not present (Linu


相关文档:

怎么在Linux中添加新的系统调用

      系统调用是应用程式和操作系统内核之间的功能接口。其主要目的是使得用户
能使用操作系统提供的有关设备管理、输入/输入系统、文件系统和进程控制、
通信及存储管理等方面的功能,而不必了解系统程式的内部结构和有关硬件细
节,从而起到减轻用户负担和保护系统及提高资源利用率的作用。 ......

Linux 系统目录功能说明

“/”根目录
包含基本的操作系统和维护工具。这个目录的文件可以启动系统,并且需要的话,可以完成紧急维护和修复的功能。
“/usr”目录
包含所有的命令、程序库、文档和其它文件。这些文件在正常操作中不会被改变的。
这个目录也包含你的Linux发行版本的主要的应用程序,譬如,Netscape。
&ldquo ......

linux下open()与fopen()

fopen(打开文件)
相关函数
    open,fclose
表头文件
    #include<stdio.h>
定义函数
    FILE * fopen(const char * path,const char * mode);
函数说明
    参数path字符串包含欲打开的文件路径及文件名,参数mode字符串则代表着流形态。 ......

Linux厂商的楷模(先行者)






<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
A:link { so-language: zxx }
-->
        所谓“楷模”(
Model
)就是榜样的意思。那么,谁是
Linux
厂商(公认)的榜样呢?你想知道吗?
 
     ......

Linux 管理工具介绍

【IT168 服务器
学院

  Linux是一个多用户的操作系统
,她有完美的用户管理工具,这些工具包括用户的查询、添加、修改,以及用户之间相互切换的工具等;通过这些工具,我们能安全
、轻松的完成用户管理;
    在这里我们要引入用户控制工具的概念,比如对用户添加的useradd或adduser ,对用户 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号