Solaris kernel tunables
For a comprehensive list of Solaris kernel tunables, read the Solaris
Tunable Parameters Reference Manual for your version of the Solaris
Operating Environment at http://docs.sun.com/.
e.g., determining current maxuprc
kernel parameter with adb:
# adb -k
physmem f74c
maxuprc/D (display maxuprc value in decimal)
maxuprc:
maxuprc:
250
maxuprc/X (display maxuprc value in hexadecimal)
maxuprc:
maxuprc:
fa
$q (exit out of adb)
Running sysdef also shows the
values of certain kernel tunables.
e.g., dynamically adjusting maxuprc
with adb:
maxuprc is a kernel tunable
that defines the maximum number of concurrent processes per user ID.
This value does not affect the root user.
The default maxuprc value is max_nprocs - reserved_procs.
# adb -kw
physmem f74c
maxuprc/D (display maxuprc value in decimal)
maxuprc:
maxuprc: 16389
v+0x1c/W0x12c (set maxuprc to 300; 0x12c is
hexademical for 300)
$q (exit out of adb)
The change will be reflected in sysdef output, but not in adb. However, the change does take effect.
# sysdef | grep v_maxup
300
maximum processes per user id
(v.v_maxup)
# echo maxuprc/D | adb -k
physmem 7dd2c
maxuprc:
maxuprc: 16389
When you exceed maxuprc, you will see the following:
bash: fork: Resource temporarily unavailable
sh: fork failed - too many processes
/var/adm/messages:
unix: out of per-user processes for uid \d+
To preserve this change after a reboot, add set maxuprc = 300 in /etc/system.
More information:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=casper.905937173%40nl-usenet.sun.com
Back to brandonhutchinson.com.
Last modified: 08/19/2003