Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1959537
  • 博文数量: 1000
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 7921
  • 用 户 组: 普通用户
  • 注册时间: 2013-08-20 09:23
个人简介

storage R&D guy.

文章分类

全部博文(1000)

文章存档

2019年(5)

2017年(47)

2016年(38)

2015年(539)

2014年(193)

2013年(178)

分类: 服务器与存储

2014-06-18 11:07:50

 

echo 1 > /proc/sys/net/ipv4/ip_forward

General

ifconfig ethX mtu 9000

OS Tunings

ethtool -L ethX combined 8

 

perf_tune_benet.sh -t ethX

 NAME



perf_tune_benet.sh -  configures Linux system  parameters for
    
        best performance from be2net driver


SYNOPSIS

    perf_tune_benet.sh [-t|-l|-p|-r]



DESCRIPTION



perf_tune_benet.sh configures some Linux system  parameters for best

performance from be2net driver.  One or more interface names created

by be2net should be specified.  Following options are supported :


    -t   configures the parameters for highest throughput

    -l   configures the parameters for lowest latency
    
    -p   configures the parameters for highest packet / sec rate
    
    -r   restores the system default parameters. Use this option

        to restore the system parameters to original values.



For the -t, -l and -p options above, the script disables automatic balancing

of interrupt load (irqbalance) and pins interrupts to specific CPU cores

for optimal performance. The script also increases the core rmem and wmem

to larger values as below :



    echo 64000000 > /proc/sys/net/core/rmem_default

    echo 64000000 > /proc/sys/net/core/rmem_max
    
    echo 32000000 > /proc/sys/net/core/wmem_default
    
    echo 32000000 > /proc/sys/net/core/wmem_max



For -t option, the script does the following TCP configurations :



    echo 4096 87380 16777216 > /proc/sys/net/ipv4/tcp_rmem
    
    echo 4096 65536 16777216 > /proc/sys/net/ipv4/tcp_wmem
    
    echo 0 > /proc/sys/net/ipv4/tcp_timestamps
    
    echo 0 > /proc/sys/net/ipv4/tcp_sack
    
    echo 0 > /proc/sys/net/ipv4/tcp_ecn    



Additionally for -t option, the script increases the devices backlog queue

length to 50000 and the txqueuelen to 10000.



For -l option, the script configures TCP for low latency and also disables

adaptive interrupt coalescing in driver with the interrupt coalescing

delay set to 0.



EXAMPLE
    
    ./perf_tune_benet.sh -t eth0 eth1 eth2 eth3



BUGS
     
    Not tested on AMD processor based machines.
    Supports only Linux OS's
    NO support for XEN varients and citrix OS's.

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