天天看點

通過kctune指令修改kernel參數

在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