通过kctune命令修改kernel参数

416 篇文章 0 订阅
162 篇文章 0 订阅

在HPUX平台上安装数据库的时候,经常需要去修改kernel参数,通常都是通过SAM去修改,也可以同kctune这个命令去修改。
直接数据kctune可以看到当前的kernel值
[rp4440@/]#kctune
Tunable                       Value  Expression  Changes
NSTREVENT                        50  Default    
NSTRPUSH                         16  Default    
NSTRSCHED                         0  Default    
STRCTLSZ                       1024  Default    
STRMSGSZ                          0  Default    
acctresume                        4  Default    
acctsuspend                       2  Default    
aio_listio_max                  256  Default     Immed
aio_max_ops                    2048  Default     Immed
aio_monitor_run_sec              30  Default     Immed
aio_physmem_pct                  10  Default    
aio_prio_delta_max               20  Default     Immed
aio_proc_thread_pct              70  Default     Immed
aio_proc_threads               1024  Default     Immed
aio_req_per_thread                1  Default     Immed
。。。。。。。。。。。。。。。。
假设我们要修改aio_max_ops ,目前是2048,修改成4096
可以这样执行
[rp4440@/]#kctune aio_max_ops=4096
WARNING: The automatic 'backup' configuration currently contains the
         configuration that was in use before the last reboot of this
         system.
     ==> Do you wish to update it to contain the current configuration
         before making the requested change? y
       * The automatic 'backup' configuration has been updated.
       * The requested changes have been applied to the currently
         running system.
Tunable                Value  Expression  Changes
aio_max_ops  (before)   2048  Default     Immed
             (now)      4096  4096       
           
会提示你是否要修改,数据“Y"进行修改,修改后会显示当前值和以前值


from:http://blog.chinaunix.net/u/436/showart_2012114.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值