Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3847975
  • 博文数量: 421
  • 博客积分: 685
  • 博客等级: 上将
  • 技术积分: 3670
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-18 14:20
文章分类

全部博文(421)

文章存档

2012年(5)

2011年(52)

2010年(83)

2009年(67)

2008年(65)

2007年(149)

分类:

2010-05-21 08:50:55

本来修改以下几个tcp/ip内核参数
  • tcp_conn_req_max_q
  • tcp_keepalive_interval
  • tcp_ip_abort_cinterval
  • tcp_ip_abort_interval

手工修改的命令示例:

bash-3.00# ndd /dev/ip \? |grep abort
bash-3.00# ndd /dev/tcp \? |grep abort
tcp_ip_abort_cinterval (read and write)
tcp_ip_abort_linterval (read and write)
tcp_ip_abort_interval (read and write)

root@kvamdb1 # ndd -set /dev/tcp tcp_ip_abort_cinterval 60000
root@kvamdb1 # ndd -set /dev/tcp tcp_ip_abort_interval 180000


创建SMF服务的过程如下

dblink timeout

Tuning TCP Settings on Solaris 10 Systems

On Solaris 10 systems, the simplest way to tune TCP settings is to create a simple SMF service as follows:

  • Create an SMF profile for Directory Server tuning.

  • Edit the following xml file according to your environment and save the file as/var/svc/manifest/site/ndd-nettune.xml.

    
    
    
    
    
    
    
    
                            
    
                            
    
                    
                            
                    
    
                    
                            
                    
    
                    
                            
                    
    
                    
                    
    
                    
                    
    
                    
                            
                    
    
                    
    
                    
    
    
    
    
    
  • Before you import the ndd-nettune.xml configuration, verify that the syntax is correct. You can do this by running the following command:


    $ svccfg validate /var/svc/manifest/site/ndd-nettune.xml
    
  • Import the configuration by running the following command:


    $ svccfg import /var/svc/manifest/site/ndd-nettune.xml
    

    For more information see the svccfg(1M) man page.

  • Copy the following shell script into /lib/svc/method/ndd-nettune.

    #!/sbin/sh
    #
    # ident   "@(#)ndd-nettune.xml    1.0     01/08/06 SMI"
    
    . /lib/svc/share/smf_include.sh
    . /lib/svc/share/net_include.sh
    
    # Make sure that the libraries essential to this stage of booting  can be found.
    LD_LIBRARY_PATH=/lib; export LD_LIBRARY_PATH
    echo "Performing Directory Server Tuning..." >> /tmp/smf.out
    /usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q 1024
    /usr/sbin/ndd -set /dev/tcp tcp_keepalive_interval 600000
    /usr/sbin/ndd -set /dev/tcp tcp_ip_abort_cinterval 10000
    /usr/sbin/ndd -set /dev/tcp tcp_ip_abort_interval 60000
    
    
    # Reset the library path now that we are past the critical stage
    unset LD_LIBRARY_PATH
    
  • Run svcadm to enable nettune (for more information, see the svcadm(1M) man page).

  • Run svcs -x (for more information see the svcs(1) man page).


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

cityvigil2010-05-22 18:25:36

:) :) :)