5.22 Tuning kernel

De UnixWiki
Aller à : navigation, rechercher

adb is a runtime debugger. Superuser can run adb with the -k option to see variables in the running kernel. If -w is specified with the -k option, superuser can change the in-memory values of the running kernel. Any changes made in this manner are lost when the system reboots.

Exemple change maxusers value

 # adb -kw
 physmem f7c6
 maxusers/D
 maxusers:
 maxusers:       495
 maxusers/W 200
 maxusers:       0x1ef           =       0x200
 $q 

New to the Solaris 8 release is the modular debugger Exemple change maxusers value

 # mdb -kw
 Loading modules: [ unix krtld genunix ip logindmux ptm nfs ipc lofs ]
 > maxusers/D
 maxusers:
 maxusers:       495
 > maxusers/W 200
 maxusers:       0x1ef           =       0x200
 > $q