Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233981
  • 博文数量: 52
  • 博客积分: 3010
  • 博客等级: 中校
  • 技术积分: 731
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-25 17:46
文章分类
文章存档

2009年(13)

2008年(39)

我的朋友

分类: LINUX

2008-11-27 08:50:29

本人最近会把proc目录详解给大家弄一下,欢迎翻译,有问题则留言。虽然是英文的,但都比较好理解,如有问题,请留言,我们共同为Linux社区而努力。我们翻译效果还不一定好,因为这玩意毕竟是老外搞的吗!!!咯咯,翻译可能引起误解。这次proc /sys/net/core介绍一下
[root@jiangtao core]# ls
dev_weight     netdev_max_backlog  somaxconn     xfrm_acq_expires
message_burst  optmem_max          warnings      xfrm_aevent_etime
message_cost   rmem_default        wmem_default  xfrm_aevent_rseqth
netdev_budget  rmem_max            wmem_max      xfrm_larval_drop
 
一  dev_weight
   Work quantum for packet processing scheduler. The default value is 64
二  divert_version
    Frame diverter version string. Exists only if frame diverter (CONFIG_NET_DIVERT) is compiled in.
三  message_burst   

This parameter is used to limit the warning messages written to the kernel log from the networking code (together with parameter). It enforces a rate limit to make a denial-of-service (DoS) attack impossible. Message_burst controls when messages will be dropped. The default value is 10.

四 message_cost

  Rate limit the number of network warning messages to one every message_cost seconds. The default value is 5

五 netdev_budget

The default value is 300.

六 netdev_max_backlog

Maximum number of packets, queued on the input side, when the interface receives packets faster than kernel can process them. Applies to non-NAPI devices only. The default value is 1000.

七 optmem_max

Maximum ancillary buffer size allowed per socket. Ancillary data is a sequence of struct cmsghdr structures with appended data. The default size is 10240 bytes.

八 rmem_default

   The default setting of the socket receive buffer in bytes.The default value is 110592 bytes.

九 rmem_max

  The maximum receive socket buffer size in bytes. The default value is 131071 bytes

十 somaxconn

Limit of socket listen() backlog, known in userspace as SOMAXCONN. Defaults to 128.

See also for additional tuning for TCP sockets.

十一 wmem_default

The default setting of the socket send buffer in bytes.The default value is 110592 bytes.

十二  wmem_max

The maximum send socket buffer size in bytes. The default value is 131071 bytes.

十三 xfrm_aevent_etime

Used to provide default values for the XFRMA_ETIMER_THRESH in incremental units of time of 100ms. The default value is 10 (1 second).

十四 xfrm_aevent_rseqth

Used to provide default values for XFRMA_REPLAY_THRESH parameter in incremental packet count. The default value is 2 packets

 

阅读(2485) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~