免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8126 | 回复: 0
打印 上一主题 下一主题

通过kctune命令修改kernel参数 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-29 14:39 |只看该作者 |倒序浏览

在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"进行修改,修改后会显示当前值和以前值


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/436/showart_2012114.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP