取消
顯示結果 
搜尋替代 
您的意思是: 

如何重新load /etc/sysconfigtab 值

如何重新load /etc/sysconfigtab 值

我在/etc/sysconfigtab修改了一些kernel參數

除了重新開機,我有辦法重新load嗎
7 回覆

如何重新load /etc/sysconfigtab 值

據我所知...都要reboot...參數才會生效

如何重新load /etc/sysconfigtab 值

Normally, would schedule a reboot so the

new attribute values will take effect.

如何重新load /etc/sysconfigtab 值

大家好:

 sysconfigtab里面的参数一般分为动态和静态的参数,动态的在更改后就可以直接使用,而静态的就必须要重新启动机器,例如shm_max一样。

 说到这里,我对里面的很多参数也不熟悉,希望谁有时间的时候能详细的解释一下该文件中各参数的含义和对操作系统的影响,急盼!

如何重新load /etc/sysconfigtab 值

如果是動態的參數,我可以直接加入sysconfigtab

然後下一個指令就生效嗎

像lunix 裡面的sysctl -p的指令

如何重新load /etc/sysconfigtab 值

#man sys_attrs_proc



NAME



sys_attrs_proc - system attributes for the proc kernel subsystem



DESCRIPTION



This reference page describes system attributes for the Process (proc) kernel subsystem. See sys_attrs(5) for an introduction to system attributes.



Do not edit the system configuration file to directly change the value of system parameters; use the dxkerneltuner application, the /sbin/sysconfig -r command, or the sysconfigdb command to make such changes. See dxkerneltuner(8), sysconfig(8), and sysconfigdb(8) for more information about your options for configuring kernel subsystems.



Attributes whose names are preceded by an asterisk(*) can be modified at run time.

--------------

換句話說, 有 * 的參數都可 online 更改而馬上生效, 但不是直接去改 /etc/sysconfigtab, 而要用 dxkerneltuner

如何重新load /etc/sysconfigtab 值

這裡介紹另一個方法用dbx來改

example:

# sysconfig -q proc |grep maxusers

maxusers = 512

# dbx -k /vmunix

dbx version 5.1

Type 'help' for help.



stopped at Source not available



warning: Files compiled -g3: parameter values probably wrong

(dbx) print maxusers

512

(dbx) assign maxusers=1024

1024

(dbx) quit

# sysconfig -q proc |grep maxusers

maxusers = 1024



這樣就生效啦

如何重新load /etc/sysconfigtab 值

Hi all,



儘勿使用 "dbx" 設定 kernel 的系統參數.

1) I will be returned to the original settings after rebuidling a new kernel "/vmunix" file.

2) It should be encountered a system impact if incorrect command is running.

3) The command "(dbx) assign xxxx=yyyy" is affected until system restarting.



> 如何重新load /etc/sysconfigtab 值?

Using the "sysconfig -r" to tune the system parameter if it's a tunable variable dynamically from "sysconfig -Q".

For example:

# sysconfig -Q proc|grep user

max_proc_per_user - type=UINT op=CQ min_val=0 max_val=524287

max_threads_per_user - type=ULONG op=CQ min_val=0 max_val=18446744073709551615

maxusers - type=INT op=CRQ min_val=8 max_val=16384

# sysconfig -q proc maxusers

proc:

maxusers = 1024

# sysconfig -r proc maxusers=2048

maxusers: reconfigured

# sysconfig -q proc maxusers

proc:

maxusers = 2048

#



PS: It is a tunable variable if included the "R" of "op=CRQ" from "sysconfig -Q"



Finally, please modify the /etc/sysconfigtab for permanence usage.



Richard.